FFmpeg on iPhone
I downloaded the ffmpeg libraries for iPhone and compiled them. My goal is to create a movie file from a series of images using ffmpeg libraries. The amount of documentation for ffmpeg on the iphone is very less. I checked out the iFrameExtractor app which does the opposite of what I want, it extracts frames from a video.
There is a command on the command line called
ffmpeg -f image2 -i image%d.jpg video.mov
This turns a series of images into a video. I actually tested it on my mac and everything works fine. What I wanted to know is how we get the equivalent in the iPhone. Rather, what class / api or method to call. There are several examples of apps that do this on the iPhone. Not sure if they are doing this via ffmpeg. Anyway, for reference "Time lapser" and "coil moments"
Thanks in advance
a source to share
Do you need sound? If you don't need sound, you can try using openCv. I think it is easier to use. You just call the method for adding a picture to the movie: http://opencv.willowgarage.com/documentation/c/reading_and_writing_images_and_video.html
a source to share
Someone please correct me if I'm wrong, but I don't believe iPhone apps can call external executables (which makes sense, it would be multitasking). You will need to use libav * to accomplish what you need. Compile ffmpeg for iPhone:
http://github.com/gabriel/ffmpeg-iphone-build
then read the API docs at ffmpeg.org. For each library, there should be a sample file in the ffmpeg source that displays the use of the core functions of those libraries. that is, in libavcodec, there is a file called api-example.c and in libavformat, there is one called output-example.c.
a source to share