PDA

View Full Version : Question about luminance ranges


Chainmax
20th June 2005, 17:30
I am trying to rip a DVD, and would like to try DGDecode's new LumaYV12 filter on it. The problem is that according to DGDecode's readme, LUMAYV12 requires a 0->255 luminance and I don't know wether the ripped VOBs use that range or the 16->235 one. In any case, I also want to use ColorYUV(levels="pc->tv")
and ColorYUV(levels="tv->pc") in order to correct some brightness/contrast changes. Would the correct order be somethng like:

LumaYV12(lumoff=-2,lumgain=1.0)
ColorYUV(levels="pc->tv")
ColorYUV(levels="tv->pc")

or should I switch places?

neuron2
20th June 2005, 18:24
It's just that LumaYV12 does not clip the output to 16-235.

There seems little point in using LumaYV12 if you're going to follow it with ColorYUV.

Cyberia
20th June 2005, 19:15
As per the LumaYV12 question, you might want to edit the DGDecode manual (LumaYV12 definition, obvoiusly) and change the word "assumes" to "outputs".

That should clear up that confusion.

WOOT: Points for reading the manual!

Chainmax
21st June 2005, 00:21
It's just that LumaYV12 does not clip the output to 16-235.

There seems little point in using LumaYV12 if you're going to follow it with ColorYUV.

I know virtually nothing about luma and chroma properties and how to handle them when (re)encoding video, but I use the LumaYV12 line for block removal and the ColorYUV lines in order to remove sudden brightness/contrast changes in the video I'm filtering. In any case, what range does an original DVD use, 0-255 or 16-236?

neuron2
21st June 2005, 00:44
My point was that you can do the luma adjustment in ColorYUV(). The only reason to use LumaYV12() is that it is faster. But if you're running ColorYUV() anyway (twice!), then it's pointless.

Chainmax
22nd June 2005, 01:35
But what range does a commercial DVD use? Because if it is TV range then I do have to add ColorYUV(levels="pc->tv") in order to go back to normal after using LumaYV12.

Wilbert
22nd June 2005, 10:18
But what range does a commercial DVD use?
16-235 (but there might be values below 16 and above 235)

Chainmax
22nd June 2005, 16:24
I see, thanks :).