From Avisynth wiki
Revision as of 05:04, 1 November 2020 by Asd (Talk | contribs)
Jump to: navigation, search
Author dubhater / Asd-g
Version v1.1.0
Download FillBorders-
Category Borders and Cropping
License WTFPL



This is a simple filter that fills the borders of a clip, without changing the clip's dimensions. It has 3 border filling modes.


*** vcredist_x86.exe required for FillBorders-x86
*** vcredist_x64.exe required for FillBorders-x64

Syntax and Parameters

FillBorders (clip, int "left", int "top", int "right", int "bottom", int "mode", int "y", int "u", int "v")
FillMargins (clip, int "left", int "top", int "right", int "bottom", int "y", int "u", int "v")

clip   =
A clip to process. All planar formats are supported.

int  left = 0
int  top = 0
int  right = 0
int  bottom = 0
Number of pixels to fill on each side. These can be any non-negative numbers, within reason. If they are all 0, the input clip is simply passed through.

int  mode = 0
  • 0 : Fills the borders exactly like the AviSynth filter FillMargins, version This mode is similar to mode 1, except that each pixel at the top and bottom borders is filled with a weighted average of its three neighbours from the previous line.
  • 1 : Fills the borders using the outermost line or column (aka "repeat").
  • 2 : Fills the borders by mirroring.

int  y = 3
int  u = 3
int  v = 3
Planes to process.
  • 1 : Return garbage.
  • 2 : Copy plane.
  • 3 : Process plane. Always process planes when the clip is RGB.

Note: FillMargins() is an alias for FillBorders(mode=0)


FillBorders(left=5,top=7, right=2, bottom=0, mode=0, y=3, u=3, v=3)
#identical to: FillMargins(left=5, top=7, right=2, bottom=0)


Version       Date            Changes
v1.1.0 2020/08/11 - Added support for float. - Added y, u, v, parameters. - AviSynth+: self-registers as MT_NICE_FILTER. - Removed parameter mode from FillMargins.
v1.0.0 2020/05/17 - Move project to GitHub - Add FillMargins function
20190410 2019/04/10 - First release - Port from VapourSynth plugin by Dubhater - Author: Asd

External Links

  • GitHub - Source code repository
  • GitHub - Source code repository (VapourSynth version)

Back to External Filters

Personal tools