http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html Notes: - mencoder seems to generate avi files, even when generating mpeg etc. - Probably should use mpeg4 rather than msmpeg4v2 if you want ISO standard video. - The higher the vqscale, the lower the quality, and the smaller the file size. - mencoder has apparently been succeded by ffmpeg, which has been succeded by avconv. mencoder "mf://*.png" -mf fps=25:type=png -ovc lavc -lavcopts vcodec=msmpeg4v2 -o abc.avi mencoder "mf://*.png" -mf fps=25:type=png -ovc lavc -lavcopts vcodec=msmpeg4v2:vqscale=1:vhq -o abc.avi mencoder "mf://PNG/outfile000??.png" -mf fps=25:type=png -ovc lavc -lavcopts vcodec=msmpeg4v2 -o abc.avi with audio: -oac copy -audiofile some_mp3_file.mp3 or with two passes: mencoder "mf://*.png" -mf fps=25:type=png -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=1:vme=5:vqscale=5 -mf fps=25 -nosound -o /dev/null mencoder "mf://*.png" -mf fps=25:type=png -ovc lavc -lavcopts vcodec=msmpeg4v2:vpass=2:vme=5:vqscale=5 -mf fps=25 -nosound -o output.avi This created MPEG-2 with MP3 audio: mencoder Alison2.avi -mf fps=25:type=png -ovc lavc -lavcopts vcodec=mpeg2video -oac mp3lame -o ~/Alison2.avi This is reputed to create a lossless file, although I am not completely convinced: mencoder "mf://*.png" -mf fps=25:type=png -ovc lavc -lavcopts vcodec=ffvhuff -o /vol/vssp/raidbuf/ees1wc/output.avi This is also suggested, if you have the right codec: avconv -i /vol/vssp/acasva2/sequences/us_open_2009_women_double_q_final/VTS_01_1.VOB -c:v libx264 -crf 0 /tmp/tmp.mkv Possibly useful lossless info at http://www.ubuntuask.com/q/answers-ffmeg-x264-presets-not-working-237698.html