@echo off set /p framerate= Enter the framerate of the timelapse video (frames/sec). set /p bitrate= Enter the bitrate of the timelapse video (4000 seems good) (kbit/sec). set /p crop= Enter 0 to preserve aspect ratio, 1 to crop, or 2 to letterbox(16:9). set /p outfile= Enter the video output filename (omit .mov). if %crop% == 0 goto none if %crop% == 1 goto crop if %crop% == 2 goto letterbox :none mencoder mf://*.jpg -mf fps=%framerate%:type=jpeg -noskip -of lavf -lavfopts format=mov -ovc lavc -lavcopts vglobal=1:coder=0:vcodec=libx264:vbitrate=%bitrate% -vf eq2=1.2:0.9:0.0:1.0,scale=1280:-2 -o %outfile%.mov goto end :crop mencoder mf://*.jpg -mf fps=%framerate%:type=jpeg -noskip -of lavf -lavfopts format=mov -ovc lavc -lavcopts vglobal=1:coder=0:vcodec=libx264:vbitrate=%bitrate% -vf eq2=1.2:0.9:0.0:1.0,scale=1280:-2,crop=1280:720 -o %outfile%.mov goto end :letterbox mencoder mf://*.jpg -mf fps=%framerate%:type=jpeg -noskip -of lavf -lavfopts format=mov -ovc lavc -lavcopts vglobal=1:coder=0:vcodec=libx264:vbitrate=%bitrate% -vf eq2=1.2:0.9:0.0:1.0,expand=aspect=16/9,scale=1280:720 -o %outfile%.mov gotoend :end vlc %outfile%.mov --loop