μHOWTO: Convert and display Flash video
20070410 16:58 by javier
So you want to publish that nice family video in your page/blog/intranet without forcing your visitors to download, install and activate some obscure browser plugin and *then* wait for a 200MB download… Well.. That’s easy as cake!
First, let’s use ffmpeg to convert the video from avi, mpg or mov to something that we can stream to a nice Flash video player:
$ ffmpeg -i video.mpg -ar 11025 -s 320×240 video.flv
Then we extract the first frame of the video to use it as a thumbnail:
Of course, real men brew their own Flash video players using Ming. The rest of us have to settle for one that has been pre-made, like Jeroen Wijering’s most excellent Flash Video Player. To insert the video in a web page you just have to write
<param name=“movie” value=“flvplayer.swf?file=video.flv&image=video.jpg&autoStart=false” />
<param name=“wmode” value=“transparent” />
</object>
You know, there’s even a neat wordpress plugin that allows a much simpler syntax:
Cool, eh? Now you are ready to take over YouTube!

















July 28th, 2007 at 9:01
Excellent work. Thanks for the guide!