<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Hans,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Sorry for being so naive on
giving information. I am using following script to do the job of encoding for
me</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>***************************************************************************</DIV>
<DIV><FONT face=Arial size=2># file name is enc2divx and a link to the same file
is made with the name enc2divx.final</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>function conf()<BR>{<BR> conf="`dirname $0`/enc2divx.conf"<BR>
x=`cat $conf | grep -v "#" | grep $1 | cut -d "=" -f2`<BR> if [ "$x" == ""
]<BR> then x=$2<BR> fi<BR> echo
$x<BR>}<BR><BR>bitrate=`conf "bitrate" 1200`<BR>scale=`conf "scale"
80`<BR>scalefactor=`conf "scale" 80`<BR><BR><BR>crop="-vop
cropdetect=16"<BR>crop=`mencoder -nosound -ss 01:00 -endpos 1 $crop -ovc lavc
"$1" 2>err | grep "area" | tail -n 1`<BR>crop="crop=`echo "$crop" | cut -d
"(" -f3 | cut -d ")" -f1 | cut -d "=" -f2`"<BR>crop=`echo "$crop" | cut -d "="
-f2`<BR>w=`echo $crop | cut -d ":" -f1`<BR>h=`echo $crop | cut -d ":"
-f2`<BR>nw=`expr $w \* $scale / 100`<BR>nh=`expr $h \* $scale / 100`</DIV>
<DIV># use internal computation by mencoder by just giving one
dimension<BR>scale="scale=$nw:-3"<BR><BR>crop="-vop
$scale,crop=$crop"<BR><BR>vopts=" $crop -noskip -ovc lavc
vcodec=mpeg4:vhq:vbitrate=$bitrate:vhq:vqmin=2:vqmax=31:keyint=250:qpel:vme=1:v4mv"<BR>vopts1="$vopts:vpass=1"<BR>vopts2="$vopts:vpass=2"<BR>aopts="
-oac mp3lame -lameopts cbr=128"<BR>#aopts=" -oac copy"<BR>extopts=" -sws 2
-passlogfile /tmp/menc.log"<BR>if [ "`basename $0`" != "enc2divx.final"
]<BR> then<BR> stime=" -ss 3:00"<BR> dur=" -endpos
00:05"<BR> dur=" -frames 200"<BR> echo "<<<
Preview mode >>>"<BR> else<BR> echo "<<<
Final mode >>>"<BR>fi<BR><BR>echo "Original resolution : $w(w) X
$h(h)"<BR>echo "Scaling factor :
$scalefactor"<BR>echo
"Scaling
: $w X $h => $nw X $nh"<BR>echo
"Bitrate
: $bitrate"<BR>#echo "Crop options :
$crop"<BR><BR>fname="$1"<BR>echo "Encoding started at : `date`"<BR>if [
"`basename $0`" != "enc2divx.final" ]<BR> then<BR> mencoder
$fname $extopts $stime $dur $aopts $vopts1 1>log 2>err<BR>
#mencoder $fname $extopts $stime $dur $aopts $vopts2 1>log
2>err<BR> else<BR> cat $* | mencoder - $extopts $aopts
$vopts1 - 1>log 2>err<BR> #cat $* | mencoder - $extopts $aopts
$vopts2 - 1>log 2>err<BR>fi<BR>echo "Encoding finished at :
`date`"<BR><FONT face=Arial
size=2>*********************************************************************************</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I am writing this script to allow me to do various
things i want in encoding divx's(like spanning across various CD's also in
future, making iso's etc).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>You see that I have given passlog parameter to
allow mencoder to save 1st pass information there. But I do not see anything in
that file later on. If you see anything silly I am doing here kindly tell me so.
I am so much impressed by this software(mencoder) that I want to get best out of
it.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards from<BR>Vijay
Gill</FONT></DIV></BODY></HTML>