我正在开发一个混合音频和视频的应用程序。
我跟随android-ffmpeg监护项目来解决我的目标。问题是,在Android Kitkat之前,它运行得很好。但是这个过程在Android Lollipop上失败了。
下面是我运行这个过程的代码
ProcessBuilder pb = new ProcessBuilder(cmd);
pb.directory(fileExec);
// pb.redirectErrorStream(true);
Process process = pb.start();
// any error message?
StreamGobbler errorGobbler = new
StreamGobbler(process.getErrorStream(), "ERROR", sc);
// any output?
StreamGobbler outputGobbler = new
StreamGobbler(process.getInputStream(), "OUTPUT", sc);
// kick them off
errorGobbler.start();
outputGobbler.start();
int exitVal = process.waitFor();
sc.processComplete(exitVal);
return exitVal;我怎么才能为棒棒糖解决这个问题?为了解决Lollipop的这个问题,我还应该包括其他文件吗?
发布于 2015-01-09 06:22:40
正如建议的这里一样,我能够通过替换ffmpeg android库来解决这个问题。
他们正在提供Android支持。您可以参考这个链接。
https://stackoverflow.com/questions/27437436
复制相似问题