Vapoursynth DeStripe
Jump to navigation
Jump to search
DeStripe removes low-frequency horizontal stripes and bands, as they often appear in analog captures, while keeping real detail.
Filtering → Vapoursynth → Line

What it does
The luma is blurred in one direction with a sparse kernel. The difference to the source is passed through a soft-thresholded median of neighboring differences, which keeps detail but not the stripes, and this detail is added back to the blurred picture. The result has the stripes removed and the detail restored. Chroma is not changed.
Settings
| Control | Parameter | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Radius | rad | 1 – 5 | 2 | Kernel half-size and search radius. |
| Offset | offset | 0 – Radius − 1 | 0 | Selects a sparser kernel that skips the nearest taps; the maximum follows Radius, so it is locked at Radius 1. |
| Threshold | thr | 1 – 256 | 256 | Soft threshold of the median stage. |
| Vertical | vertical | on/off | off | Turns the picture by 90° before and after filtering, so vertical stripes are handled. |
| Mode | hvmode | v, h | v | Direction of the blur and of the median pattern. |
| Tools: Expr | – | akarin, cranexpr, std | akarin (std without AVX2) | Expression evaluator; std uses a slower fallback. |
Example
Default settings on a 10-bit YUV 4:2:0 source (640x356):
# stripe artifact removals using DeStripe
clip = fromDoom9.DeStripe(clip, tools={'expr': 'akarin'})
How Hybrid calls it
- DeStripe works on 8–16-bit integer YUV clips of any size; other formats are converted first.
- Values are only written when they differ from the defaults; Hybrid's defaults are the script's defaults.
- Threshold is on the 8-bit scale; the script scales it so that 8, 10 and 16 bit give the same strength.
- DeStripe also offers the common options (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).
Background
Origin
DeStripe comes from the Doom9 forum, where it was posted as a low-frequency stripe and band remover; Hybrid uses the version in its script collection.
Sources
- VapoursynthScriptsInHybrid (the script collection Hybrid uses)
- Hybrid's tooltips