[MPlayer-users] unexpected small file size

Welko welko at web.de
Wed Aug 11 09:52:16 CEST 2004


Hello,

I have a file produced with:

mencoder dvd://1 -oac copy -ovc copy -o raw.avi

Additionally I dumped two audio streams and subtitles from the same 
disc. After compressing the audio streams I ended up with these files:

raw.avi                1334392232 bytes
audio_0.ogg        38911360 bytes
audio_1.ogg        39908825 bytes
subtitles.sub        10393600 bytes
subtitles.idx         88867 bytes

I intend to put them into an ogm container and fit the whole film on a 
700MB disc.

The vbitrate calculation I used is:

target = 700 * 1024 * 1024 = 734003200
penalty = target * 0.015 = 11010048
occupied = 38911360 + 39908825 + 10393600 + 88867 = 89302652
len_in_sec = 2904

vbitrate = (target - occupied - penalty) / len_in_sec / 125 = 1745.70 = 1745


I used the following commands to perform 2 pass encoding on the video 
stream:

mencoder raw.avi -oac copy -ovc lavc -lavcopts 
vcodec=mpeg4:vhq:vqmin=2:trell:autoaspect:vpass=1:vbitrate=1745 -vf 
crop=704:432:6:72,hqdn3d=2:1:2 -mc 0  -o /dev/null

mencoder raw.avi -oac copy -ovc lavc -lavcopts 
vcodec=mpeg4:vhq:vqmin=2:trell:autoaspect:vpass=2:vbitrate=1745 -vf 
crop=704:432:6:72,hqdn3d=2:1:2 -mc 0  -o final.avi

The size of the file final.avi is 517741080 bytes (494MB) which is a 
_lot_ less than the size I expected. Is there something wrong with my 
math or with the command line?

All suggestions are appreciated.
Thank you - Velko




More information about the MPlayer-users mailing list