<?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_MFDIN</id>
	<title>Vapoursynth MFDIN - 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_MFDIN"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_MFDIN&amp;action=history"/>
	<updated>2026-11-20T08:01:25Z</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_MFDIN&amp;diff=571&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_MFDIN&amp;diff=571&amp;oldid=prev"/>
		<updated>2026-11-16T08:50:46Z</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;MFDIN&amp;#039;&amp;#039;&amp;#039; (Multiframe Joint Enhancement for Early Interlaced Videos) is a neural-network deinterlacer that also cleans up typical artifacts of old interlaced video.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → (De-)Interlace/Telecine → Deinterlacer&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_MFDIN.png|none|MFDIN controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
MFDIN looks at three neighboring frames, deinterlaces them and restores detail in one step. It outputs either one frame per frame or one frame per field (double rate).&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* Windows with the torch add-on and its MFDIN model; without it the entry is not offered.&lt;br /&gt;
* An NVIDIA graphics card with CUDA. TensorRT is optional.&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;
| Bob || double_rate || on/off || off || On: one frame per field (double rate); off: source rate.&lt;br /&gt;
|-&lt;br /&gt;
| TRT || trt || on/off || off || Use a TensorRT engine; it is built on first use and cached. Only enabled when Torch-TensorRT is installed.&lt;br /&gt;
|-&lt;br /&gt;
| FP16 || – (input format) || on/off || off || On: half-precision inference (16-bit float RGB input); off: 32-bit float.&lt;br /&gt;
|-&lt;br /&gt;
| Device || device_index || 0 – 16 || 0 || Index of the GPU to use.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on an 8-bit YUV 4:2:0 interlaced source (704x576, 25 fps, top field first):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P8 to RGBS for vsMFDIN&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.RGBS, matrix_in_s=&amp;quot;470bg&amp;quot;, range_in_s=&amp;quot;limited&amp;quot;, range_s=&amp;quot;full&amp;quot;)&lt;br /&gt;
# deinterlace using MFDIN&lt;br /&gt;
from vsmfdin import mfdin&lt;br /&gt;
clip = mfdin(clip, device_index=0, double_rate=False, trt=False)&lt;br /&gt;
# set frame rate to 25fps (progressive)&lt;br /&gt;
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The clip is converted to 16- or 32-bit float RGB (per FP16) and converted back later.&lt;br /&gt;
* Field order: MFDIN only handles top field first. For bottom field first sources (detected scan type or [[Overwrite input scan type]]) Hybrid flips the picture vertically, which swaps the field parity, runs MFDIN as top field first and flips back.&lt;br /&gt;
* Output frame rate: source rate, or double with Bob.&lt;br /&gt;
* Afterwards the clip counts as progressive. No decimation.&lt;br /&gt;
* MFDIN can also serve as the external interpolation (EdiExt &amp;quot;MFDIN(old)&amp;quot;) of [[Vapoursynth QTGMC|QTGMC]].&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
The VapourSynth package vsmfdin is HolyWu&amp;#039;s port of anymyb&amp;#039;s MFDIN and uses the &amp;quot;MFDIN_old_2P&amp;quot; model. It accepts only 16- or 32-bit float RGB, pads the frame internally to a multiple of 8 and needs PyTorch with CUDA (TensorRT support is optional).&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/HolyWu/vs-mfdin vs-mfdin 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>