Log in

View Full Version : How to Determine Color-Space?


slk001
5th August 2002, 21:42
I have some video captures direct to MPEG2 that I have been assuming were in YUY2 color space. After reading a few posts, I'm now not too sure of exactly what "space" they are in. Is there something that will allow me to determine whether my caps are in YUY2 or RGB color space?

Dreassica
5th August 2002, 21:45
load th avi captured into vdub in choose File information in the Pulldownmenu File, the 3rd line will tell u which colorspace it is!!

bairradino
27th August 2003, 10:53
The information given by VirtualDub 1.5.4 refers only to "Decompressor".
The information given by VirtualDubMod 1.5.4.1 refers only to "FourCC code".
Both cases, in my example, refer "dvsd" and, according to my knowledge, this codec supports YUY2, UYVY, RGB32 and RGB24.
I'm also interested in knowing how to determine the colorspace of a given movie.
Any help?

Wilbert
27th August 2003, 11:09
Just use AviSource(...).info or Mpeg2Source(...).info.

bairradino
27th August 2003, 11:27
Wilbert,

I'd learn a lot with all of you how to deal with avisynth, wich is a great tool, but it is not enough, yet, to understant some of your advices.
Do you mean that I must make a simple script like, for example,AviSource("C:\temp\exp.avi").info
and open it with VirtualDub?
This doesn't work so you meant another thing.
Can you be more explicit?
I know it's not pleasant to deal with novices like me.
Sorry.

ARDA
27th August 2003, 11:55
quote:
------------------------------------------------------------------------
AviSource("C:\temp\exp.avi").info
------------------------------------------------------------------------
I'm sure there was a typo.
it should be

AviSource("C:\temp\exp.avi").info()

ARDA

Wilbert
27th August 2003, 12:14
This doesn't work so you meant another thing.

Does it give an error message?

Using info() or info doesn't matter.

1) Make sure that you are using AviSynth v2.5x, check that by using the following script:
version()

2) Make sure that the following script opens correctly in vdub/vdubmod:
AviSource("C:\temp\exp.avi")

bairradino
27th August 2003, 12:50
Amasing!!!
I could sware that I had the version 2.5 installed (the directory created at instalation was named Avisynth 2.5 and the program listed in ControlPanel/Programs was Avisynth2.5).
However it was the version 2.0.6.
Now I installed the version 2.52... and it works perfectly
Thanks to you once again.

paddycook
27th August 2003, 17:23
I've tried this script on a DV AVI file that I know is interlaced, but the result is giving me "Fieldbased Video = No". Is this right?

sh0dan
27th August 2003, 18:35
Yes (in a way). The fieldbased property is only showing if you have used "separatefields()" on your material.

AviSynth cannot know if an AVI file is interlaced - so trust your eyes.