Convert photo camera movie to flash (flv)

Modern digital cameras often can be used quite successful as a video camera. The image quality is sometimes quite impressive. The only drawback remains the size of the video file produced. As a consequence you need a very big memory card and it is very hard to share your movies online (or to send them by e-mail). Even in our broadband age it is not nice to upload a 100MB file. I expect future generation cameras will solve this problem with build in mpeg4 compression. In the meantime however the only way to solve problem two is to do some post processing yourself. In this case I show you how a movie shot with a Canon Ixus 50 can be successfully put online by compressing it to a flash (flv) movie.

Some figures: movie length: 55 sec (640×480 pixels)
Size (Canon): 99 MB
Size (flv): 6.8 MB

Reduction: > 90%

To give you an example how things look after compression click on the picture below. It shows the original Canon movie scaled to 320×240 and compressed to FLV with mencoder (http://www.mplayerhq.com). The result is a 3.6MB file.

How I did it:

jeroen@fregaz:~/temp> mencoder pasta_maken_311205.avi -o video.flv -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=500:autoaspect:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:precmp=2:cmp=2:subcmp=2:preme=2:turbo:acodec=mp3:abitrate=56 -vf scale=320:240 -srate 22050 -af lavcresample=22050

Update 02 January 2007. Please check this entry for the correct mencoder settings when using MPlayer 1.0rc1.

2 thoughts on “Convert photo camera movie to flash (flv)

  1. Dude, you forgot the most important part. When transcoding using mencoder or ffmpeg –> FLV, you lose the time-index, hence faults in flv playback flash apps. Use flvfix to fix the index. Should solve the problem 🙂

Leave a Reply