[MEncoder-users] encoding video for live streaming to iphone...

hradec hradec at hradec.com
Mon Jul 14 23:29:55 CEST 2008


I'm trying to find some more info on how I can use mencoder or ffmpeg to
encode avi files to a format the iphone can play while downloading from
a webserver.

I have a custom python script that works like a webserver. This
webserver lists all my avi files as links. When the user click on one
link, the webserver sends a flash video player to a popup window, and
the flashvideo player access an url that triggers the webserver to run
ffmpeg and reencode the file. As it reencodes, it grabs the reencode
file using pipes and streams it to the flashplayer...  works like a
charm... just like my personal youtube whitout any pre-reencoded
files... all is reencoded on the fly...

Now that I got my iphone, I want to be able to use it on it... The
problem is the iphone does not have flash!!!!! so, I need to figure out
a way to reencode my avis to a file format that can be streamed to
iphones quicktime, with some sort of setup on the file that tells
quicktime to start playing even before it finished the download.

Just reencoding it as MOV works, but quicktimes does not start play the
file until the download/stream is finished... I need to find a way to
make quicktime play the file as it downloads it...

any ideas on a command line for mencoder/ffmpeg that would create a file
that quicktime plays as it downloads??

thanks guys...

-H





More information about the MEncoder-users mailing list