[MPlayer-dev-eng] [PATCH] YUV4MPEG2 mencoder output format

Roine Gustafsson roine at users.sourceforge.net
Sun Jan 9 16:12:31 CET 2005


On Sunday, Jan 9, 2005, at 12:54 Europe/Stockholm, Reimar Döffinger 
wrote:
>>
>> - Filters don't work correctly
>
> Please be more precise, this should not be the case.

This is not a bugreport; I just didn't get several stacked filters to 
work with mplayer (filmdint+some other), and they worked fine with 
mencoder. But then I had to use raw output, which was so painful I 
wrote the muxer instead...

>> - Automatic colorspace conversions break losslessness of y4m
>
> mencoder should be doing them at exactly the same places. The (almost) 
> only
> difference between mencoder and mplayer is the code in mencoder.c and
> mplayer.c...

No, the -vo yuv4mpeg does that internally.

>
>> - Doesn't write colorspace information
>> - Doesn't support pixel aspect ratios
>> - Subject to frame droppings as it is part of a player
>
> MPlayer will _never_ drop frames unless you tell it to! mencoder is the
> one you have to bug hard not to drop frames.

Really? This is news to me. Why would mencoder drop frames?? It doesn't 
have anything to catch up to.

>
>> - Only output to file, not to a pipe
>
> Huh? There is no difference between file and pipe on *nices

the yuv4mpeg vo creates and writes the files itself. The only option is 
to use a fifo. With mencoder you (should) be able to do
mencoder <yadda> -of y4m -o - | y4mscaler [...]
which I prefer.

>
>> - Annoyingly will open a dummy window if scripted, since it's part of 
>> a
>> player
>
> Sorry??? I've never ever seen that, and I used it in scripts (see e.g.
> mplmult.sh in the TOOLS dir)

Correction: it doesn't open a window, it creates a dock icon on the Mac 
(like taskbar on Win). This is necessary when you want UI elements 
(keypresses and windows). mencoder doesn't, so I prefer it.

>
>> Apparently the vo-code has other qualities, like outputting subtitled
>> frames. It serves a different purpouse.
>>
>> It's doing what I want; I'm simply offering it to you so I won't have
>> to re-patch my mencoder everytime I update it.
>
> If you want to keep it like that... Then you will have to maintain it
> and update it with every change to MPlayer. I am not ready to maintain
> nearly the same code, that if there weren't bugs should provide the 
> same
> functionality.

IMO this is different functionality for mencoder.
I'm not very well versed in mplayer internals, but I'm willing to try 
to maintain the code.
I'd like to add interlacing support, but I don't know how mplayer 
stores interlacing information internally. Any pointers?

I already know it breaks when the raw codec breaks (raw codec doesn't 
handle internally padded pixmaps). You turned down a patch for that 
already.

   /Roine




More information about the MPlayer-dev-eng mailing list