Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Tutorials > Tutorial Requests

Reply
 
LinkBack Thread Tools Display Modes
Old 12-17-2009, 09:36 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2009
Posts: 12
iSkythe is on a distinguished road
Default FFMPEG Tutorial

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.
iSkythe is offline   Reply With Quote
Old 02-04-2010, 04:24 PM   #2 (permalink)
Dr. Touch Cocoa Helpdesk
iPhone Dev SDK Supporter
 
Join Date: Sep 2008
Location: Vienna, Austria
Posts: 537
Oliver Drobnik is on a distinguished road
Send a message via AIM to Oliver Drobnik Send a message via MSN to Oliver Drobnik Send a message via Skype™ to Oliver Drobnik
Default

Quote:
Originally Posted by iSkythe View Post
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.

Linguan – makes localizing strings file fun!

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!
Oliver Drobnik is offline   Reply With Quote
Old 02-05-2010, 01:21 AM   #3 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

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..!
rocotilos is offline   Reply With Quote
Old 02-05-2010, 07:13 AM   #4 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: michigan
Posts: 197
michelle is on a distinguished road
Default

Well I can help you get started, the apps we are working on decode and play videos, could also be used to generate thumbnails.

But I think once you have the general knowledge of how all the pieces come together, doing the type of merges you are talking about might be easier.

The hardest part I think of dealing with ffmpeg is to get all the pieces together, compiling with the gas processor perl script for instance.

For what its worth here are some useful links

The ffplay mods are complete - Life in The Clouds

ffmpeg tutorial
michelle is offline   Reply With Quote
Old 02-05-2010, 08:16 AM   #5 (permalink)
almostfunnydev
iPhone Dev SDK Supporter
 
rocotilos's Avatar
 
Join Date: Oct 2009
Age: 34
Posts: 3,015
rocotilos is on a distinguished road
Default

Hi michelle,

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.
rocotilos is offline   Reply With Quote
Old 02-05-2010, 08:42 AM   #6 (permalink)
Registered Member
 
Join Date: Apr 2009
Location: michigan
Posts: 197
michelle is on a distinguished road
Default

No ,

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.
michelle is offline   Reply With Quote
Old 09-02-2010, 01:40 AM   #7 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 10
esramkumar1986 is on a distinguished road
Default

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
esramkumar1986 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Stats
Members: 175,696
Threads: 94,139
Posts: 402,961
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jasper_muc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:01 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0