Vapoursynth FillBorders

From wiki.selur.net
Revision as of 09:49, 16 November 2026 by Selur (talk | contribs) (New filter page (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

FillBorders fills the given number of pixels at each edge of the frame without changing the frame size, for example to hide thin black bars or broken edge lines.

Filtering → Vapoursynth → Frame → Edge

FillBorders controls in Hybrid
FillBorders controls in Hybrid

What it does

The pixels at the chosen edges are replaced by repeating the outermost clean line or column, by mirroring the edge, or by the AviSynth FillMargins method. Unlike cropping, the frame keeps its size; unlike Bore or EdgeFixer, the original border content is not repaired but thrown away.

Settings

Control Parameter Range / values Hybrid default Meaning
Mode mode repeat, mirror, fillmargins, fixborders repeat repeat: copy the outermost clean line/column; mirror: mirror the pixels next to the border; fillmargins: like repeat, but top and bottom pixels are a weighted average of three neighbors in the previous line (AviSynth FillMargins 1.0.2.0); fixborders: a direction-aware fillmargins for all four sides.
Adjust (l/t/r/b) left / top / right / bottom 0 – 32768 each 0 Pixels to fill on each edge; all 0 = unchanged.

Example

Default settings on a 10-bit YUV 4:2:0 source (640x356):

# Fill borders using FillBorders
clip = core.fb.FillBorders(clip)

How Hybrid calls it

  • FillBorders works on 8–16-bit integer YUV and RGB; other formats are converted first.
  • Options are only written when they differ from the defaults (Hybrid's defaults are the plugin's).
  • With interlaced material Hybrid switches on the plugin's interlaced mode, so top and bottom are filled from the same field.
  • The plugin rounds the chroma border sizes up from the luma values.
  • Frame count and frame rate do not change.

Background

Modes

The plugin also has a fixborders mode, a direction-aware FillMargins for all four sides, which Hybrid does not offer.

Sources