[MPlayer-users] vbitrate without frameno.avi
Matthias Czapla
dermatsch at gmx.de
Wed Feb 18 17:10:10 CET 2004
Hi!
So its now dprecated to use frameno.avi. Ok, but how is one supposed to know
the needed vbitrate to get a file with a specific size? Luckily I dont need
VBR MP3 so I thought I can just do
700 * 1024 * 1024 * 8 / movie_length_in_seconds
to get the overall bitrate available and subtract the MP3 bitrate from the
result to obtain the vbitrate for -lavcopts. But this does not work - the
resulting file 745 Mill. Bytes instead of the desired 733.
Here are the commands I used:
#!/bin/sh
# movie is 6831 seconds
for i in 1 2; do
nice -19 mencoder -aid 128 -oac pcm -ovc lavc \
-lavcopts vcodec=mpeg4:mbd=2:trell:vbitrate=748:vpass=$i \
-sws 2 -vf crop=720:569:0:3,scale=576:320 -dvd-device . dvd://1 \
-o test_pcm.avi
done
nice -19 mencoder -srate 44100 -oac mp3lame -lameopts cbr:br=112:aq=2 \
-ovc copy test_pcm.avi
Regards
lal
PS: how can one know vbitrate for VBR MP3?
More information about the MPlayer-users
mailing list