rendered paste body# It will write a new video file called inputfile-d2.aviFILE=$1OUT=`echo -n "$FILE" | sed 's/\.[a-zA-Z0-9]\+$/-d2.avi/'`echoecho "Processing input file $FILE..."echorm -f divx2pass.log 2>/dev/nullnice -n 19 \mencoder "$FILE" \ -ovc xvid -xvidencopts turbo:bitrate=320:threads=16:pass=1:max_bframes=0 \ -oac mp3lame -lameopts cbr:br=192 \ -ffourcc XVID \ -vf scale=320:-2,crop=320:240,expand=320:240 \ -af resample=44100:0:0 \ -o "$OUT"nice -n 19 \mencoder "$FILE" \ -ovc xvid -xvidencopts bitrate=320:threads=16:pass=2:max_bframes=0 \ -oac mp3lame -lameopts cbr:br=192 \ -ffourcc XVID \ -vf scale=320:-2,crop=320:240,expand=320:240 \ -af resample=44100:0:0 \ -o "$OUT"