View Full Version : ?Utility for determining color-space format


WorBry
23rd August 2004, 14:07
Hi,

I know this doesnt concern AVISyth directly, but it would seem that users of this forum would be most likely able to answer my question, which is:

Is there a tool/utility out there that can tell you what the color-space format of a source AVI file is in? I've done some web searches but havent found anything yet.

Thanks.

vion11
23rd August 2004, 14:36
Avisynth can determine colorspace for you.
Look here: http://www.avisynth.org/Info (www.avisynth.org/Info)

trevlac
23rd August 2004, 18:29
I think there are 2 things here.

1) The format the decompression codec can/does deliver
2) The format the compression uses

Info is just reporting the 1st. The 2nd is a bit inhearent in the type of compression.

For example ... NTSC DV is YCbCr 4:1:1. But it is my understanding that many DV codec only deliver this as RGB.

Huffyuv can compress either YCbCr 4:2:2 or RGB. According to it's doc, if an application asks for the 'default' format, Huffyuv will deliver the colorspace used for the compression. An app can also ask for a specific 4CC.

From the AVISource doc, it sounds like that is what Avisynth does ...

"if you don't specify (pixel_type) it will try to output the AVI as YV12, if that isn't possible it tries YUY2 and if that isn't possible it tries RGB"

----------------
Unfortunately .... I don't have a good answer to the question of what is inside. If you want what is getting delivered ... info() will tell.

EpheMeroN
23rd August 2004, 18:34
Originally posted by vion11
"if you don't specify (pixel_type) it will try to output the AVI as YV12, if that isn't possible it tries YUY2 and if that isn't possible it tries RGB"
Is this why when I make a simple script w/ just Info() Vdub tells me my videos are in YUY2 colorspace? I use Huffyuv for all my captures but had no idea I had to specify that it was RGB. I just assumed from Info() that it was naturally in YUY2.

WorBry
23rd August 2004, 19:33
Thanks for the reply. I had a funny feeling that there would be an AVS filter that gives this information. Perfect. Thanks again.

stickboy
24th August 2004, 07:17
Originally posted by EpheMeroN
Is this why when I make a simple script w/ just Info() Vdub tells me my videos are in YUY2 colorspace? I use Huffyuv for all my captures but had no idea I had to specify that it was RGB. I just assumed from Info() that it was naturally in YUY2.Huffyuv supports both YUY2 and RGB. The "natural" colorspace used depends on how you had Huffyuv configured when you encoded the file.