homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

ffmpeg conversion from flv to mp4 ios compatible

 3:15 pm on Aug 25, 2012 (gmt 0)


I have been trying to find help, but no luck so far.

I have a flash video recorder which always saves the recorded file in flv format. As you guys know flv can't be played in iOS devices ie; iphone or ipad etc, I need to convert the video in mp4 with H.264 codecs.

I already have ffmpeg installed on my wowza based server set up from Amazon EC2. FFMpeg works fine in generating thumbnails and video conversion too, but that video is still not being played in iphone.

I tried several different commands, but no luck.

Can anyone please provide me the exact command which would just take a flv video and convert it into H264 mp4 format with same quality?




 6:39 pm on Aug 25, 2012 (gmt 0)

Hi. A quick search resulted in my finding this.

ffmpeg -i input.flv -vcodec copy -acodec libfaac -aq 200 output.mp4
Source [learnosity.com ] A good read. Seems to be spot on with what you need.

Not sure if it works as I don't have ffmpeg but I figured I'd share it anyways for you to try

Hope it helps.


 7:02 pm on Aug 25, 2012 (gmt 0)

thanks for the response. in the code you have libfaac, does it need any extra codec or lib to be installed on the server?


 8:00 pm on Aug 25, 2012 (gmt 0)

It uses the libaac codec so I would imagine yes. You would have to have that installed. Again, read through the link I supplied. It seems like what you need.

Hope it works

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved