Vapoursynth QTGMC (denoise)

From wiki.selur.net
Revision as of 03:23, 15 November 2026 by Selur (talk | contribs) (New filter page (via create-page on MediaWiki MCP Server))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

QTGMC (denoise) runs the QTGMC deinterlacer in its progressive modes: it removes shimmer and leftover interlacing artifacts from progressive material and can denoise or keep grain. The frame rate stays the same. For deinterlacing see QTGMC; QTempGaussMC is a different filter.

Filtering → Vapoursynth → DeNoise

QTGMC (denoise) controls in Hybrid
QTGMC (denoise) controls in Hybrid

What it does

QTGMC builds a temporally smoothed, motion-compensated version of the clip with Gaussian blurs and resharpens it. With Input type 1 it repairs shimmer on general progressive material; 2 and 3 are for badly deinterlaced material. Optional noise processing (EZDenoise/EZKeepGrain) and source matching improve fidelity.

Settings

Control Parameter Range / values Hybrid default Meaning
Preset Preset Draft … Placebo Fast Speed/quality preset; changing it resets Final temporal smoothing, Source matching, Sharpness, Noise preset and Lossless.
Input type InputType 1 – 3 1 1 = general progressive material, 2/3 = badly deinterlaced material.
Final temporal smoothing TR2 0 – 3 1 Temporal radius of the final smoothing.
Sharpness Sharpness 0 – 1.9 1.0 (0.2 with source matching) Resharpening; written only with the check box.
Source matching SourceMatch off, basic, refined, 2xrefined off Brings the result closer to the source.
Lossless Lossless off, after temporal smooth, before resharpening off Keeps the original pixels where possible; only for input types 2 and 3.
Match preset / Match preset 2 / Match enhance MatchPreset, MatchPreset2, MatchEnhance presets, 0 – 1000 default, 0.5 Settings of source matching (default: three and five steps faster than Preset).
EZDenoise / EZKeepGrain EZDenoise, EZKeepGrain 0 – 100 off Denoise, or keep grain; the two exclude each other.
Noise preset NoisePreset Slower … Faster Fast Speed of the noise processing; only with EZDenoise or EZKeepGrain.
Denoiser Denoiser auto, FFT3D, dfttest, KNLMeansCL, bm3d auto Denoiser of the noise processing; auto lets the noise preset decide.
Show settings / Show noise ShowSettings, ShowNoise on/off off Debug output.
Pad mod16 – on/off off Pads the clip to mod 16 instead of mod 4.
Addition – text – Further parameters, appended to the call.

Tools: MV, Expr, NNEDI3, EEDI3, DFTTest, NLMeans, BM3D, RG, Median, FFT3D and Grain implementations, and a GPU device.

Example

Default settings on a 10-bit YUV 4:2:0 source (machine with a discrete GPU):

# Denoising using QTGMC
clip = qtgmc.QTGMC(clip, Preset="Fast", InputType=1, TR2=1, SourceMatch=0, Lossless=0, tools={'mv': 'mvgpu', 'expr': 'akarin', 'nnedi3': 'znedi3', 'eedi3': 'vszip', 'dfttest': 'neo_fft', 'nlmeans': 'vszip', 'bm3d': 'bm3d', 'rg': 'zsmooth', 'median': 'zsmooth', 'fft3d': 'neo_fft', 'grain': 'noise'})

How Hybrid calls it

  • QTGMC (denoise) works on YUV and gray clips; for input types 2/3 with slow presets 8-bit is used. The clip is padded to mod 4 (or 16) and cropped back.
  • Preset, input type, final temporal smoothing, source matching and lossless are always written; the others only when set. For input types 2 and 3 Hybrid writes TFF=False.
  • QTGMC (denoise) also offers the common options (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).

Background

QTGMC

QTGMC 3.33 (by -Vit-, based on Didée's TempGaussMC) is a high-quality deinterlacer with presets, noise processing, progressive repair, source matching and shutter simulation. Its progressive modes (InputType 1–3) process frames without doubling the rate. The VapourSynth version came from havsfunc; Hybrid keeps its own copy.

Sources