Avisynth Checkmate
Jump to navigation
Jump to search
Checkmate reduces dot crawl, the crawling checkerboard dots that composite video leaves on colour edges.
Filtering → Avisynth → DeCrawl

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.dlland callsavszip_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.
thris always written;tthr2andtmaxonly 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
- The AviSynth+ documentation does not cover Checkmate.
- vszip wiki: Checkmate
- avszip README
- Doom9: Checkmate usage example (interlaced sources need field-wise handling, the temporal part can produce artifacts in motion)
- Hybrid's tooltips