<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_VIVTC</id>
	<title>Vapoursynth VIVTC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_VIVTC"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;action=history"/>
	<updated>2026-11-18T00:30:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;diff=763&amp;oldid=prev</id>
		<title>Selur: Label is now &quot;Comb threshold&quot; (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;diff=763&amp;oldid=prev"/>
		<updated>2026-11-16T10:13:34Z</updated>

		<summary type="html">&lt;p&gt;Label is now &amp;quot;Comb threshold&amp;quot; (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:13, 16 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l22&quot;&gt;Line 22:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 22:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Chroma matching || mchroma || on/off || on || Include chroma in the match decision.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Chroma matching || mchroma || on/off || on || Include chroma in the match decision.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Chroma &lt;/del&gt;threshold || cthresh || −1 – 255 || 9 || Combing threshold (8-bit scale; the plugin scales it)&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, not a chroma setting&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Comb &lt;/ins&gt;threshold || cthresh || −1 – 255 || 9 || Combing threshold (8-bit scale; the plugin scales it).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Mi || mi || 0 – Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Mi || mi || 0 – Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;diff=663&amp;oldid=prev</id>
		<title>Selur: New filter page (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;diff=663&amp;oldid=prev"/>
		<updated>2026-11-16T08:53:43Z</updated>

		<summary type="html">&lt;p&gt;New filter page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float:right; margin:0 0 1em 1em;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;VIVTC&amp;#039;&amp;#039;&amp;#039; is VapourSynth&amp;#039;s own inverse telecine pair VFM + VDecimate, derived from TIVTC: VFM matches fields to recover the progressive frames, VDecimate drops one duplicate per cycle (29.97 → 23.976 fps for NTSC film).&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → (De-)Interlace/Telecine → Inverse telecine&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_VIVTC.png|none|VIVTC controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For every frame VFM keeps the field pairing with the least combing and marks frames that are still combed. Hybrid replaces those frames with the matching frame of a helper deinterlacer. VDecimate then removes the most similar frame of every cycle. The field matcher alone is available as [[Vapoursynth VFM|VFM]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
Options are only written when they differ from the defaults (Hybrid&amp;#039;s defaults are the plugin&amp;#039;s).&lt;br /&gt;
&lt;br /&gt;
=== VFM ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range / values !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Mode || mode || 0 – 5 || 1 (p/c + n) || Which matches are tried; higher modes try more matches and are more aggressive.&lt;br /&gt;
|-&lt;br /&gt;
| Field || field || 0 – 3 || 2 || Field to match from: 0 = bottom, 1 = top, 2 = same as the field order, 3 = opposite.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma matching || mchroma || on/off || on || Include chroma in the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma threshold || cthresh || −1 – 255 || 9 || Combing threshold (8-bit scale; the plugin scales it), not a chroma setting.&lt;br /&gt;
|-&lt;br /&gt;
| Mi || mi || 0 – Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma comb detection || chroma || on/off || on || Include chroma in the combing detection.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || 4 – 512 || 16 / 16 || Block size of the combing detection.&lt;br /&gt;
|-&lt;br /&gt;
| Exclude || y0 / y1 || 0 – 64 / 16 – 64 || 16 / 16 || Rows excluded from the match decision; off when equal.&lt;br /&gt;
|-&lt;br /&gt;
| Scene threshold || scthresh || 0 – 100 || 12 || Scene change threshold in percent.&lt;br /&gt;
|-&lt;br /&gt;
| Mic match || micmatch || 0 – 2 || 1 || How the combing values (mics) influence the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Mic out || micout || on/off || off || Write the mic values of all matches to the frame properties.&lt;br /&gt;
|-&lt;br /&gt;
| Deinterlacer || – || QTGMC fast / medium / slow / Very Slow, NNEDI3 || QTGMC fast || Helper that provides the replacement for frames VFM marks as combed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== VDecimate ===&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range / values !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Cycle || cycle || 2 – 100 || 5 || One frame is dropped per Cycle frames.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma || chroma || on/off || on || Include chroma in the duplicate metrics.&lt;br /&gt;
|-&lt;br /&gt;
| Dup threshold || dupthresh || 0 – 100 || 1.1 || Difference in percent below which a frame counts as a duplicate.&lt;br /&gt;
|-&lt;br /&gt;
| Scene threshold || scthresh || 0 – 100 || 15 || Difference in percent that counts as a scene change.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || – || 32 / 32 || Block size of the metrics.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Other groups ===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Fix Telecined Fades&amp;#039;&amp;#039;&amp;#039;: see [[Vapoursynth Fix Telecined Fades|Fix Telecined Fades]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Fix combed with deinterlacer&amp;#039;&amp;#039;&amp;#039;: see [[Vapoursynth Fix combed with deinterlacer|Fix combed with deinterlacer]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Tools&amp;#039;&amp;#039;&amp;#039;: implementations for the QTGMC or NNEDI3 helper.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on an 8-bit YUV 4:2:0 telecined source (1920x1080, 29.97 fps, detected as top field first):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
clip2clip = clip&lt;br /&gt;
clip2clip = qtgmc.QTGMC(Input=clip2clip, Preset=&amp;quot;fast&amp;quot;, tools={&amp;#039;mv&amp;#039;: &amp;#039;mvutensils&amp;#039;, &amp;#039;expr&amp;#039;: &amp;#039;akarin&amp;#039;, &amp;#039;nnedi3&amp;#039;: &amp;#039;znedi3&amp;#039;, &amp;#039;eedi3&amp;#039;: &amp;#039;vszip&amp;#039;, &amp;#039;dfttest&amp;#039;: &amp;#039;neo_fft&amp;#039;, &amp;#039;nlmeans&amp;#039;: &amp;#039;knlm&amp;#039;, &amp;#039;bm3d&amp;#039;: &amp;#039;bm3d&amp;#039;, &amp;#039;rg&amp;#039;: &amp;#039;zsmooth&amp;#039;, &amp;#039;median&amp;#039;: &amp;#039;zsmooth&amp;#039;, &amp;#039;fft3d&amp;#039;: &amp;#039;neo_fft&amp;#039;, &amp;#039;grain&amp;#039;: &amp;#039;noise&amp;#039;}, TFF=True, FPSDivisor=2)&lt;br /&gt;
clip = core.vivtc.VFM(clip, order=1)&lt;br /&gt;
# VDecimate helper function &lt;br /&gt;
def postprocess(n, f, clip, deinterlaced):&lt;br /&gt;
  if f.props[&amp;#039;_Combed&amp;#039;] &amp;gt; 0:&lt;br /&gt;
    return deinterlaced&lt;br /&gt;
  else:&lt;br /&gt;
    return clip&lt;br /&gt;
clip = core.std.FrameEval(clip=clip, eval=functools.partial(postprocess, clip=clip, deinterlaced=clip2clip), prop_src=clip)&lt;br /&gt;
clip = core.vivtc.VDecimate(clip) # new fps: 23.976&lt;br /&gt;
# Making sure content is perceived as frame based&lt;br /&gt;
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Field order: follows the source (detected scan type or [[Overwrite input scan type]]); VFM reads the field order property Hybrid sets after the source.&lt;br /&gt;
* The helper deinterlacer runs at the source rate ([[Vapoursynth QTGMC|QTGMC]] or NNEDI3); for every frame VFM marks as combed its frame is used instead.&lt;br /&gt;
* For every format other than 8-bit YUV 4:2:0 Hybrid matches on an 8-bit 4:2:0 copy and takes the pixels from the original; chroma comb detection is then switched off.&lt;br /&gt;
* Decimation: VDecimate gives input rate × (1 − 1/Cycle), e.g. 29.97 → 23.976 fps. Fix Telecined Fades and Fix combed run afterwards.&lt;br /&gt;
* Afterwards the clip counts as progressive. The frame size must be a multiple of 4.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
VIVTC is maintained in the VapourSynth project&amp;#039;s own repository and was derived from TIVTC&amp;#039;s TFM and TDecimate with fewer options. VFM writes match, combing and scene change information to the frame properties; VDecimate can also override decisions or do a dry run, which Hybrid does not use. For the more configurable original see [[Vapoursynth TIVTC|TIVTC]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/vapoursynth/vivtc vivtc README]&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>