【发布时间】:2014-06-04 09:48:40
【问题描述】:
我正在开发一个用于混合 2 个音频文件的 android 应用程序。我为此使用 android ffmpeg。我使用以下库。来自 GitHub https://github.com/guardianproject/android-ffmpeg-java
我使用以下代码混合来自活动的 2 个音频文件。
try {
File fileAppRoot = new File(getApplicationInfo().dataDir);
SoxController sxCon = new SoxController(fileAppRoot, new ShellUtils.ShellCallback() {
@Override
public void shellOut(String shellLine) {
System.out.println(shellLine);
}
@Override
public void processComplete(int exitValue) {
System.out.println("hello");
}
});
List<String> files=new ArrayList<String>();
files.add(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Testing/me.mp3");
files.add(Environment.getExternalStorageDirectory().getAbsolutePath()+"/Testing/il.mp3");
sxCon.combineMix(files,Environment.getExternalStorageDirectory().getAbsolutePath()+"/Testing/ial.mp3");
但这在 processComplete 上返回退出值 2,并且没有为混合音频生成新文件。 这将在日志中返回以下问题 no handler for file extension `mp3'
感谢您对此的任何帮助..
【问题讨论】: