[MPlayer-dev-eng] [PATCH] twopass xvid encoding of indata with multiple headers

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Dec 11 12:57:21 CET 2004


Hi,
> > > >When I was trying to encode my "Finding Nemo" dvd with mencoder and two
> > > >pass xvid encoding the the actual bitrate of the resulting file was way
> > > >off.
> > > >
> > > >I tracked it down to the fact that when decoding the mpeg2 stream from
> > > >the dvd it encounters multiple "header" segments in the datastream (I'm
> > > >unfamiliar with the correct terminology but I hope you get the idea). 
> > > >When mpeg2_parse() in libmpcodecs/vd_libmpeg2.c:decode() returns
> > > >STATE_SEQUENCE it triggers a call to xvid_encore() with second argument
> > > 
> > > is it really necessary that vd_libmpeg2.c re-init libvo for every 
> > > STATE_SEQUENCE?
> > 
> > >From what I can tell it actually only makes sense when some of the
> > parameters (width, height, fps) have changed...
> 
> agree. actually only width, height. fps change is irrelevant to mplayer.

Really? In what way? Does ignore it? Otherwise it is not irrelevant.
Some vos need it because they can't support all (do a grep vo_fps in
libvo).

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list