Log in

View Full Version : How do you differentiating YV12, RGB, etc...?


DarkT
4th February 2007, 17:22
I was wondering... Since I really don't know :( Shame on me, I know, I know...

So how do you do that? Is there a program which tells you what's up? How does it go? Naturally, I know I could do it by using a certain filter which can only be used on X color-space, and then if it gives me no error, I know it's that one, or if it does, I cross the one I was suspecting from the list...

But is thre a more, errrm, "precise" way of doing it?

foxyshadis
4th February 2007, 21:28
In avisynth: Info() :p

In most other software, you either get a properties box that tells you, or more often, everything's just converted to RGB and it's impossible to tell. Sometimes the only way to know is to render the video in directshow or vfw and check the output format of the decoder - assuming the decoder doesn't change the format.

Among common consumer formats, practically everything is YV12 internally, most capture cards produce YV12 in mpeg mode (or YUY2/YUV9 in custom formats). Other random codecs can be pretty much anything, fourcc.org goes over most of them. A number of decoders will convert YV12 to YUY2 or RGB because tools to work with them are much more common, though in the avisynth world it's reversed. It's also easier to deal with interlaced stuff that way.

DarkT
4th February 2007, 21:52
God, I really do have to get to reading Avisynth guide :).

I'm asking because I've been doing 2 loseless passes lately before converting to x264 (you can see effects of filters easily, so it saves time when you mess up, etc...) - and I was using huffyuv... BUT, it doesn't support YV12! So I moved to Lagyrith - which does support it... Anyway, figured I better check before doing lagyrith each time... plus the dgindex thingy asks that(well, you can set in the options autoselect - but if I can select it for it, it's one less step where shit can go wrong) :).