Filed under: notes/General
The tools to convert JPG to movie is mencoder, which can be downloaded from MPlayer’s website etc.
Given a bunch of sequentially numbered JPEG files, this Windows command line syntax turns the images into a MPEG-4 movie in AVI container:
mencoder "mf://*-annotated.jpg" -mf fps=2 -o movie.avi -ovc lavc -lavcopts vcodec=msmpeg4v2:vbitrate=800
It’s sometimes nice to have file number printed on the image so when viewed as movie it serves as counter. Use ImageMagick to first annotate the images, as follows:
convert -gravity south imagefilename -pointsize 36 -fill white -stroke none -strokewidth 100 -annotate 0 text outputfilename
or in JScript syntax on WSH:
Imagick.Convert(‘-gravity’, ‘south’, imagefilename, ‘-pointsize’, ’36′, ‘-fill’, ‘white’, ‘-stroke’, ‘none’, ‘-strokewidth’,’100′, ‘-annotate’, ’0′, text, outputfilename);
Reference
http://electron.mit.edu/~gsteele/ffmpeg/


