2

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?

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

2 Comments

I follow this link github.com/JayH5/android-ffmpeg-cmdline it seem to do it,so i run the code above.but it run failed!
That lib looks nice too, btw you should add a space to make the link clickable.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.