From Avisynth wiki
Revision as of 03:44, 28 March 2021 by Reel.Deal (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Author alexrayne
Version Release 4
Category Deringing & Mosquito Noise
License LGPLv2.1



This plugin removes halo\ringing occurred after sharp edges on VHS captured video

Note: Dering is a C-plugin so it must be loaded using LoadCPlugin, except if you're using AviSynth+, it allows autoloading of C-plugins.


Syntax and Parameters

Dering (clip src, float "A", float "W", float "RelVisibleTh", float "AbsVisibleTh", int "PostFilterArea", string "PostFilter", float "Dump", int "Edges", string "PreFilter", bool "SkipAlonePeaks", bool "UseEmphasis", string "OutPlane")

clip   =
Input clip; must be YUY2 or YV12.

float  A = 0.3
Ringing amplitude relative to edge size.

float  W = 0.35
Ringing frequency - distance between ringing peaks.

float  RelVisibleTh = 0.005
Value of (ringing amplitude)/(steady signal value).
If detected amplitude < VisibleTh, this ringing area skip from correction.
Range 0.0 to 1.0

float  AbsVisibleTh = 0.01
Value of (ringing amplitude)/(full dynamic luma range = 255).
If detected amplitude < VisibleTh, this ringing area skip from correction.
Range 0.0 to 1.0

int  PostFilterArea = 1000
Limit of filtering area length on ringing.

string  PostFilter = "median"
Type of smoothing post filter applied after deringing:
  • "median" - median filter y=(2*x[n]-x[n-1]-x[n+1])/2
  • "median2" - 2nd order median filter y=(2*x[n]-x[n-1]-x[n+1])/2
  • "backiir" - back direction IIR2 filter (see D parameter)
  • "iir" - forward direction IIR2 filter (see D parameter)

float  Dump = 0.3
Dumping of PostFilter.

int  Edges = 0
Which polarity of edges to process: 0 - both, <0 - falling only, >0 rising only.

string  PreFilter = "FIR2"
Type of main deringer filter:
  • "FIR2" - ordinary fir2 filter
  • "deltaFIR" - compensator by pre-rendered ringing G-respondents
  • Any other use FIR2 on resampled x2 inputs

bool  SkipAlonePeaks = true
Alone peaks can be lost unfiltered if true, or filter as usual peak if false.

bool  UseEmphasis = false
If true, it tries to enhance the front edge when the deltaFIR filter is used.

string  OutPlane = "filter"
Type of output:
  • "filter'" - filtered image
  • "AllPeaks" - detected peaks in input image
  • "Peaks" - peaks in image selected for filtering


Dering with default settings:

Dering(A=0.3, W=0.35, RelVisibleTh=0.005, AbsVisibleTh=0.01, PostFilterArea=1000, PostFilter="median", \
        Dump=0.3, Edges=0, PreFilter="FIR2", SkipAlonePeaks=true, UseEmphasis=false, OutPlane="filtered")

External Links

Back to External Filters

Personal tools