VideoHelp Forum
+ Reply to Thread
Results 1 to 9 of 9
Thread
  1. There are obvious horizontal bars at the bottom of the video. It kind of looks like halo's or edge sharpening artifacts.

    How can I get rid of it or blend it better so it is not nearly as obvious? I do not wish to just crop it off if that can be helped.

    Click image for larger version

Name:	00005014637.png
Views:	73
Size:	1.58 MB
ID:	80081

    It looks like a bright bar at the bottom, a darker middle one, and a brighter one above that before it finally gets into the normal picture.
    Last edited by killerteengohan; 21st Jun 2024 at 15:21.
    Quote Quote  
  2. I tried referencefixer, but it doesn't seem to be giving me any kind of good results.
    http://avisynth.nl/index.php/EdgeFixer
    Quote Quote  
  3. Try some dehalo filters, Abcxyz does seem to remove at least the line at the bottom line and other dehalo filter probably can remove or at least lessen the upper line strength. With edgefixer try a strenght of 150.
    users currently on my ignore list: deadrats, Stears555
    Quote Quote  
  4. Yes, something like dehalo_alpha(rx=1.0, ry=3.0, brightstr=1.0, darkstr=1.0) gets rid of most of it. Use a mask to limit the filter to the bottom edge so it doesn't mess with the rest of the picture.
    Last edited by jagabo; 21st Jun 2024 at 23:01.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    Yes, something like dehalo_alpha(rx=1.0, ry=3.0, brightstr=1.0, darkstr=1.0) gets rid of most of it. Use a mask to limit the filter to the bottom edge so it doesn't mess with the rest of the picture.
    I'm still not the greatest with masks, but I did try something else you showed me in the past called boxfill before I saw this post.

    It's giving me better results than I got with the dehalo settings suggested.

    Code:
    dark = ColorYUV(gain_y=32)
    mask = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1071, 1920, 3, $FFFFFF).Blur(1.0).Blur(1.0)
    Overlay(last, dark, mask=mask) #lightens dark line to try and match levels
    dark2 = ColorYUV(gain_y=20)
    mask2 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1065, 1920, 5, $FFFFFF).Blur(1.0).Blur(1.0)
    Overlay(last, dark2, mask=mask2) #lightens dark line to try and match levels
    dark3 = ColorYUV(gain_y=-18)
    mask3 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1065, 1920, 14, $FFFFFF).Blur(1.0).Blur(1.0)
    Overlay(last, dark3, mask=mask3) #darkens entire matched lighter area at bottom

    I cant get it perfect, but it works somewhat. I still see a bit of leftover or I make some spot in between too bright. Perhaps you can tweak it some?
    Last edited by killerteengohan; 22nd Jun 2024 at 09:31.
    Quote Quote  
  6. I couldnt get the dehalo filter to work to my liking, but after a long time of trial and error, I finally got something I think worked out nice.

    Code:
    dark = ColorYUV(gain_y=7)
    mask = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1071, 1920, 3, $FFFFFF)
    Overlay(last, dark, mask=mask)
    dark2 = ColorYUV(gain_y=4)
    mask2 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1066, 1920, 3, $FFFFFF)
    Overlay(last, dark2, mask=mask2)
    dark3 = ColorYUV(gain_y=-6)
    mask3 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1074, 1920, 3, $FFFFFF)
    Overlay(last, dark3, mask=mask3)
    dark4 = ColorYUV(gain_y=-4)
    mask4 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1071, 1920, 9, $FFFFFF)
    Overlay(last, dark4, mask=mask4)
    dark5 = ColorYUV(gain_y=-2)
    mask5 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1073, 1920, 4, $FFFFFF)
    Overlay(last, dark5, mask=mask5)
    Thanks for the ideas!!
    Quote Quote  
  7. That looks pretty good for the sample image. But the oversharpening halos may differ depending on the brightness of the picture (the higher the contrast between the black border and the picture content, the stronger the halos will be). Check other parts of the video.
    Quote Quote  
  8. Originally Posted by jagabo View Post
    That looks pretty good for the sample image. But the oversharpening halos may differ depending on the brightness of the picture (the higher the contrast between the black border and the picture content, the stronger the halos will be). Check other parts of the video.
    Yeah, I agree. The entire episode has them in exactly the same spots except the opening theme song. The settings work just as well in the brighter scenes too. I just needed to tweak things a little for a better middleground, and looking at a brighter scene helped. They are the same size, and shape as well, so in this case it works out luckily, but yeah what you said is certainly true.

    I managed to improve it a bit more by adjusting the settings a bit, and also get the top and left side as well.

    Code:
    dark = ColorYUV(gain_y=6)
    mask = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1071, 1920, 3, $FFFFFF)
    Overlay(last, dark, mask=mask)
    dark2 = ColorYUV(gain_y=3)
    mask2 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1066, 1920, 2, $FFFFFF)
    Overlay(last, dark2, mask=mask2)
    dark3 = ColorYUV(gain_y=-2)
    mask3 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1074, 1920, 3, $FFFFFF)
    Overlay(last, dark3, mask=mask3)
    dark4 = ColorYUV(gain_y=-4)
    mask4 = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 1071, 1920, 9, $FFFFFF)
    Overlay(last, dark4, mask=mask4)
    darkl = ColorYUV(gain_y=-2)
    maskl = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 0, 13, 1080, $FFFFFF)
    Overlay(last, darkl, mask=maskl)
    darkt = ColorYUV(gain_y=3)
    maskt = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 15, 1920, 2, $FFFFFF)
    Overlay(last, darkt, mask=maskt)
    dark2t = ColorYUV(gain_y=3)
    mask2t = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 10, 1920, 3, $FFFFFF)
    Overlay(last, dark2t, mask=mask2t)
    dark3t = ColorYUV(gain_y=-2)
    mask3t = BlankClip(width=width, height=height, color=$000000).BoxFill(0, 5, 1920, 4, $FFFFFF)
    Overlay(last, dark3t, mask=mask3t)
    crop(10,8,-10,-4)
    nnedi3_rpow2(2, cshift="LanczosResize", fwidth=1920, fheight=1080, nns=4)
    Last edited by killerteengohan; 22nd Jun 2024 at 19:53.
    Quote Quote  
  9. Yes, that looks pretty good.
    Quote Quote  



Similar Threads

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