mencoder input.avi -ss 120 -endpos 30 -nosound -ovc xvid -xvidencopts vhq=1:bitrate=826:pass=1 -vf scale=640:268,hqdn3d=2:1:2 -o /dev/null