Avisynth MosquitoNR
MosquitoNR reduces mosquito noise, the shimmering speckles around hard edges in lossy-compressed (MPEG-style) material.
Filtering → Avisynth → DeRing

What it does
The filter smooths the picture along the direction of the lowest gradient. It then splits both the original and the smoothed picture with a wavelet and puts part of the original low-frequency band back, so large areas are not smeared. It is designed for luma; chroma is optional.
Requirements
- Windows, CPU only.
Settings
| Control | Parameter | Range | Hybrid default | Meaning |
|---|---|---|---|---|
| Strength | strength | 0–32 | 16 | Smoothing strength. 0 passes the picture through; higher values remove more noise and soften more. |
| Restore | restore | 0–128 | 128 | How much of the original low-frequency part is restored. 0 restores nothing; 128 replaces it fully with the smoothed result (slightly faster). |
| Radius | radius | 1–2 | 2 | Blur radius. 1 is faster, 2 is stronger. |
| Chroma | planes | on/off | off | Also filter the chroma planes. Off filters luma only. |
Example
Default settings on a 10-bit YUV 4:2:0 source:
avszip_MosquitoNR()
How Hybrid calls it
- Hybrid loads
avszip.dlland callsavszip_MosquitoNR. The build for SSE2, AVX2 or AVX512 is chosen from the CPU at start-up. - Accepted input: grayscale and planar YUV, 8–16 bit integer and float. The example needs no conversion.
- Parameters are only written when they differ from the defaults, which equal the plugin's defaults.
planes=[0,1,2]is written when Chroma is on and the clip is not grayscale. - MosquitoNR also offers the common options and can be added to the filter queue several times.
Background
avszip_MosquitoNRcomes from avszip, the AviSynth+ build of vszip by dnjulek (MIT licence, written in Zig). It is a port of pinterf's MosquitoNR, which in turn is a rewrite of the original plugin.- Processed planes must be at least 4×4 pixels. The plugin also allows separate values per plane, which Hybrid does not offer.
Sources
- The AviSynth+ documentation does not cover MosquitoNR.
- vszip wiki: MosquitoNR
- avszip README
- Doom9: MosquitoNR thread
- Hybrid's tooltips