I am working on an application that mixes audio and video.
I am solving android-ffmpeg guardianproject to solve my purpose. The problem is that it works great before Android Kitkat. But the process does not work on Android Lollipop.
Here is my code to start the process
ProcessBuilder pb = new ProcessBuilder(cmd);
pb.directory(fileExec);
Process process = pb.start();
StreamGobbler errorGobbler = new
StreamGobbler(process.getErrorStream(), "ERROR", sc);
StreamGobbler outputGobbler = new
StreamGobbler(process.getInputStream(), "OUTPUT", sc);
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 to resolve this issue for Lollipop?
source
share