VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. I read on doom9 forum that Panasonic and Mainconcept dv codecs uses a luminance range of 0-255.

    I work with CCE and avisynth and sometimes i use panasonic and sometimes cedocida codec.

    So in CCE is select luminance level 16-235. So is this correct when using panasonic or cedocida codec or i must change to 0-255 ?
    Quote Quote  
  2. All codecs that use YUV should use 16-235 for the luminance channel. It's when YUV is converted to RGB that luminance stretching occurs. Most YUV-to-RGB converters will stretch the luminance to 0-255 when converting to RGB. Conversely, when converting from RGB to YUV the luminance is compressed from 0-255 to 16-235. If you are not converting back and forth between YUV and RGB you don't need to worry about this.
    Quote Quote  
  3. when converting from RGB to YUV the luminance is compressed from 0-255 to 16-235

    So,when using panasonic dv codec to decode(panasonic work only in rgb) i add converttoyuy2(interlaced true) see script:

    LoadPlugin("Convolution3d.dll")
    avisource("D:\CAPTURE\bmw.avi")
    crop(8,4,-8,-12)
    ConvertToYuY2(interlaced=true)
    SeparateFields()
    odd=SelectOdd.Convolution3D (1, 32, 128, 16, 64, 10, 0)
    evn=SelectEven.Convolution3D (1, 32, 128, 16, 64, 10, 0)
    Interleave(evn,odd)
    Weave()
    AddBorders(8,8,8,8,)

    This is rgb to yuy2 conversion. In that way does luminance stay at 16-235 ?
    I only work with RGB to YUY2 conversion, not reverse
    Quote Quote  
  4. Originally Posted by SerbianBoss
    So,when using panasonic dv codec to decode(panasonic work only in rgb) i add converttoyuy2(interlaced true)...
    Yes.

    Originally Posted by SerbianBoss
    This is rgb to yuy2 conversion. In that way does luminance stay at 16-235 ?
    Yes, assuming the Panasonic DV codec performed the contrast stretch when it converted YUV to RGB.
    Quote Quote  
  5. And you can easily find the luminance range by adding ColorYUV(Analyze=True) to the bottom of the script and scrolling around in VDubMod.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!