VideoHelp.com Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member SerbianBoss's Avatar
    Join Date: May 2005
    Location: Serbia
    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. Member
    Join Date: Dec 2005
    Location: none
    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. Member SerbianBoss's Avatar
    Join Date: May 2005
    Location: Serbia
    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. Member
    Join Date: Dec 2005
    Location: none
    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

  1. convert .mkv from level @5.1 to level @4.1
    By florinus in forum Newbie / General discussions
    Replies: 4
    Last Post: 29th Nov 2010, 15:33
  2. CCE Luminance setting -- clarification needed
    By eclipse95 in forum Video Conversion
    Replies: 14
    Last Post: 30th Sep 2009, 10:12
  3. Replies: 9
    Last Post: 23rd Dec 2008, 18:26
  4. DVD Luminance Value - How to do it right?
    By SCDVD in forum Newbie / General discussions
    Replies: 23
    Last Post: 7th Aug 2007, 20:42
  5. What Luminance level should I used with CCE?
    By mlong30 in forum Video Conversion
    Replies: 5
    Last Post: 19th Jun 2007, 10:13
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools