Problems with android-ffmpeg on Android Lollipop

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);

//  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 to resolve this issue for Lollipop?

+4
source share
1 answer

, , ffmpeg.

Android Lollipop. .

+2

All Articles