Reputation: 306
I Want to Merge Two or more mp3 audio file using ffmpeg but i do not know how it implement in project.someone can give me tutorial or steps for it.
Upvotes: 2
Views: 1488
Reputation: 2119
You can use this command to merge multiple mp3 with custom meta:
ffmpeg -i "concat:input1.mp3|input2.mp3|input3.mp3" -c:a copy [-metadata <key>=<value> ...] output.mp3
If not specify metadata, it will copy metadata from first input file.
List of metadata options can be referenced in here: https://multimedia.cx/eggs/supplying-ffmpeg-with-metadata/
If you want to manage ffmpeg
process (control success/failure, progress,...), you can use this library instead of implementing them by yourself: http://writingminds.github.io/ffmpeg-android-java/
Upvotes: 2