[MEncoder-users] lavc or xvid

Alex Samad alex at samad.com.au
Mon Sep 3 09:50:04 CEST 2007


On Sun, Sep 02, 2007 at 05:36:53PM -0700, RC wrote:
> On Mon, 3 Sep 2007 07:39:10 +1000
> Alex Samad <alex at samad.com.au> wrote:
> 
> > xvid is looking better now, but at 800kbit rate it is only 1/2 the
> > size of the  original, were as lavc is much better.
> 
> Obviously it's not a fair comparison if the Xvid files are ending up
> larger.  You'll have to increase the lavc bitrate until they're the same
> size to fairly compare quality (mencoder should report the average
> bitrate of the Xvid file at the end of encoding).

they are being encoded at the same bitrate  this is the bash'ism i use
for SRC in 01 02 ; do for VBITRATE in 800 1200 1600; do for OVC in 2 ; do 
export OVC ; export VBITRATE;  ~/scripts/video/VideoCameraToDivx.sh 
MOV0$SRC.MOD  MOV0$SRC-$VBITRATE-$OVC.avi; done ; done ; done


OVC = 0 = LAVC
/usr/bin/mencoder -quiet MOV001.mpg -oac mp3lame -lameopts preset=standard -ovc 
lavc -lavcopts 
vcodec=mpeg4:aspect=16/9:mbd=2:mv0:trell:v4mv:vbitrate=800:vpass=1 -ffourcc 
DX50 -passlogfile /tmp/user/1000/tmp.dSJqY19216/divx2pass.log -ofps 25 -vf 
softskip -o MOV001-800-0.avi

/usr/bin/mencoder -quiet MOV001.mpg -oac mp3lame -lameopts preset=standard -ovc 
lavc -lavcopts 
vcodec=mpeg4:aspect=16/9:mbd=2:mv0:trell:v4mv:vbitrate=800:vpass=3 -ffourcc 
DX50 -passlogfile /tmp/user/1000/tmp.dSJqY19216/divx2pass.log -ofps 25 -vf 
softskip -o MOV001-800-0.avi

/usr/bin/mencoder -quiet MOV001.mpg -oac mp3lame -lameopts preset=standard -ovc 
lavc -lavcopts 
vcodec=mpeg4:aspect=16/9:mbd=2:mv0:trell:v4mv:vbitrate=800:vpass=2 -ffourcc 
DX50 -passlogfile /tmp/user/1000/tmp.dSJqY19216/divx2pass.log -ofps 25 -vf 
softskip -o MOV001-800-0.avi

OVC = 2 = Xvid

/usr/bin/mencoder -quiet MOV001.mpg -oac mp3lame -lameopts preset=standard -ovc 
xvid -xvidencopts 
aspect=16/9:min_iquant=1:max_iquant=3:min_pquant=1:max_pquant=5:min_bquant=2:max_bquant=8:me_quality=6:quant_type=mpeg:trellis:chroma_me:chroma_opt:max_bframes=2:hq_ac:vhq=1:bvhq=1:keyframe_boost=15:bitrate=800:pass=1 
-ffourcc DX50 -passlogfile /tmp/user/1000/tmp.SBvJf19267/divx2pass.log -ofps 25 
-vf softskip -o MOV001-800-2.avi

/usr/bin/mencoder -quiet MOV001.mpg -oac mp3lame -lameopts preset=standard -ovc 
xvid -xvidencopts 
aspect=16/9:min_iquant=1:max_iquant=3:min_pquant=1:max_pquant=5:min_bquant=2:max_bquant=8:me_quality=6:quant_type=mpeg:trellis:chroma_me:chroma_opt:max_bframes=2:hq_ac:vhq=1:bvhq=1:keyframe_boost=15:bitrate=800:pass=2 
-ffourcc DX50 -passlogfile /tmp/user/1000/tmp.SBvJf19267/divx2pass.log -ofps 25 
-vf softskip -o MOV001-800-2.avi


I recently changed the xvid enc opts to one suggested in the mailing list.

these are the file sizes

-rw-rw-r--+ 1 alex movies 9.3M 2007-09-01 12:03 MOV001-800-0.avi
-rw-rw-r--+ 1 alex movies  275 2007-09-01 11:58 MOV001-800-0.avi.pass1
-rw-rw-r--+ 1 alex movies  275 2007-09-01 12:00 MOV001-800-0.avi.pass2
-rw-rw-r--+ 1 alex movies  275 2007-09-01 12:01 MOV001-800-0.avi.pass3
-rw-rw-r--+ 1 alex movies  23M 2007-09-01 12:05 MOV001-800-2.avi
-rw-rw-r--+ 1 alex movies  429 2007-09-01 12:03 MOV001-800-2.avi.pass1
-rw-rw-r--+ 1 alex movies  429 2007-09-01 12:03 MOV001-800-2.avi.pass2
-rwxrwxr--+ 1 alex movies  50M 2007-08-18 13:41 MOV001.mpg

in comparison (200Kbit)
-rw-rw-r--+ 1 alex movies  21M 2007-09-01 12:27 MOV001-2000-0.avi
-rw-rw-r--+ 1 alex movies  277 2007-09-01 12:21 MOV001-2000-0.avi.pass1
-rw-rw-r--+ 1 alex movies  277 2007-09-01 12:23 MOV001-2000-0.avi.pass2
-rw-rw-r--+ 1 alex movies  277 2007-09-01 12:25 MOV001-2000-0.avi.pass3
-rw-rw-r--+ 1 alex movies  23M 2007-09-01 12:30 MOV001-2000-2.avi
-rw-rw-r--+ 1 alex movies  431 2007-09-01 12:27 MOV001-2000-2.avi.pass1
-rw-rw-r--+ 1 alex movies  431 2007-09-01 12:28 MOV001-2000-2.avi.pass2
-rwxrwxr--+ 1 alex movies  50M 2007-08-18 13:41 MOV001.mpg


MOV001.mpg is the original file

> 
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mencoder-users/attachments/20070903/506b4657/attachment.pgp>


More information about the MEncoder-users mailing list