From Avisynth wiki
Jump to: navigation, search
Author g-force
Version 1.0
Download Stab.avsi
Category Stabilizers
Discussion Doom9 Thread



Simple Script to remove small high frequency jitter that appears often on old/bad transfers.

An unresolved bug in this filter can produce green tinting in seemingly random output frames. Still a suitable and effective tool for black and white footage: scripts should apply Greyscale() following Stab(). This filter may not be suitable for color footage; apply with caution.


Required Plugins

Latest versions of the following filters are recommended unless stated otherwise.

Syntax and Parameters

Stab (clip clp, int "range", int "dxmax", int "dymax", int "mirror")

clip  clp =
Input clip.

int  range = 1
Number of previous (and also next) frames near requested frame to estimate motion.

int  dxmax = 4
Limit of x shift.

int  dymax = 4
Limit of y shift.

int  mirror = 0
Fill empty borders with mirrored from frame edge pixels (instead of black):
  • 0 - no mirror (default)
  • 1 - top
  • 2 - bottom
  • 4 - left
  • 8 - right
  • sum any of above - combination (15 - all )


Stab with default settings:

Stab(range=1, dxmax=1, dymax=1, mirror=0)

External Links

Back to External Filters

Personal tools