?Utility for determining color-space format
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.
Avisynth can determine colorspace for you.
Look here: Info
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 ...
quot;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 RGBquot;
----------------
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.
Originally posted by vion11
quot;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 RGBquot;
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.
Thanks for the reply. I had a funny feeling that there would be an AVS filter that gives this information. Perfect. Thanks again.
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 quot;naturalquot; colorspace used depends on how you had Huffyuv configured when you encoded the file. |