Reputation: 21
When i run this code:
String cmd = mFfmpegInstallPath+" -f image2 -i "+Environment.getExternalStorageDirectory()+"/ffmpeg/img%03d.png "+Environment.getExternalStorageDirectory()+"/tmp/out.mp4";
Process p = Runtime.getRuntime().exec(cmd);
I got a error:
Working Directory: null Environment: null
So how to run ffmpeg command line in android?
Upvotes: 2
Views: 1360
Reputation: 47945
You cannot execute binaries on android you need to use some c library.
Check this repo it might be helpful:
https://github.com/guardianproject/android-ffmpeg
Upvotes: 1