<?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_Fix_Telecined_Fades</id>
	<title>Vapoursynth Fix Telecined Fades - 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_Fix_Telecined_Fades"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Fix_Telecined_Fades&amp;action=history"/>
	<updated>2026-11-19T06:31:06Z</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_Fix_Telecined_Fades&amp;diff=513&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_Fix_Telecined_Fades&amp;diff=513&amp;oldid=prev"/>
		<updated>2026-11-16T08:49:03Z</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;Fix Telecined Fades&amp;#039;&amp;#039;&amp;#039; repairs fades that were added after telecining: the two fields of a frame then differ in brightness and leave combing that field matching cannot remove.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → (De-)Interlace/Telecine → Extras&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_FixTelecinedFades.png|none|Fix Telecined Fades controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
During such a fade each field was darkened (or brightened) by a different amount. The filter measures the brightness of both fields and evens them out statistically; frames whose fields differ by less than the threshold are left alone. It is not a deinterlacer of its own but an option of the inverse telecine filters.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
The group is on the pages of [[Vapoursynth IT|IT]] and [[Vapoursynth VIVTC|VIVTC]] (both share the same settings) and, with its own settings, on the [[Vapoursynth TIVTC|TIVTC]] page.&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;
| (group check box) || – || on/off || off || Enables the filter.&lt;br /&gt;
|-&lt;br /&gt;
| Mode || mode || average both, darken the brighter field, brighten the darker field || average both || How the fields are equalized: both to their average brightness, or one to the other.&lt;br /&gt;
|-&lt;br /&gt;
| Threshold || threshold || 0 – 1 (steps of 0.002) || 0.002 || Average per-pixel difference between the fields (0 – 1 scale) below which a frame is left untouched.&lt;br /&gt;
|-&lt;br /&gt;
| To (three values) || color || 0 – 1 each || 0 / 0 / 0 || Base color of the fade (default black). The clip is YUV at this point, so although the boxes are labeled R/G/B the values are Y, U and V (float scale, chroma centered at 0): a fade to white needs 1 / 0 / 0, not 1 / 1 / 1. Only written when not 0 / 0 / 0.&lt;br /&gt;
|}&lt;br /&gt;
Values are only written when they differ from the defaults.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
VIVTC with default settings and Fix Telecined Fades enabled (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;
# adjusting bit depth to 32bit for FixFades&lt;br /&gt;
clip = core.fmtc.bitdepth(clip=clip, bits=32)&lt;br /&gt;
# Fix telecined fades&lt;br /&gt;
clip = core.ftf.FixFades(clip)&lt;br /&gt;
# adjusting bit depth back to 8bit for FixFades&lt;br /&gt;
clip = core.fmtc.bitdepth(clip=clip, bits=8)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Runs after the inverse telecine: with IT after IT, with TIVTC after TDecimate, with VIVTC after VDecimate (before [[Vapoursynth Fix combed with deinterlacer|Fix combed with deinterlacer]]).&lt;br /&gt;
* The clip is converted to 32-bit float for the filter and back to its previous bit depth afterwards; the threshold is on the float scale and needs no bit-depth scaling.&lt;br /&gt;
* Frame rate and frame count do not change; field order does not matter because the clip is already progressive.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
The filter (FixFades) was written by IFeelBloated. Its threshold may also be set above 1. The plugin&amp;#039;s documentation does not state the expected format or whether the color is meant per RGB channel or per plane; with Hybrid it applies per YUV plane as described above.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/IFeelBloated/Fix-Telecined-Fades Fix-Telecined-Fades 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>