mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-18 23:05:26 +02:00
feat: Add metadata to audio file
This commit is contained in:
parent
0b9bb48fdc
commit
26b78ff485
@ -112,7 +112,14 @@ class RecorderService: Service() {
|
||||
return outputFile
|
||||
}
|
||||
|
||||
val command = "-i \"concat:$paths\" -acodec copy $outputFile"
|
||||
val command = "-i 'concat:$paths'" +
|
||||
" -acodec copy" +
|
||||
" -metadata title='$fileName' " +
|
||||
" -metadata date='${recordingStart!!.format(ISO_DATE_TIME)}'" +
|
||||
" -metadata batch_count='${filePaths.size}'" +
|
||||
" -metadata batch_duration='${settings.intervalDuration}'" +
|
||||
" -metadata max_duration='${settings.maxDuration}'" +
|
||||
" $outputFile"
|
||||
|
||||
val session = FFmpegKit.execute(command)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user