mirror of
https://github.com/Myzel394/Alibi.git
synced 2025-06-19 07:15:25 +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
|
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)
|
val session = FFmpegKit.execute(command)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user