I have build ffmpeg for android using NDK as mentioned here.
What I want to do is create a video file using image list as mentioned in here.
ffmpeg -i ffmpeg_temp/%05d.png -b 512 video2.mpg
I want to know how can I run this command in my C class file.
Thanks in advance.
read the ndk docs
edit your Android.mk so that you produce an executable 'ffmpeg'
run ndk-build
locate the 'ffmpeg' executable on your PC ( will be in folder like ' obj/local/armeabi-v7a/'
use adb to move 'ffmpeg' to the phone - you may have to mount something in order to do this
on phone, move 'ffmpeg' executable to /data/local/tmp
on phone, get a shell and invoke the CLI expression like you mention:
/data/local/tmp/ffmpeg -i ffmpeg_temp/%05d.png -b 512 video2.mpg
it should execute on the phone like it runs on any other linux system