[MEncoder-users] Target file size too big wrt bitrate
Mariusz Zynel
sysadm at amikom.com.pl
Fri Apr 6 22:44:40 CEST 2007
Hi,
I'm encoding a movie from DVD to DIVX in three passes. First the
audio is encoded:
mencoder -ovc frameno -o frameno.avi -oac lavc -lavcopts
acodec=ac3:abitrate=96 -alang pl -aid 131 some_file
Then two passes to encode the video stream go:
mencoder -o /dev/null -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=980:vhq:vpass=1:turbo -vf scale=640:360 some_file
mencoder -o movie.avi -ffourcc DIVX -oac copy -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=980:vhq:vpass=2 -vf scale=640:360 some_file
The specified video bitrate 980kbps is suggested by the first pass to
make the target file of size 800MB. Everything goes fine except that
the target file is 1007MB.
I'm working on Solaris 10 Update 3. MPlayer/MEncoder is todays
snapshot: mplayer-export-2007-04-06 built with GCC 4.1.2 on
two way Xeon 3.06GHz box.
I've been using Mplayer/Mencoder for a long time and had encoded a lot
of movies successfully with the above commands. The last version
that works flawlessly is 1.0pre6a. First noticed the problem in 1.0pre8.
1.0pre6a built with the same compiler on the same platform creates
target files as expected.
I've tried additional options like:
vcodec=mpeg4:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6
with no luck.
Any help in greatly appreciated as I'm fighting this bug for couple
of months now.
Mariusz
More information about the MEncoder-users
mailing list