[MPlayer-users] Re: failed to compile mplayer(cvs) with xvid

yong y0ngc at yahoo.com
Tue Mar 21 15:10:54 CET 2006


Guillaume POIRIER <poirierg <at> gmail.com> writes:

> 
> Hi,
> 
> On 3/21/06, y0ng <y0ngc <at> yahoo.com> wrote:
> > Ok, with this patch now the mplayer/libavcodec compiling works :)
> > but how to use vrc_strategy=1?
> 
> >From the man page:
> 
>        vrc_strategy
>               Ratecontrol  method.   Note that some of the
> ratecontrol-affecting options will have no effect if vrc_strategy is
> not set to 0.
>                  0    Use internal lavc ratecontrol (default).
>                  1    Use XviD ratecontrol (experimental; requires
> MEncoder to  be  compiled  with XviD support).
> 
> > i only use vrc_strategy=1 in 1st pass, am i right?
> 
> No, I'd say use it on all passes.
> 
As you suggested, i tried this:
-nosound -o nul: -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:
vmax_b_frames=2:vpass=1:vbitrate=600:vb_strategy=1:vrc_strategy=1
-passlogfile "xcidrc.txt"

-audio-preload 2.0 -o "%userprofile%\desktop\%~n1.avi" -ffourcc mp4v
-oac copy -ovc lavc -lavcopts vcodec=mpeg4:autoaspect:keyint=300
:vmax_b_frames=2:vpass=2:vbitrate=600:predia=2:dia=2:preme=2:trell
:mv0:mbd=2:qprd:cbp:v4mv:naq:vrc_strategy=1
-passlogfile "xcidrc.txt"

but mencoder tell me when 2nd pass:
ff_tempfile: Cannot open temporary file
Can't create temporary pass2 file.
Could not open codec.
FATAL: Cannot initialize video driver.

I dont know how to make vrc_strategy=1 work in 2nd pass.
> > i get an bit-identical files when tried compare it
> > with the default vrc_strategy encoded video clips...
> 
> That's odd. Do you really have XviD support compiled in?

i got a bit-identical file because i use vrc_strategy in first pass only...
Its my fault...

Yup im using Corey's patch to compiled mplayer with xvid 1.2.0 dev.




More information about the MPlayer-users mailing list