PDA

View Full Version : Color conversion problem


You Know
24th February 2008, 12:28
Hi, i'm try to modify a DVD menu.

The m2v file is NTSC in BT.470-2 B,G* (DGIndex info) color space.
My project is destinated to DVD so in DGIndex i had set Video->YUV <-> RGB->TV Scale.

http://img213.imageshack.us/img213/3575/dgindexjx7.png

the initial version of avs script:

MPEG2Source("E:\TEMP\AIKA\01\VTS_01\Menu\m01_v002c001.d2v", idct=4)


this is the output in Virtual Dub mod exporting Shift+1 function.

http://img141.imageshack.us/img141/7362/vdm1ct1.png

mhm the image appeare more brilliant. Matching the red color is different.
The color information is rights

http://img141.imageshack.us/img141/1993/vdm2ge5.th.png (http://img141.imageshack.us/my.php?image=vdm2ge5.png)

Maybe a implicit conversion into MPEG2Source plugin and it not understand the correct output format?

Ok now explit format to the same of input Rec709 TV Scale

MPEG2Source("E:\TEMP\AIKA\01\VTS_01\Menu\m01_v002c001.d2v", idct=4)
ConvertToRGB24(matrix="Rec709")


http://img89.imageshack.us/img89/9413/vdmrec709ns1.png

to lighted, so i try all standard

ConvertToRGB24(matrix="PC.709")

http://img218.imageshack.us/img218/818/vdmpc709qf3.th.png (http://img218.imageshack.us/my.php?image=vdmpc709qf3.png)

ConvertToRGB24(matrix="PC.601")

http://img218.imageshack.us/img218/3650/vdmpc601ed1.th.png (http://img218.imageshack.us/my.php?image=vdmpc601ed1.png)

last is not the same but most similar (Red is RGB(161,41,41) vs RGB(161,41,42))

Anyone can explain me why 601 PC Scale is the correct conversion?

Any conversion using ColorMatrix plugin got me be wrong result

MPEG2Source("E:\TEMP\AIKA\01\VTS_01\Menu\m01_v002c001.d2v", idct=4, info=3)
ColorMatrix(mode="Rec.601->Rec.709", hints=true, clamp=true)
#ColorMatrix(mode="Rec.601->Rec.709", hints=true, clamp=false)
#ColorMatrix(mode="Rec.709->Rec.601", hints=true, clamp=false)
#ColorMatrix(mode="Rec.709->Rec.601", hints=true, clamp=true)


Maybe a DGIndex GUI render problem, a DGDecode.dll problem, ConvertToxxx problem or my problem?

foxyshadis
25th February 2008, 02:29
Well..... why not just encode with no color conversions at all, and specify 601/470 in the encoder or the muxer? There's no reason I can think of to convert to RGB unless you intend to edit it in graphics software.

Anyone can explain me why 601 PC Scale is the correct conversion?
Because Rec.601 is BT.470-2, but as for PC scale, that might just be how your player decodes it or a weird DVD, since everything on DVD is supposed to be TV scale.

You Know
25th February 2008, 09:34
Well..... why not just encode with no color conversions at all, and specify 601/470 in the encoder or the muxer? There's no reason I can think of to convert to RGB unless you intend to edit it in graphics software.

I need common color space to fade into a clip created from a ImageReader plugin so I need convert to RGB.

I can not find in CCE SP2 setting how adjust the input color space or conversion. The encoded m2v using only the MPEG2Source plugin was different from initial m2v.


Because Rec.601 is BT.470-2, but as for PC scale.

Ok i'm sorry reading coloramatrix plugin i erroneously understand 709 aka BT.470-2 :P

:thanks:

Wilbert
25th February 2008, 19:30
Hi, i'm try to modify a DVD menu.

The m2v file is NTSC in BT.470-2 B,G* (DGIndex info) color space.
I couldn't find it in the documentation, but this asterisk (*) means that the colorimetry is unspecified, and hence the default BT.470-2 B,G should be used (for SD material):

http://forum.doom9.org/showthread.php?p=1063870#post1063870

This is done as follows:

MPEG2Source("E:\TEMP\AIKA\01\VTS_01\Menu\m01_v002c001.d2v")
ConvertToRGB24(matrix="PC.601")

and it is the same as your screenshot (is this a screenshot from a software dvd player?)

this is the output in Virtual Dub mod exporting Shift+1 function.
When opening the VOB/MPEG-2 clip in VirtualDubMod, it assumed Rec.709, since an older version of the MPEG-2 specs said you should Rec.709 when the colorimetry is unspecified. So, that's why they are different.

I hope it's a bit clear :)