Overwrite input scan type

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

Overwrite input scan type replaces the scan type Hybrid detected for the source (progressive, top or bottom field first, telecine, …) with the one you choose. Use it when the stream headers and Hybrid's interlace analysis get the source wrong.

Filtering → (De-)Interlace/Telecine → Overwrite input scan type to

Overwrite input scan type controls in Hybrid
Overwrite input scan type controls in Hybrid

What it does

Hybrid reads the scan type from the stream headers, or from its own interlace analysis (Analyse button, which checks the given percentage of the source). The result is shown next to Input scan type. Many sources are flagged wrong: interlaced video stored as progressive, progressive video flagged as interlaced, or the wrong field order.

With Overwrite input scan type to checked, the chosen value is the truth for Hybrid. It is not questioned: the script, the deinterlacing or inverse telecine, the field order given to filters, the output frame rate and frame count, and whether the input counts as interlaced all follow the overwritten value. This applies to the Vapoursynth and the AviSynth branch, and to ffmpeg filtering without either.

Settings

Control Range / values Hybrid default Meaning
Overwrite input scan type to on/off off Use the selected scan type instead of the detected one. While it is on, the Analyse button is disabled and a previous analysis result is discarded.
Scan type progressive, bottom field first, top field first, telecine, mixed, field-shifted, field-shifted (NTSC from PAL), field-shifted (PAL from NTSC), telecine (soft) progressive The scan type Hybrid assumes for the input. Only available with the check box on.

When the scan type changes, Hybrid adapts the deinterlacer selection (unless it is set to none):

Scan type Hybrid's handling
progressive No deinterlacing. Interlace (progressive to interlaced) becomes available.
top field first, bottom field first Interlaced: deinterlace (Vapoursynth: QTGMC unless another Vapoursynth deinterlacer is selected; AviSynth: QTGMC). The field order is passed to the deinterlacer.
telecine Inverse telecine (Vapoursynth: TIVTC with a cycle of 5, unless IT, TIVTC or VIVTC is selected; AviSynth: TIVTC). At an input rate of 23.9–24 fps no inverse telecine is set.
mixed Treated as interlaced; Hybrid notes that sRestore can help against ghosting.
field-shifted No deinterlacer; field matching only (TFM).
field-shifted (NTSC from PAL) No deinterlacer; field matching plus sRestore to 25 fps.
field-shifted (PAL from NTSC) No deinterlacer; field matching plus sRestore (Vapoursynth: to 23.976 fps).
telecine (soft) Normally the source filter already removes soft telecine; Hybrid still selects inverse telecine as for telecine (TIVTC).

Without Vapoursynth or AviSynth, Hybrid chooses from the ffmpeg and encoder deinterlacers instead.

Example

A PAL DVD clip (720x576, 25 fps) detected as top field first, deinterlaced with QTGMC (Preset Fast, tools list shortened):

# making sure the detected scan type is set (detected: top field first)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_TOP) # scan type: top field first
# Deinterlacing using QTGMC
clip = qtgmc.QTGMC(clip, Preset="Fast", TFF=True, tools={…}) # new fps: 50

The same clip with Overwrite input scan type to set to bottom field first:

# making sure the detected scan type is set (detected: bottom field first)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_BOTTOM) # scan type: bottom field first
# Deinterlacing using QTGMC
clip = qtgmc.QTGMC(clip, Preset="Fast", TFF=False, tools={…}) # new fps: 50

Set to progressive, Hybrid only marks the clip as progressive and writes no deinterlacer; the output keeps 25 fps:

# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive

How Hybrid uses it

  • The script marks the clip with the overwritten scan type (_FieldBased in Vapoursynth) right after the source filter.
  • Every filter that needs the field order gets the overwritten one: deinterlacers and field matchers (e.g. QTGMC, QTempGaussMC, VFM, TFM, IT, DDD, DGDecNV, FixCombed) and filters that bob interlaced material internally (e.g. the QTGMC and QTempGaussMC denoisers, BlindDeHalo3). Without Vapoursynth or AviSynth, ffmpeg's yadif gets it as well.
  • Output frame rate and frame count are calculated from the overwritten scan type (e.g. a bobbing deinterlacer doubles the rate only for interlaced input).
  • Whether the input counts as interlaced follows the overwritten value; with video passthrough the output is flagged interlaced or progressive accordingly.
  • Interlaced source, overwritten to progressive, with interlaced output set in the encoder: Hybrid treats the source as progressive and interlaces it again at half the frame rate and count (e.g. 331 → 166 frames). This is intended; the overwrite is taken as correct.
  • Selecting none as deinterlacer sets the overwrite to progressive and locks the controls.

Sources

  • Hybrid's tooltips
  • Hybrid's behavior in the (De-)Interlace/Telecine tab