<?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_TFM</id>
	<title>Vapoursynth TFM - 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_TFM"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_TFM&amp;action=history"/>
	<updated>2026-11-19T04:04:38Z</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_TFM&amp;diff=661&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_TFM&amp;diff=661&amp;oldid=prev"/>
		<updated>2026-11-16T08:53:41Z</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;TFM&amp;#039;&amp;#039;&amp;#039; (from TIVTC) is a field matcher: for every frame it chooses the field pairing that rebuilds a progressive picture from telecined or field-shifted material, and it can deinterlace frames that remain combed.&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_TFM.png|none|TFM controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
TFM compares the current frame&amp;#039;s field with the fields of the previous and next frames and keeps the best match. Frames that are still combed afterwards can be post-processed (deinterlaced). Hybrid uses TFM without decimation, so the frame rate stays the same; add [[Vapoursynth TDecimate|TDecimate]] to get back to 24p, or use [[Vapoursynth TIVTC|TIVTC]] for both steps. Hybrid switches TFM on automatically for field-shifted sources.&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;
| Mode || mode || 0 – 7 || 1 (2-way match + 3rd match on combed) || Which matches are tried: 0 = 2-way (p/c), safest and fastest; higher modes try more matches and are more aggressive; 6 = mode 2 (p/c + u) plus extra matches; 7 = field switching for a special blended pattern (needs linear access).&lt;br /&gt;
|-&lt;br /&gt;
| PP || PP || 0 – 7 || 6 (motion-adaptive cubic) || Post-processing: 0 = no combing check, 1 = only flag combed frames, 2–4 = blend / cubic / ELA deinterlacing of the whole frame, 5–7 = motion-adaptive blend / cubic / ELA.&lt;br /&gt;
|-&lt;br /&gt;
| FM Speed || slow || normal, slower, slowest || slower || Speed and accuracy of the field match metric.&lt;br /&gt;
|-&lt;br /&gt;
| MChroma || mChroma || on/off || on || Includes chroma in the match decision.&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 TFM&lt;br /&gt;
clip = core.tivtc.TFM(clip)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* TFM works on 8–16-bit integer YUV 4:2:0, 4:2:2 or 4:4:4 with even dimensions; other formats are converted first.&lt;br /&gt;
* No field order is passed: TFM reads it from the clip&amp;#039;s field order property.&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;
* With PP 2 – 7 Hybrid treats the result as progressive (deinterlaced). With PP 0 or 1 combed frames stay untouched (PP 1 only flags them), so Hybrid keeps treating the stream as interlaced.&lt;br /&gt;
* Frame count and frame rate do not change.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== Not exposed ===&lt;br /&gt;
The plugin has many more options – field, combing thresholds (cthresh, MI), excluded rows, scene threshold, overrides and more – which Hybrid does not offer. It writes the chosen match, the field and combing information to the frame properties.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-tivtc vapoursynth-tivtc]&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>