<?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_ITM</id>
	<title>Vapoursynth ITM - 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_ITM"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_ITM&amp;action=history"/>
	<updated>2026-11-20T08:29:18Z</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_ITM&amp;diff=569&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_ITM&amp;diff=569&amp;oldid=prev"/>
		<updated>2026-11-16T08:50:44Z</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;ITM&amp;#039;&amp;#039;&amp;#039; is field matching with the IT plugin, a port of the AviSynth IT inverse telecine filter: for each frame it picks the field combination that gives a progressive picture and deinterlaces frames that stay 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_ITM.png|none|ITM controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Telecined or field-shifted video mixes fields of different film frames. ITM looks at the neighboring fields and chooses the pairing that rebuilds a clean progressive frame; frames that remain combed are deinterlaced by interpolating one field. With &amp;#039;&amp;#039;fps&amp;#039;&amp;#039; 30 (default) IT only matches fields: no frames are removed and the frame rate stays the same; a decimator such as [[Vapoursynth TDecimate|TDecimate]] can follow. With &amp;#039;&amp;#039;fps&amp;#039;&amp;#039; 24 IT also removes one frame in five and returns to the film rate. See also [[Vapoursynth IT|IT]] on the Deinterlace/Telecine tab.&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;
| fps || fps || 24, 30 || 30 || 30 = field matching only, 24 = field matching and decimation to 4/5 of the rate.&lt;br /&gt;
|-&lt;br /&gt;
| Threshold || threshold || 0 – 100000 || 20 || Sensitivity of the field match decision; lower is more aggressive.&lt;br /&gt;
|-&lt;br /&gt;
| / (second box) || pthreshold || 0 – 100000 || 75 || Threshold for classifying a frame as progressive or combed.&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;
clip = core.std.AddBorders(clip=clip, left=0, right=0, top=6, bottom=6) # add borders to achieve mod 16 (vsITM) - 640x368&lt;br /&gt;
# Field matching using (z)IT&lt;br /&gt;
clip = core.zit.IT(clip, fps=30) # new fps: 25&lt;br /&gt;
clip = core.std.Crop(clip=clip, left=0, right=0, top=6, bottom=6) # removing added borders from mod requirement (vsITM) -  640x356&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* ITM works on 8–16-bit integer YUV; the frame width must be a multiple of 16.&lt;br /&gt;
* The field order comes from the detected scan type, or from [[Overwrite input scan type|Overwrite input scan type]]: bottom field first sources are matched with reference BOTTOM; top field first and unknown orders use TOP, the plugin default.&lt;br /&gt;
* fps is always written; the thresholds only when they differ from the defaults.&lt;br /&gt;
* Afterwards Hybrid treats the clip as progressive.&lt;br /&gt;
* With fps 30 frame count and frame rate do not change; with fps 24 the rate becomes 4/5 of the input (29.97 → 23.976 fps), and Hybrid tracks it.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== The IT plugin ===&lt;br /&gt;
The plugin used is zit, a port of VapourSynth-IT with all AviSynth parameters restored. It supports 4:2:0, 4:2:2 and 4:4:4 at 8–16 bit, widths up to 8192 (multiple of 16) and even heights (multiple of 4 for 4:2:0). With fps 24 it decimates to 4/5 of the rate; with fps 30 it only matches fields. Its deinterlacing of leftover combed frames defaults to one-field interpolation; it writes progressive, combed and diagnostic frame properties.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/theChaosCoder/vapoursynth-it vapoursynth-it]&lt;br /&gt;
* [https://pypi.org/project/vapoursynth-zit/ vapoursynth-zit on PyPI]&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>