#!/bin/sh file=$@ fname=`basename "$file" | sed -r s/\..{3}\$//` nice -n 15 mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=1 -lameopts cbr:br=96:mode=3 -vf scale=320:-3,expand=320:240 -oac mp3lame -o "$fname-pda.avi" "$file" nice -n 15 mencoder -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=300:vpass=2 -lameopts cbr:br=96:mode=3 -vf scale=320:-3,expand=320:240 -oac mp3lame -o "$fname-pda.avi" "$file" rm divx*pass.log