user3361063
user3361063

Reputation: 21

Run ffmpeg command line error in android

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

Answers (1)

rekire
rekire

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

Related Questions