Friday, March 10, 2006
Compiling images into a movie
Want to compile your "supreme quality" snapshots into a single, handy and portable movie file? With 'mencoder' and 'ffmpeg', this is as simple as calling this command:
mencoder mf://*.jpg -mf w=800:h=600:fps=10:type=jpg -ovc lavc -lavcopts vcodec=divx:mbd=2:trell -oac copy -o outputDivx.avi
You can easily change the parameters in bold. For example, if you want to encode a video using several PNG files at 640x480 resolution, and xvid compression, with a framerate of 30 fps, the command should look like this:
mencoder mf://*.png -mf w=640:h=480:fps=30:type=png -ovc lavc -lavcopts vcodec=xvid:mbd=2:trell -oac copy -o outputXvid.avi
Links: Mencoder (part of Mplayer project), Ffmpeg
mencoder mf://*.jpg -mf w=800:h=600:fps=10:type=jpg -ovc lavc -lavcopts vcodec=divx:mbd=2:trell -oac copy -o outputDivx.avi
You can easily change the parameters in bold. For example, if you want to encode a video using several PNG files at 640x480 resolution, and xvid compression, with a framerate of 30 fps, the command should look like this:
mencoder mf://*.png -mf w=640:h=480:fps=30:type=png -ovc lavc -lavcopts vcodec=xvid:mbd=2:trell -oac copy -o outputXvid.avi
Links: Mencoder (part of Mplayer project), Ffmpeg