View Full Version : How to tell what color format? YUV,RGB,YUY2
thebizguy
3rd September 2009, 19:29
Is there a way to find out what color format an avi file contains?
Any program or script that could be run against these avi's to find out or roughly predict?
I have several AVI's recorded from different sources over the last few years and I have no idea what color they use.
Reuf Toc
3rd September 2009, 20:19
Info() (http://avisynth.org/mediawiki/Info) or Clip properties (http://avisynth.org/mediawiki/Clip_properties).
Gavino
3rd September 2009, 21:27
Info() or clip properties will tell you what format Avisynth is getting the input from the decompressor, but this isn't necessarily the format stored in the file - the decompressor might be doing a conversion (eg ffdshow can be configured to deliver only RGB).
The only way to be sure is to find out what video codec has been used in the file (use GSpot or MediaInfo) and from that deduce the native color format.
NerdWithNoLife
3rd September 2009, 22:02
Info() or clip properties will tell you what format Avisynth is getting the input from the decompressor, but this isn't necessarily the format stored in the file - the decompressor might be doing a conversion (eg ffdshow can be configured to deliver only RGB).
The only way to be sure is to find out what video codec has been used in the file (use GSpot or MediaInfo) and from that deduce the native color format.
Very true; DV is one of those tricky codecs, being in 4:1:1. If I may hijack this thread slightly to address proper loading, may I ask if it matters how you set YUV > RGB in DGIndex? From the manual:
This option affects conversion to RGB, which occurs in only two places in DGMPGDec: 1) in the display window of DGIndex, and 2) the video served by DGVfapi. Generally, unless you have a good reason to clip the RGB, you should select the PC scale option.
So if the clip is loaded with MPEG2Source, it shouldn't matter whether PC or TV is selected?
thewebchat
4th September 2009, 15:45
Yes. MPEG2Source returns YUV, so any RGB-related settings are ignored.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.