Avisynth DeStripe
DeStripe reduces regular stripe patterns, for example kinescope moiré.
Filtering → Avisynth → Line → Misc

What it does
The luma is blurred with a sparse horizontal comb. The difference between the source and this blur is median-filtered along the same comb, soft-thresholded and added back. The stripe pattern disappears while other detail stays. The horizontal comb removes vertical stripes; Rotate turns the picture by 90° so horizontal stripes are handled instead. Chroma is taken from the source.
Typical uses:
- Remove the fine vertical stripes of kinescope or telecine transfers.
- Call the filter several times with different settings for patterns of different sizes.
The filter works on progressive material.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Radius | rad | 1–5 | 2 | Width of the comb (2 × radius + 1 taps), i.e. how big the pattern is. |
| Offset | offset | 0–4 | 0 | Opens gaps in the comb so only every 2nd, 3rd or 4th column is used, for patterns with a period. 0 is a closed comb. Has no effect with radius 1. |
| Threshold | thr | 1–256 | 256 | Correction strength. Higher values come closer to the horizontally smoothed version. |
| Rotate | – | on/off | off | Turn the picture left before and right after the filter, so horizontal stripes are treated. |
Example
Default settings on a 10-bit YUV 4:2:0 source. Hybrid converts to 8 bit and back:
# reducing kinescope moire # Converting from 10 to 8bit for DeStripe ConvertBits(8) DeStripe(rad=2,offset=0,thr=256) # Converting from 8 to 10bit for encoder ConvertBits(10)
How Hybrid calls it
- The DeStripe script is loaded together with masktools2.
- Radius, Offset and Threshold are written in the call.
- The script only works at 8 bit. Hybrid converts higher bit depths to 8 bit and back afterwards.
- DeStripe also offers the common options and can be added to the filter queue several times.
Background
- The script is attributed to mp4guy on Doom9. It uses a masktools2 convolution, a median through
MT_Lutsandmt_makediff/mt_adddiff. - The script only knows combs for radius 1 to 5 and offsets 0 to 4.
- The VapourSynth version is Vapoursynth DeStripe; it has a Vertical option and a mode instead of Rotate.
Sources
- Doom9 forum posts about "DeStripe by mp4guy"
- Hybrid's tooltips
- The AviSynth+ documentation does not cover DeStripe.