Avisynth QTGMC
QTGMC is a very high quality motion-compensated deinterlacer and bobber. It is slow, but gives the cleanest results of the AviSynth deinterlacers. The same script can also be used on progressive material as a denoiser: QTGMC as denoiser.
Filtering → (De-)Interlace/Telecine → Deinterlacer (entry "QTGMC (Avisynth)")

What it does
QTGMC (after Didee's TempGaussMC) first interpolates every field to a full frame with NNEDI3 (or a simpler interpolator in the fastest presets). The result shimmers, because the interpolated lines jump between fields. QTGMC removes this with motion-compensated temporal smoothing and then resharpens the picture. It can also remove noise or keep the grain.
The Preset trades speed for quality. Ultra Fast is quick but simple, Placebo is extremely slow. Typical uses:
- Bob on: one frame per field, so 25i becomes 50p. Best motion quality.
- Bob off: one frame per source frame (25i becomes 25p), see Select.
- Custom preset: full control over smoothing, source matching, noise handling and more.
The source must be interlaced with the correct field order; Hybrid sets it from the scan type.
Requirements
- Without OpenCL the filter runs on the CPU only. The speed depends strongly on the preset and the picture size.
- OpenCL needs an OpenCL-capable GPU.
- The presets Very Slow and Placebo, the denoiser fft3dfilter and Show noise use neo-fft3d; KNLMeansCL also needs an OpenCL GPU. All needed plugins ship with Hybrid.
Settings
| Control | Parameter | Range / values | Hybrid default | Meaning |
|---|---|---|---|---|
| Main page | ||||
| Preset | Preset | Draft, Ultra Fast, Super Fast, Very Fast, Faster, Fast, Medium, Slow, Slower, Very Slow, Placebo, Custom | Fast | Speed/quality preset. With a preset other than Custom the custom controls are ignored. Custom opens the custom controls. |
| Bob | – | on/off | off | On: output has one frame per field (double frame rate and count). Off: one frame per source frame, chosen with Select. |
| Select | – | Even, Odd, FPSDiv | Even | Only without Bob. Even/Odd: QTGMC runs as bobber and every second frame is kept (even or odd ones). FPSDiv: QTGMC itself produces half the frames. |
| Pad mod16 | – | on/off | off | Pads the picture with borders to a multiple of 16 before QTGMC and crops afterwards. Only the sides that are not yet a multiple of 16 are padded. |
| Show settings | ShowSettings | on/off | off | Draws all parameters into the picture; for debugging. |
| Show noise | ShowNoise | on/off | off | Shows the extracted noise; for debugging. |
| OpenCL / device | EdiOpenCL / EdiDevice | on/off, 0–15 | off / 0 | Uses the OpenCL versions of the interpolators on the chosen GPU. The result differs slightly from the CPU version. No effect for Draft and Ultra Fast. |
| Custom (only with Preset Custom) | ||||
| Preset (base) | Preset | Draft–Placebo | Slower | Base preset of the custom settings. Changing it resets Final temporal smoothing, Source matching, Sharpness, Noise preset and Lossless to the values of that preset. |
| Final temporal smoothing | TR2 | 0–6 | 1 | Temporal smoothing of the result; higher values smooth more and are slower. |
| Sharpness | Sharpness | 0–1.9 | off / 1.0 | The value is only used when the check box is ticked. With source matching the script's own default is 0.2. |
| Source matching | SourceMatch | off, basic, refined, 2xrefined | off | Brings the result closer to the source fields; slower, best on clean sources. |
| Match preset | MatchPreset | default or presets not slower than the base preset | default | Preset of the first matching pass. default is three steps faster than the base preset. |
| Match preset 2 | MatchPreset2 | same as Match preset | default | Preset of the second matching pass. default is two steps faster than Match preset. |
| Match enhance | MatchEnhance | 0–1000 | 0.5 | Sharpening of the source matching. |
| Lossless | Lossless | off, after temporal smooth, before resharpening | off | After temporal smooth puts the exact source fields back (shimmer or slight combing possible); before resharpening is more stable but not exact. |
| EZKeepGrain | EZKeepGrain | 0–100 | off / 0 | Keeps part of the grain; higher values keep more, about 1.0 is a good start. Excludes EZDenoise. |
| EZDenoise | EZDenoise | 0–100 | off / 0 | Removes noise; higher values remove more. Excludes EZKeepGrain. |
| Noise preset | NoisePreset | Slower, Slow, Medium, Fast, Faster | Fast | Speed/quality of the noise processing; only used with an EZ value above 0. |
| Denoiser | Denoiser | auto, fft3dfilter, dfttest, KNLMeansCL | auto | Filter for the noise processing. auto lets QTGMC choose. |
| Edi Threads | ediThreads | −1–16 | 2 | Threads for the interpolation; −1 = half the CPU cores, 0 = not set. Applies to all presets. |
| Addition | – | text | empty | Text appended to the QTGMC call; only with Custom. |
Example
Default settings (Preset Fast, Bob off, Select Even) on an interlaced PAL 720×576 8-bit source with top field first; Hybrid sets the field order, keeps every second frame and converts to 10 bit for the encoder:
# deinterlacing AssumeTFF() QTGMC(Preset="Fast", ediThreads=2) SelectEven() AssumeFrameBased() # Converting from 8 to 10bit for encoder ConvertBits(10)
How Hybrid calls it
- Before QTGMC, Hybrid sets the field order from the scan type: bottom field first only for bottom-field-first sources, top field first otherwise.
- With a preset other than Custom only Preset and ediThreads are written, plus ShowSettings, ShowNoise, FPSDivisor=2 (Select FPSDiv) and the OpenCL options when switched on.
- With Custom the call always has InputType=0, TR2, SourceMatch and Lossless. Sharpness is only written when ticked; EZDenoise/EZKeepGrain and Noise preset only with an EZ value above 0; Denoiser only when not auto; the match options only when changed. The text of Addition is appended at the end.
- The result is marked progressive. With Bob the frame rate and count double.
- Accepted formats: YUV 4:2:0, 4:2:2 and 4:4:4 with 8–16 bit; other formats (such as YUY2) are converted first.
- Which plugins are loaded depends on the preset and options: MaskTools2 and MVTools2 always, nnedi3 for all presets except Draft and Ultra Fast, yadifmod2 for Ultra Fast, RgTools, and neo-fft3d, dfttest, KNLMeansCL, AddGrainC and the source matching helpers (Yadifmod2 or TDeint for the fast match presets) when the settings need them.
Background
QTGMC was written by Vit (2012) on the basis of Didee's TempGaussMC. Hybrid ships a modified version (3.384, based on Dogway's 3.33d). The script needs MVTools2, MaskTools2, NNEDI3 and RgTools. The script has many more options than Hybrid offers; the Lossless modes do not mean lossless encoding, they only keep the original field lines.
See also: Vapoursynth QTGMC, QTGMC as denoiser, Interlace
Sources
- Doom9 thread: QTGMC
- Dogway's AviSynth scripts (QTGMC variants)
- Hybrid's tooltips
- The AviSynth+ documentation does not cover QTGMC.