Cnr2 is a temporal denoiser designed to denoise only the chroma. This is a port of the Avisynth filter Cnr2 version 2.6.1, originally written by Marc FD and later adopted by tritical.
According to the original author, this filter is suited for stationary rainbows or noisy analog captures.
Due to the way it works, Cnr2 is forced to run in a single thread. Cnr2 will also bottleneck the entire script, preventing it from using all the available CPU cores. One way to work around this issue is splitting the video into two or three chunks at scene changes, and filtering them in parallel with two or three instances of vspipe.
cnr2.Cnr2(clip clip[, string mode="oxx", float scdthr=10.0, int ln=35, int lm=192, int un=47, int um=255, int vn=47, int vm=255, bint scenechroma=False])
- Clip to process. Must be YUV420P8, YUV422P8, YUV440P8, or YUV444P8, with constant format and dimensions.
Mode for each plane. The letter
omeans wide mode, which is less sensitive to changes in the pixels, and more effective. The letter
xmeans narrow mode, which is less effective.
Scene change detection threshold as percentage of maximum possible change. Lower values make it more sensitive.
- ln, un, vn
Sensitivity to movement in the Y, U, and V planes, respectively. Higher values will denoise more, at the risk of introducing ghosting in the chroma.
Default: 35, 47, 47.
- lm, um, vm
Strength of the denoising. Higher values will denoise harder.
Default: 192, 255, 255.
- If True, the chroma is considered in the scene change detection.
./autogen.sh ./configure make
GPL v2, like the Avisynth plugin.