VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. This is an odd one. I use ".AddBorders(0,0,0,0,$000000)" quite a lot in my avisynth scripts (which I run with MeGUI) and I've noticed that the edge of the new border isn't always truly sharp. There's a thin sliver of white between border and image, as if (bear with me) someone's behind the screen and shining a torch at it.

    Am I making sense and does anyone recognise the problem? Thanks in antici....
    Quote Quote  
  2. Kawaiiii
    Join Date
    May 2021
    Location
    Italy
    Search Comp PM
    Originally Posted by pooksahib View Post
    This is an odd one. I use ".AddBorders(0,0,0,0,$000000)" quite a lot in my avisynth scripts (which I run with MeGUI) and I've noticed that the edge of the new border isn't always truly sharp. There's a thin sliver of white between border and image, as if (bear with me) someone's behind the screen and shining a torch at it.

    Am I making sense and does anyone recognise the problem? Thanks in antici....
    What's the point in all that zeros ? You're not creating any border this way (unless there's a "hidden feature" in AddBorders I don't know)
    Quote Quote  
  3. I just copied that from the wiki. In reality, I'd script: .crop(20,0,-20,0).addborders(20,0,20,0). The default colour is black so no need for $000000.
    Last edited by pooksahib; 16th Sep 2025 at 23:46.
    Quote Quote  
  4. maybe you didn't crop properly, or maybe your source's chroma subsamping is contaminating the border (when upsampled and converted to RGB for display - if you use "point" or "nearest neighbor" upsampling the color borders will be more blocky, but less contaminated)
    Quote Quote  
  5. You could try using the R option if you're using Avisynth+ 3.7.4 or later.
    https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/addborders.html

    R=2 should be plenty. Instead of the borders having a perfectly sharp edge, it creates a very slight transient between the border and the picture. If what you're seeing is resizer ringing at the border edges because the video (or chroma) is being upscaled on playback, that should help.

    AddBorders(20,0,20,0, r=2)

    Or unless you're encoding for Bluray compatibility or something similar, not adding borders is another option. I never do. The player will add them according to the display resolution or aspect ratio on playback when the video is running in full screen mode.
    Last edited by hello_hello; 17th Sep 2025 at 10:15.
    Quote Quote  
  6. Cropping mod16 may also help - even for AVC (x264).
    Quote Quote  



Similar Threads

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