Hi! Thanks for visiting my blog. If you've received any value from my content would you mind supporting my new startup by downloading our browser add-on? It's called PriceBlink and makes online shopping a breeze. You can watch it in action here and download it for Chrome, Firefox, IE, or Safari by going to PriceBlink.com. Thank you and I hope you enjoy!

FFMPEG Conversion to Flash Video Format

Dec 27

If you’ve experimented with Flash video then you’ve most likey run into the scenario where you’d like to be able convert to flv on the fly. While Flash has support for certain video formats such as .mpg, .avi, and .mov this is usually handled by importing your video into the IDE and then exporting to .flv format.

Using a tool such as ffmpeg you can do the encoding on the fly. From the command line you can do something like:

ffmpeg -i video.mpg -r 12 -b 10 video.flv

The -i parameter tells the program to accept video.mpg as the input file.

The -r parameter sets the frame rate for the encoded flv video, in this case 12 frames per second.

The -b parameter sets the bitrate for the encoded flv video, in this case 10kbps.

The best thing of all is that this utility is completely free! I’m working on a ColdFusion app that allows you to upload small video clips and encodes/plays them on the fly through the Flash player. I’ll post a link when it’s ready.