0

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.

Community
  • 1
  • 1
Chrishan
  • 4,076
  • 7
  • 48
  • 67

1 Answers1

0

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

Robert Rowntree
  • 6,230
  • 2
  • 24
  • 43