[Home]OgmToAvi

#!/bin/sh
# this script converts dual audio soft-subbed .ogm files
# to hard-subbed .avi files using the second audio track
# and the first subtitle track.
#

files="$@";

for arg in $files ;

do

file=`echo $arg | sed -e 's/\.ogm$//'`

mencoder -oac copy \
         -ovc lavc \
         -vf scale \
         -zoom \
         -xy 720 \
         -lavcopts vcodec=mpeg4:mbd=2:v4mv:autoaspect:trell:vpass=1:vbitrate=3000 \
         -sid 0 \
         -o /dev/null $file.ogm >& /dev/null

mencoder -oac mp3lame \
         -ovc lavc \
         -vf scale \
         -zoom \
         -xy 720 \
         -lavcopts vcodec=mpeg4:mbd=2:v4mv:autoaspect:trell:vpass=2:vbitrate=3000 \
         -aid 0 \
         -sid 0 \
         -o $file.avi $file.ogm >& /dev/null
done

# end of script

Silverlake Linux Users Group Wiki | Recent Changes | Preferences
Password required to edit | View other revisions
Last edited September 14, 2005 2:08 pm by tarazed.ligo.caltech.edu (diff)
Search: