#!/bin/sh
for i in `ls *.rm`
do
rm frameno.avi
mencoder $i -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi
mencoder $i -o $i.avi-oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=1800
mencoder $i -o $i.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=1800
done

Related Posts