在Android上使用FFmpeg合并mp3文件 [英] Merge mp3 files using FFmpeg on Android

查看:508
本文介绍了在Android上使用FFmpeg合并mp3文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

但收到此错误:

 concat:/ storage / emulated / 0 / Recordings / oneone.mp3 | /storage/emulated/0/Recordings/twone.mp3:没有这样的文件或目录

即使这两个文件都存在于目录中。我已经根据以下文档编写了这个命令: https://trac.ffmpeg.org/wiki/ Concatenate#protocol



我该如何解决?请帮助我。

解决方案

您确定您对设备有读写权限吗?因为从我的经验,下面的命令工作完全正常。

  ffmpeg -iconcat:/sdcard/test1.mp3 | /sdcard/test2.mp3-acodec copy / sdcard / output.mp3 


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

这篇关于在Android上使用FFmpeg合并mp3文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆