I am working on an application which mixes audio and video.
I am following android-ffmpeg guardianproject to solve my purpose. The issue is that it works fine till Android Kitkat
. But the process fails on Android Lollipop
.
Here is my code to run the process
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;
How can i solve this for Lollipop? Are there any additional files that i should include for solving this for Lollipop
?
As suggested here, I was able to solve the issue by replacing ffmpeg android library.
They are providing Android Lollipop support. You can refer to this link.