Avisynth Checkmate

From wiki.selur.net
Revision as of 19:55, 21 November 2026 by Selur (talk | contribs) (Remove required versions (via update-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Checkmate reduces dot crawl, the crawling checkerboard dots that composite video leaves on colour edges.

Filtering → Avisynth → DeCrawl

Checkmate controls in Hybrid
Checkmate controls in Hybrid

What it does

Checkmate combines a spatial blend with an optional temporal blend and limits how far a pixel may change. It works best on static or slow scenes; in fast motion stronger settings can produce artifacts. Hybrid places it early in the filter order, before deinterlacing.

Requirements

  • Windows, CPU only.

Settings

Control Parameter Range Hybrid default Meaning
Threshold spatial thr 1–255 12 How much neighbouring pixels within a frame are blended. Higher values blend more; too high gives artifacts, too low leaves the crawl in place.
Threshold temporal tthr2 0–255 0 The same across frames. 0 switches the temporal blending off completely, which also avoids smearing in fast motion.
Max change tmax 1–255 12 Upper bound for how much a single pixel value may move. Higher values filter more but cause artifacts beyond a point.

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:

# Converting from 10 to 8bit for Checkmate
ConvertBits(8)
avszip_Checkmate(thr=12)
# Converting from 8 to 10bit for encoder
ConvertBits(10)

How Hybrid calls it

  • Hybrid loads avszip.dll and calls avszip_Checkmate. The build for SSE2, AVX2 or AVX512 is chosen from the CPU at start-up.
  • The filter works on 8-bit YV12, YV16, YV24, YV411 and Y8; other bit depths are converted to 8 bit before the filter and back afterwards, so a high-bit-depth source loses precision around it.
  • thr is always written; tthr2 and tmax only when they differ from the defaults, which equal the plugin's.
  • Interlaced input is filtered field by field.
  • Checkmate also offers the common options and can be added to the filter queue several times.

Background

  • avszip is the AviSynth+ build of vszip by dnjulek (MIT licence). Its Checkmate is a port of the original AviSynth Checkmate plugin, whose own defaults differ from those used here.
  • In the original plugin the maximum change parameter is called max.

See also: Vapoursynth Checkmate

Sources