<?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_VFM</id>
	<title>Vapoursynth VFM - 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_VFM"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_VFM&amp;action=history"/>
	<updated>2026-11-18T16:10:28Z</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_VFM&amp;diff=762&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_VFM&amp;diff=762&amp;oldid=prev"/>
		<updated>2026-11-16T10:13:33Z</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-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&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 || Includes 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 || Includes 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 detection threshold (8-bit scale).&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 detection threshold (8-bit scale).&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 || Number of combed pixels inside one block (Block X × Y) 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 || Number of combed pixels inside one block (Block X × Y) 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_VFM&amp;diff=642&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_VFM&amp;diff=642&amp;oldid=prev"/>
		<updated>2026-11-16T08:53:02Z</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;VFM&amp;#039;&amp;#039;&amp;#039; (from VIVTC, a rewrite of TIVTC&amp;#039;s TFM) is a field matcher: it rebuilds progressive frames from telecined or field-shifted video by picking the best matching field for each frame.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Frame → Misc&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_VFM.png|none|VFM controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For every frame VFM compares the possible field pairings and keeps the one with the least combing. It does not remove frames and does no deinterlacing itself; frames that are still combed are only marked as combed. To get back to the film rate, use [[Vapoursynth VIVTC|VIVTC]] (VFM + VDecimate); for a matcher with built-in post-processing see [[Vapoursynth TFM|TFM]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&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;
| Field || field || 0 – 3 || 2 || Field to match from: 0 = bottom, 1 = top, 2 = same as the field order, 3 = opposite of the field order.&lt;br /&gt;
|-&lt;br /&gt;
| Mode || mode || 0 – 5 || 1 (p/c + n) || Which matches are tried; higher modes try more matches.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma matching || mchroma || on/off || on || Includes chroma in the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma threshold || cthresh || −1 – 255 || 9 || Combing detection threshold (8-bit scale).&lt;br /&gt;
|-&lt;br /&gt;
| Mi || mi || 0 – Block X × Block Y || 80 || Number of combed pixels inside one block (Block X × Y) above which a frame counts as combed.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma comb detection || chroma || on/off || on || Includes chroma in the combing detection; only used for 8-bit YUV 4:2:0 input, for other formats Hybrid writes chroma=False.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || 4, 8, … 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 from y0 to y1 are left out of the combing detection; equal values = off.&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) are used for the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Mic out || micout || on/off || off || Writes the combing values of all matches to the frame properties.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on a 10-bit YUV 4:2:0 source (640x356):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Field matching using VFM&lt;br /&gt;
yv12=core.resize.Bicubic(clip=clip,format=vs.YUV420P8, range_in_s=&amp;quot;limited&amp;quot;)&lt;br /&gt;
# Forcing chroma to False for VFM&lt;br /&gt;
clip = core.vivtc.VFM(yv12, clip2=clip, order=1, chroma=False)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* VFM decides on an 8-bit YUV 4:2:0 copy of the clip; if the clip has another format, the matches are applied to the original clip, so the output keeps its format. Width and height must be multiples of 4.&lt;br /&gt;
* The field order (order) follows the field order of the source (detected or overwritten scan type): bottom field first only for a BFF stream, otherwise top field first. It is always written; the other options only when they differ from the defaults (Hybrid&amp;#039;s defaults are the plugin&amp;#039;s).&lt;br /&gt;
* Afterwards Hybrid treats the clip as progressive.&lt;br /&gt;
* Frame count and frame rate do not change.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Frame properties ===&lt;br /&gt;
VFM marks its output as progressive and writes the combed flag, the chosen match, the combing values and a scene change flag to the frame properties; a following decimator such as VDecimate can use them.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/vapoursynth/vivtc vivtc]&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>