I need to use FFMPEG to encode multiple images and audio into a .mp4 file. Preferably the tutorial would be written for newbies, as that is pretty much my skill level in encoding video.
I need to use FFMPEG to encode multiple images and audio into a .mp4 file. Preferably the tutorial would be written for newbies, as that is pretty much my skill level in encoding video.
I would like that myself. Who has the balls to do such a tutorial. That's highly advanced stuff...
__________________
regards
Oliver Drobnik Cocoanetics - Our DNA is programmed in Objective-C.
Cocoanetics Parts Store – easy to use yet professionally looking components that you can use to spruce up your own apps. Augmented Reality, Calendar Control, Pin Lock or Purchase Button are only some examples. You get full source code, no static library crap, and lifetime support. Check it out today!
This is interesting. But I doubt anyone would want to share this tutorial. A whole series of new apps can be done with this knowledge/sample code.
I was also looking to make a single animation file from a series of images too (time lapsed photos->video), but after reading around, it is too advanced for me. I tried making GIF animation.. got there 1/3 of the way, stuck at the image data bytes encoding, and not even touching the LZW!! Just the uncompressed version..!
I think you misunderstood us. We want to have a series of images INTO a video. Not the other way around. We are looking to ENcode images into video/animation file of some sort.
You still have a lot of work and I am not sure how you are going to do it, I do have some ideas. But
If you are going to use ffmpeg
You still need to build the libraries.
You still need libavcodec and llibavformat(if you are doing audio).
Where it differs from playing video is that you have to get your jpegs into somekind of stream.
The way they do this outside the iphone is using something like mencoder or mp4creator not usually ffmpeg.
FFmpeg does have some merging capability though.
So assume you can get your images into somekind of stream, if your merging video with images for instance, you are going to have to find the index of the frames in the video where you want to do the insert (probably on an iB frame) than run through an encoding loop , most likely on a seperate thread, than continue adding the original video were you left off.
Final result will be a new stream with the video.
if this is h264 for you can feed it back to the iphone movieplayer you probably are going to need libx264, this is not convered under the lgpl license so you are like going to have to alter any build script you use.
If you are going to include audio, you are going to have to interleave that with the video. You most likely need libaac for that. Lame won't give you output playable on the iphone.
Sounds like a fun project , good luck.
Remember any mods that you do to ffmpeg have to be published, and to comply with the lgpl license you have to publish all your natual objects. refer to the ffmpeg lgl page for guidelines.
I need to use FFMPEG to encode multiple images and audio into a .mp4 file. Please anyone help me .... if u have any sample tutorials please let me know