简体   繁体   中英

Merge mp3 files using FFmpeg on Android

I am trying to merge two mp3 files using this command:

ffmpeg -i "concat:/storage/emulated/0/Recordings/oneone.mp3|/storage/emulated/0/Recordings/twone.mp3" -c copy /storage/emulated/0/Recordings/concated.mp3

but get this error:

"concat:/storage/emulated/0/Recordings/oneone.mp3|/storage/emulated/0/Recordings/twone.mp3": No such file or directory

Even though the both files exist in the directory. I have written this command according to the documentation: https://trac.ffmpeg.org/wiki/Concatenate#protocol

How do I fix this? Please help me.

Are you sure you have read and write permissions on the device? Because from my experience the below command works perfectly fine.

 ffmpeg -i "concat:/sdcard/test1.mp3|/sdcard/test2.mp3" -acodec copy /sdcard/output.mp3

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM