VideoHelp Forum
+ Reply to Thread
Page 4 of 4
FirstFirst ... 2 3 4
Results 91 to 101 of 101
Thread
  1. Originally Posted by poisondeathray View Post
    The horizontal line is the midpoint indicator for histogram() - it's normal . It might have displayed slightly differently in older avs versions. You can test it yourself on a black synthetic video, it's still there
    I need to stop posting questions that late at night

    But I still struggle to get similar looking picture with new ContrastMask And I have some strange artifacts.

    new
    Code:
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll")
    FFVideoSource("E:\SAMPLE\video\03.avi")
    
    ConvertBits(16) 
    
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\aWarpsharpMT.dll")
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\nnedi3.dll")
    SeparateFields()
    MergeChroma(last, Spline36Resize(width/2, height).aWarpSharp2(depth=30).nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=width, fheight=height))
    Weave()
    
    ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) #gain_y=-10
    Tweak(bright=20, coring=false) #coring=false
    Tweak(Hue=-16)
    
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\vsTCanny.dll")
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\masktools2.dll")
    Import("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ContrastMask2.avsi")
    SeparateFields() 
    ContrastMask(enhance=1.8)
    Weave()
    
    Tweak(cont=0.9)
    
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\fft3dfilter.dll")
    FFT3DFilter(bt=-1, sharpen=0.3, interlaced=true)
    
    ConvertBits(bits=8, dither=1)
    ConvertToYV12(matrix="rec601", interlaced=true)
    old
    Image
    [Attachment 82684 - Click to enlarge]

    new
    Image
    [Attachment 82685 - Click to enlarge]


    And for some reason - today, banding in the script with old ContrastMask not look that bad So maybe I stick with it...
    Image
    [Attachment 82686 - Click to enlarge]


    old
    Code:
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ffms2.dll")
    FFVideoSource("E:\SAMPLE\video\03.avi")
    
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\aWarpsharpMT.dll")
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\nnedi3.dll")
    SeparateFields()
    MergeChroma(last, Spline36Resize(width/2, height).aWarpSharp2(depth=30).nnedi3_rpow2(2, cshift="Spline36Resize", fwidth=width, fheight=height))
    Weave()
    
    ConvertToYV12(matrix="rec601", interlaced=true)
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\variableblur.dll")
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\masktools2.dll")
    Import("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\ContrastMask.avsi")
    SeparateFields() 
    even = SelectEven(last).ContrastMask(enhance=3.0)
    odd = SelectOdd(last).ContrastMask(enhance=3.0)
    Interleave(even, odd)
    Weave()
    
    ConvertBits(16) 
    
    ColorYUV(gamma_y=-35, cont_y=46, gain_y=-10, off_y=0) #gain_y=-10
    Tweak(bright=3, coring=false) #3 for ContrastMask(enhance=3.0)
    Tweak(cont=0.9)
    Tweak(Hue=-16)
    
    LoadPlugin("M:\edit\MeGUI-6666.2308_x64\tools\avs\plugins64\fft3dfilter.dll")
    FFT3DFilter(bt=-1, sharpen=0.3, interlaced=true)
    
    ConvertBits(bits=8, dither=1)
    Image Attached Files
    Last edited by cinephil; 5th Oct 2024 at 08:34.
    Quote Quote  
  2. Can't make heads or tail out of your script. (doesn't make any sense to me; too unsorted and unreadable)

    Since the new version I posted can't use GaussianBlur from VariableBlur it uses vsTCanny, so there are bound to be differences.
    How does it look if you replace:
    Code:
        # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=gblur)
    with
    Code:
        # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=gblur,mode=-1)
    or
    Code:
        # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=gblur, sigmaU=gblur, sigmaV=gblur, mode=-1)
    ?

    mode=-1 should make it the outputs more similar.

    Cu Selur
    Last edited by Selur; 5th Oct 2024 at 09:53.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  3. Originally Posted by Selur View Post
    Since the new version I posted can't use GaussianBlur from VariableBlur it uses vsTCanny, so there are bound to be differences.
    How does it look if you replace:
    Code:
        # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=gblur)
    with
    Code:
        # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=gblur,mode=-1)
    or
    Code:
        # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=gblur, sigmaU=gblur, sigmaV=gblur, mode=-1)
    ?
    This way it looks much closer to the old ContrastMask.
    new+
    Image
    [Attachment 82689 - Click to enlarge]
    Quote Quote  
  4. Happy that worked, there might be other parameter to get it even closer to the old version, but I leave that to motivated others.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  5. Originally Posted by Selur View Post
    Happy that worked, there might be other parameter to get it even closer to the old version, but I leave that to motivated others.
    If assume that old ContrastMask used all default values for VariableBlur/GaussianBlur,
    Code:
    GaussianBlur (clip, float "varY", float "varC", int "border", bool "integrate", int "Y", int "U", int "V", int "gfunc", int "gfuncc", int "pcr", int "pcrc", int "nthreads")
    then what is "50.0" in this line meaning?
    Code:
    v2=v2.gaussianblur(50.0,50.0+gblur)
    Quote Quote  
  6. v2=v2.gaussianblur(50.0,50.0+gblur)
    I overlooked that!
    varY=50
    varC=50+gblur
    => vsTCanny should probably use:
    Code:
    v2 = vsTCanny (v2, sigmaY=50, sigmaU=50.0+gblur, mode=-1)
    (not totally sure if the 50 needs to be adjusted for vsTCanny)
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  7. Originally Posted by Selur View Post
    => vsTCanny should probably use:
    Code:
    v2 = vsTCanny (v2, sigmaY=50, sigmaU=50.0+gblur, mode=-1)
    (not totally sure if the 50 needs to be adjusted for vsTCanny)
    This giving error:
    Image
    [Attachment 82707 - Click to enlarge]
    Quote Quote  
  8. No clue, my guess you would probably have to test a bit to figure out the mapping between GaussianBlur and TCannys GaussianBlur.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  9. try:
    Code:
    v2 = vsTCanny (v2, sigmaY=5, sigmaU=5+gblur, mode=-1)
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  10. Originally Posted by Selur View Post
    try:
    Code:
    v2 = vsTCanny (v2, sigmaY=5, sigmaU=5+gblur, mode=-1)
    new++
    Image
    [Attachment 82709 - Click to enlarge]


    It's lost even more details in dark areas. I will try later to compare GaussianBlur vs TCannys GaussianBlur on some kind test pattern. Maybe find out something useful.
    Quote Quote  
  11. Fingers crossed.
    I like:
    Code:
    # Apply Gaussian blur
        v2 = vsTCanny (v2, sigmaY=50+gblur, mode=-1)
    the most, so far.
    Last edited by Selur; 6th Oct 2024 at 13:57.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  



Similar Threads

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