[MPlayer-users] xvid bitrate incorrect?

Zelos zelos at wanadoo.fr
Thu Nov 4 23:15:49 CET 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi everbody!

I decided to encode a whole movie from VOB to DIVX.
I tried two way to do this but actually, I'm wondering
~ about what's going wrong with my Xvid encoding script...

When encoded via lavc vcodec=mpeg4, the movie is 709M.
So, when encoding with Xvid, the bitrate could be the same,
~ couldn't it? It seems I'm wrong because the Xvid movie is 1,1G!

First, here's the script for mpeg4 encoding:

#!/bin/bash
BITRATE=767
VOB=MYMOVIE
CROP=720:552:0:12
SCALE=512:288
ABITRATE=128

rm -f *log

mencoder $VOB.vob -af volume=+16db -vf crop=$CROP,scale=$SCALE -ovc
lavc -oac lavc -lavcopts
v4mv:vhq:vqmin=2:acodec=mp3:abitrate=$ABITRATE:vcodec=mpeg4:vbitrate=$BITRATE:vpass=1
- -o /dev/null
mencoder $VOB.vob -af volume=+16db -vf crop=$CROP,scale=$SCALE -ovc
lavc -oac lavc -lavcopts
v4mv:vhq:vqmin=2:acodec=mp3:abitrate=$ABITRATE:vcodec=mpeg4:vbitrate=$BITRATE:vpass=2
- -o $VOB.avi
mv $VOB.avi $VOB-1cd.avi


ls -sh MYMOVIE-1cd.avi
709M MYMOVIE-1cd.avi

mplayer -identify MYMOVIE-1cd.avi

ID_FILENAME=MYMOVIE-1cd.avi
ID_VIDEO_FORMAT=DIVX
ID_VIDEO_BITRATE=767008
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=288
ID_VIDEO_FPS=25,000
ID_VIDEO_ASPECT=1,8542
ID_AUDIO_CODEC=mad
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=6537


This is the script for Xvid encoding:


#!/bin/bash
BITRATE=767
VOB=MYMOVIE
CROP=720:552:0:12
SCALE=512:288
ABITRATE=128

mencoder -vf crop=$CROP,scale=$SCALE -af volume=+16db -noskip \
- -ovc xvid -xvidencopts pass=1:bitrate=$BITRATE:trellis \
- -oac lavc -lavcopts acodec=mp3:abitrate=$ABITRATE \
- -o /dev/null $VOB.vob

mencoder -vf crop=$CROP,scale=$SCALE -af volume=+16db -noskip \
- -ovc xvid -xvidencopts pass=2:bitrate=$BITRATE:trellis \
- -oac lavc -lavcopts acodec=mp3:abitrate=$ABITRATE \
- -o $VOB-Xvid.avi $VOB.vob

ls -sh MYMOVIE-Xvid.avi
1,1G MYMOVIE-Xvid.avi

mplayer -identify MYMOVIE-Xvid.avi

ID_FILENAME=MYMOVIE-Xvid.avi
ID_VIDEO_FORMAT=XVID
ID_VIDEO_BITRATE=1244688
ID_VIDEO_WIDTH=512
ID_VIDEO_HEIGHT=288
ID_VIDEO_FPS=25,000
ID_VIDEO_ASPECT=1,8542
ID_AUDIO_CODEC=mad
ID_AUDIO_FORMAT=85
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=6537


As you can see, the (video)BITRATE value is the same in my script but
when encoded, the value is 1244688 instead of 767008... Of course, the
sizes of the movies are differents...

Any idea?

Thanks,
Zelos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFBiqoUgCJahx5E+yIRAoQtAJ0XPHpOfESomBRr7bvvdfz0WHMLIACg6Jr4
ih/P7Sdha/nuGdQUL0PCEiY=
=Qk1V
-----END PGP SIGNATURE-----




More information about the MPlayer-users mailing list