[MPlayer-dev-eng] fixing mencoder

D Richard Felker III dalias at aerifal.cx
Wed Apr 10 21:54:29 CEST 2002


On Wed, Apr 10, 2002 at 03:46:23PM -0400, D Richard Felker III wrote:
> > why ppl think that -vop format is format _converter_? it is NOT.
> > it just set format to exactly something, yuy2 by default.
> > for example, -vop format=yuy2 will forve yuy2 to be used by the next filter,
> > or libvo. usefull for cards/drivers with slow yv12, like tdfx.
> > 
> > for conversion, use -vop scale.
> > 
> > maybe i should rename filters...
> > -vop format_is_not_a_format_converter and -vop
> > scale_and_or_format_conversion
> 
> oops, ok, i'll fix this right away. will scale behave like nop if
> input and output formats and sizes are the same? i don't want this to
> slow things down...

hmm....actually i think i understand how this stuff works a bit better
now. maybe it would be appropriate to just lock out_fmt to yv12 for
lavc or divx4 encoding, and have mencoder's query_format function
return false for any other formats. of course, that's essentially what
my previous hack did, albeit with an extra pseudo-filter in between.
sound good?

in all these cases, i suppose it'll fail if the decoder can't output
yv12, but it's certainly better than mencoder not working at
all. and of course the user can just tell the scale plugin to convert
to yv12 if needed...

thoughts on all this?

rich




More information about the MPlayer-dev-eng mailing list