Avisynth GaussianBlur

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

GaussianBlur is a true Gaussian blur from the VariableBlur plugin. The strength is set by a variance value, with border handling, optional gamma-correct processing and per-plane handling.

Filtering → Avisynth → Sharpen

GaussianBlur controls in Hybrid
GaussianBlur controls in Hybrid

What it does

Each pixel is replaced by a weighted average of its neighbours, with weights following a Gaussian curve. A larger Variance (the square of the standard deviation) gives a stronger blur. Luma and chroma have separate variances. Optionally the blur is done in linear light by removing a gamma curve first and re-applying it afterwards. By default only luma is blurred.

Typical uses:

  • Smooth noise or soften a clip.
  • A softening step before other filters.

Settings

Control Parameter Range Hybrid default Meaning
Variance (Y/C) varY / varC 0–100 1.50 / 1.50 Variance of the blur for luma and chroma. Larger means blurrier.
Border border wrap around, don't process, replicate, mirror mirror How the filter treats the picture borders.
Threads nthreads 1–64 1 Number of threads.
Handling (Y/U/V) Y / U / V ignore, copy, filter filter / copy / copy What happens to each plane: filter it, copy it from the source, or leave it unprocessed.
Integrate integrate on/off off Uses the mean over the pixel area when computing the coefficients; gives a softer image.
Gamma function (Y/C) gfunc / gfuncc no gamma correction, sRGB, BT.709/SMPTE 170M, SMPTE 240M, BT.470-2 System M, BT.470-2 System B,G, straight 2.22222, straight 1.8, linear no gamma correction Filter in linear light: the gamma curve is removed before and re-applied after filtering. For RGB the setting applies to all planes.
Pixel range (Y/C) pcr / pcrc [0, 255], [16, 235], [16, 240] [0, 255] / [0, 255] Value range of the plane. Used only when a gamma function is selected.

Example

Default settings on a 10-bit YUV 4:2:0 source. Hybrid converts to 8 bit before the filter and back to 10 bit afterwards; with all defaults no argument is written:

# Converting from 10 to 8bit for GaussianBlur
ConvertBits(8)
GaussianBlur()
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • Loads the VariableBlur plugin (with the FFTW library it needs).
  • The plugin works on 8-bit YV12, YUY2, RGB24 and RGB32. Hybrid converts other formats and bit depths and converts back afterwards.
  • Only arguments that differ from the defaults are written. Border is written as 1–4 and the Gamma function entries as the plugin's numbers (0 = sRGB up to 7 = linear).
  • GaussianBlur also offers the common options and can be added to the filter queue several times.

Background

  • GaussianBlur is one of several filters in the VariableBlur plugin, together with AverageBlur, BinomialBlur and Unsharp.
  • Doom9 users report that the plugin needs the FFTW library and accepts only RGB24, RGB32, YUY2 and YV12.

Sources