Vapoursynth DeCross
Jump to navigation
Jump to search
DeCross reduces cross-color (rainbows), the color shimmer in fine detail on composite and analog sources. Only the chroma changes; the luma stays untouched.
Filtering → Vapoursynth → DeRainbow

What it does
DeCross detects luma edges, widens that mask and removes the cross-color there, spatially and temporally. It has to run directly after the source, before field matching or deinterlacing; in Hybrid's default filter order it is the first filter.
Settings
| Control | Parameter | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Threshold-y | thresholdy | 0 – 255 | 30 | Edge detection threshold; lower values find and filter more edges (8-bit scale). |
| Noise | noise | 0 – 255 | 60 | Luma difference threshold; lower values filter more conservatively (8-bit scale). |
| Margin | margin | 0 – 4 | 1 | Widens the edge mask by this many pixels to the left and right. |
| Debug | debug | on/off | off | Shows the areas that would be filtered instead of the result; only in the preview. |
Example
Default settings on a 10-bit YUV 4:2:0 source (640x356):
# rainbow removal using DeCross clip = core.decross.DeCross(clip, thresholdy=120, noise=240)
How Hybrid calls it
- DeCross works on 8–16-bit YUV 4:2:0 and 4:2:2; other formats are converted first. Interlaced content is accepted.
- Threshold-y and Noise are entered on the 8-bit scale and scaled by Hybrid to the bit depth, because the plugin compares them with raw sample values. Above 8 bit they are always written; at 8 bit only when they differ from the defaults.
- Margin is only written when it differs from the default; Debug only into the preview script, never into the encode.
- DeCross also offers the common options (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).
Background
Origin
The plugin is a port of the AviSynth DeCross plugin, which itself comes from the AviUtl plugin CrossColor.
Sources
- vapoursynth-decross README
- Hybrid's tooltips