mencoder $input_file -ofps 15000/1001 -oac mp3lame -lameopts preset=128 -ovc xvid -vf lavcdeint,scale=400:-3 -noodml -forceidx -ffourcc XVID -xvidencopts turbo:bitrate=500:max_key_interval=250:trellis:max_bframes=1:vhq=3 -of avi -o “$input_file-portable.avi”