VideoHelp Forum




+ Reply to Thread
Page 2 of 2
FirstFirst 1 2
Results 31 to 46 of 46
  1. so it could be compared shifted, ok
    Code:
    import vapoursynth as vs
    from vapoursynth import core
    input=r'F:/Output.avi' #magicyuv (here it is RGB)
    clip = core.ffms2.Source(input)
    clip = core.std.SetFrameProp(clip, prop="_FieldBased", intval=2)  # 2 is TFF
    clip = core.resize.Bicubic(clip, matrix_s = '170m', format = vs.YUV420P8).text.Text("Magic Avi")[129:]
    
    d2v_file=r'F:/Source .MPG'
    clip2 = core.d2v.Source(d2v_file).text.Text("MPG")
    
    clip_out = core.std.Interleave([clip,clip2])
    clip_out.set_output()
    that magic RGB has different levels , did you try to check full range to that RGB?
    Quote Quote  
  2. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    magic was check interlace and check full range with rec601

    and used levels to put them in legal range within vegas
    Last edited by smartel; 31st Mar 2019 at 20:00.
    Quote Quote  
  3. Vegas crushed both blacks and whites.
    Quote Quote  
  4. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    avisynth's histogram showed them both borderline..
    i'll give them more headroom to breath , the whites are already blown in the source
    Quote Quote  
  5. For example 255 values were brought down to legal value 235
    and blacks also the other way , but it is not needed

    you do not need to fix blacks
    what effect did you use?
    use basic brightness, contrast and center to tune it up , that should be in your version of Vegas - > to bring whites down, not blacks, or blacks just a tiny bit towards dark
    this is your MPG and that Magic comparison, as you can see you do not need to crash blacks further together with whites
    Image Attached Thumbnails Click image for larger version

Name:	original.JPG
Views:	101
Size:	84.6 KB
ID:	48532  

    Click image for larger version

Name:	magic avi.JPG
Views:	122
Size:	84.4 KB
ID:	48533  

    Quote Quote  
  6. BTW, for the near-blown out highlights, here's an old Vegas trick:

    1. Add the Invert plugin to the event.
    2. Add the Levels plugin to the event.
    3. Add the Invert plugin (again) to the event.
    4. Set both Invert plugins to invert 100%.
    5. Use the Gamma slider on the levels plugin to adjust the levels. It will work backwards.

    What has this achieved? The gamma function works more on the darker parts of the image. By inverting, it works more on the lighter sections.
    Quote Quote  
  7. Originally Posted by johnmeyer View Post
    BTW, for the near-blown out highlights, here's an old Vegas trick:

    1. Add the Invert plugin to the event.
    2. Add the Levels plugin to the event.
    3. Add the Invert plugin (again) to the event.
    4. Set both Invert plugins to invert 100%.
    5. Use the Gamma slider on the levels plugin to adjust the levels. It will work backwards.

    What has this achieved? The gamma function works more on the darker parts of the image. By inverting, it works more on the lighter sections.
    I do that in AviSynth with:

    Code:
    Invert().ColorYUV(gamma_y=x).Invert().
    Quote Quote  
  8. nice tricks

    in that Vegas using basic logic, just small steps, basics how to fix it:
    Image Attached Thumbnails Click image for larger version

Name:	whites down.JPG
Views:	220
Size:	265.5 KB
ID:	48534  

    Quote Quote  
  9. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    One thing i may try is

    Invert()
    #ColorYUV(analyze=true)
    SmoothLevels(16,1,255,16,235, HQ=true)
    Invert()
    Histogram("Levels")

    i'm not too shure if their is a dithering option in smoothlevels or if it's even needed

    i know blowed highlights are lost.. but if i can recover even a little bit of anything that's left ...

    or at least make it more watchable ..
    Quote Quote  
  10. Originally Posted by smartel View Post
    One thing i may try is

    Invert()
    #ColorYUV(analyze=true)
    SmoothLevels(16,1,255,16,235, HQ=true)
    Invert()
    Histogram("Levels")

    i'm not too shure if their is a dithering option in smoothlevels or if it's even needed

    i know blowed highlights are lost.. but if i can recover even a little bit of anything that's left ...

    or at least make it more watchable ..
    That will raise the black level, not lower the white level.
    Quote Quote  
  11. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    SmoothLevels(0,1,235,16,235, HQ=true) ..the other way around ..you're right
    Quote Quote  
  12. Why invert, adjust, then invert again? SmoothLevels is linear (when not using the gamma option) so skip the inversions and just use SmoothLevels to pull the whites down.
    Last edited by jagabo; 8th May 2019 at 18:31.
    Quote Quote  
  13. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    johnmeyer said "The gamma function works more on the darker parts of the image. By inverting, it works more on the lighter sections. " ..in vegas.. maybe not in avisynth..
    Quote Quote  
  14. You're not using the gamma option in your SmoothLevels call (it's set to 1, no change). So the function is linear.

    Code:
    ######################################################
    
    function GreyRamp()
    {
       black = BlankClip(color=$000000, length=256, width=1, height=256, pixel_type="RGB32")
       white = BlankClip(color=$010101, length=256, width=1, height=256, pixel_type="RGB32")
       StackHorizontal(black,white)
       StackHorizontal(last, last.RGBAdjust(rb=2, gb=2, bb=2))
       StackHorizontal(last, last.RGBAdjust(rb=4, gb=4, bb=4))
       StackHorizontal(last, last.RGBAdjust(rb=8, gb=8, bb=8))
       StackHorizontal(last, last.RGBAdjust(rb=16, gb=16, bb=16))
       StackHorizontal(last, last.RGBAdjust(rb=32, gb=32, bb=32))
       StackHorizontal(last, last.RGBAdjust(rb=64, gb=64, bb=64))
       StackHorizontal(last, last.RGBAdjust(rb=128, gb=128, bb=128))
    }
    
    ######################################################
    
    GreyRamp().ConvertToYV12(matrix="PC.601")
    
    dir = SmoothLevels(16,1,255,16,235, HQ=true).TurnRight().Histogram().TurnLeft().Subtitle("direct")
    inv = Invert().SmoothLevels(0,1,235,20,235, HQ=true).Invert().TurnRight().Histogram().TurnLeft().Subtitle("invert")
    
    StackHorizontal(dir, inv)
    Image
    [Attachment 49020 - Click to enlarge]


    Also, note that the difference between 255 and 235 is 20, not 16.
    Last edited by jagabo; 8th May 2019 at 18:45.
    Quote Quote  
  15. Member
    Join Date
    Dec 2010
    Location
    quebec
    Search Comp PM
    without inverting was around 0.83 ..didn't try it yet ..i'll have more time this weekend..
    ..i read that some people used hdragc() for this but i didn't have much success
    Quote Quote  
  16. Effect of gamma, SmoothLevels(0 ,2.0, 255, 0, 255, HQ=true), and invert() before and after.

    Image
    [Attachment 49024 - Click to enlarge]
    Quote Quote  



Similar Threads

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