<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Selur</id>
	<title>wiki.selur.net - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Selur"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Special:Contributions/Selur"/>
	<updated>2026-11-16T20:49:26Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_Gamma_(GLSL)&amp;diff=774</id>
		<title>Vapoursynth Gamma (GLSL)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Gamma_(GLSL)&amp;diff=774"/>
		<updated>2026-11-16T15:34:41Z</updated>

		<summary type="html">&lt;p&gt;Selur: Example: before/after slider (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;Gamma (GLSL)&#039;&#039;&#039; changes the gamma of the video with a small GLSL shader that libplacebo (vs-placebo) runs on the GPU.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → Vapoursynth → Color → Levels&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_GLSLGamma.png|none|Gamma (GLSL) controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Each color channel is raised to the power 1/&#039;&#039;Gamma&#039;&#039;. Values above 1 brighten the mid tones, values below 1 darken them; pure black and pure white stay where they are. The result is clamped to the valid range.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* vs-placebo (libplacebo) and a GPU that libplacebo can use.&lt;br /&gt;
* Hybrid&#039;s GLSL shader folder.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Shader parameter !! Range !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Gamma || GammaFactor || 0.01 – 100 || 1.00 || 1 = no change, &amp;gt; 1 brightens, &amp;lt; 1 darkens.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Slightly brighter mid tones (&#039;&#039;Gamma&#039;&#039; 1.2) on a 10-bit YUV 4:2:0 source:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P10 to YUV444P16 for vsGLSLGamma&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)&lt;br /&gt;
# adjusting gamma using GLSL Gamma&lt;br /&gt;
with open(&amp;quot;F:/Hybrid/64bit/vsfilters/GLSL/parameterized/gamma.glsl&amp;quot;) as glslf:&lt;br /&gt;
  glsl = glslf.read()&lt;br /&gt;
glsl = glsl.replace(&#039;#define GammaFactor 2.0&#039;, &#039;#define GammaFactor 1.2&#039;)&lt;br /&gt;
clip = core.placebo.Shader(clip, shader_s=glsl, width=clip.width, height=clip.height, matrix=1)&lt;br /&gt;
# adjusting output color from YUV444P16 to YUV420P10 for NVEncModel&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, dither_type=&amp;quot;error_diffusion&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before and after (drag the handle to compare), with this call:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting gamma using GLSL Gamma&lt;br /&gt;
with open(&amp;quot;F:/Hybrid/64bit/vsfilters/GLSL/parameterized/gamma.glsl&amp;quot;) as glslf:&lt;br /&gt;
  glsl = glslf.read()&lt;br /&gt;
glsl = glsl.replace(&#039;#define GammaFactor 2.0&#039;, &#039;#define GammaFactor 1.25&#039;)&lt;br /&gt;
clip = core.placebo.Shader(clip, shader_s=glsl, width=clip.width, height=clip.height, matrix=2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{#imageslider:Image1=File:Vapoursynth_Gamma_GLSL_before.png|Image2=File:Vapoursynth_Gamma_GLSL_after.png|width=768px}}&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The clip is converted to YUV444P16 first, the only format the filter accepts in Hybrid.&lt;br /&gt;
* Hybrid passes the clip&#039;s color matrix to &amp;lt;code&amp;gt;placebo.Shader&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;matrix=1&amp;lt;/code&amp;gt; for BT.601/470bg, 2 for BT.709, 4/5 for BT.2020), so the shader&#039;s RGB values match the clip.&lt;br /&gt;
* Hybrid loads the shader &#039;&#039;gamma.glsl&#039;&#039; from its GLSL folder, writes the value into its &amp;lt;code&amp;gt;GammaFactor&amp;lt;/code&amp;gt; line and runs it with &amp;lt;code&amp;gt;placebo.Shader&amp;lt;/code&amp;gt;. The frame size stays the same.&lt;br /&gt;
* The shader runs in libplacebo&#039;s RGB pipeline, so the curve acts on the R, G and B values; the result comes back as YUV444P16.&lt;br /&gt;
* The filter is only offered when Hybrid&#039;s GLSL shader folder is present.&lt;br /&gt;
* Gamma (GLSL) also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== The shader ===&lt;br /&gt;
&#039;&#039;gamma.glsl&#039;&#039; is a lightweight gamma correction shader for mpv/libplacebo. It computes &amp;lt;code&amp;gt;clamp(pow(rgb, 1/GammaFactor), 0, 1)&amp;lt;/code&amp;gt; and passes alpha through unchanged.&lt;br /&gt;
&lt;br /&gt;
=== vs-placebo (placebo.Shader) ===&lt;br /&gt;
&amp;lt;code&amp;gt;placebo.Shader&amp;lt;/code&amp;gt; runs mpv-syntax GLSL shaders through libplacebo. The shader is passed as a file or, as Hybrid does, as a string. Input is a 16-bit YUV clip, output is always YUV444P16. &#039;&#039;width&#039;&#039; and &#039;&#039;height&#039;&#039; set the output size.&lt;br /&gt;
&lt;br /&gt;
=== VapourSynth ===&lt;br /&gt;
The closest core function is &amp;lt;code&amp;gt;std.Levels&amp;lt;/code&amp;gt; with its &#039;&#039;gamma&#039;&#039; parameter, see [[Vapoursynth Levels|Levels]].&lt;br /&gt;
&lt;br /&gt;
=== AviSynth ===&lt;br /&gt;
The &#039;&#039;gamma&#039;&#039; argument of AviSynth&#039;s Levels does the same (higher values brighten). See [[Avisynth Levels]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/sgt0/vs-placebo vs-placebo README]&lt;br /&gt;
* [https://www.vapoursynth.com/doc/functions/video/levels.html VapourSynth documentation: std.Levels] (gamma in the core Levels filter)&lt;br /&gt;
* [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/levels.html AviSynth+ documentation: Levels]&lt;br /&gt;
* The shader &#039;&#039;gamma.glsl&#039;&#039; shipped with Hybrid&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Gamma_GLSL_after.png&amp;diff=773</id>
		<title>File:Vapoursynth Gamma GLSL after.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Gamma_GLSL_after.png&amp;diff=773"/>
		<updated>2026-11-16T15:34:35Z</updated>

		<summary type="html">&lt;p&gt;Selur: After image for the Gamma (GLSL) example slider (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame after GLSL Gamma (GammaFactor 1.25), used in the before/after slider on [[Vapoursynth Gamma (GLSL)]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Gamma_GLSL_before.png&amp;diff=772</id>
		<title>File:Vapoursynth Gamma GLSL before.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Gamma_GLSL_before.png&amp;diff=772"/>
		<updated>2026-11-16T15:34:34Z</updated>

		<summary type="html">&lt;p&gt;Selur: Before image for the Gamma (GLSL) example slider (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame before the filter, used in the before/after slider on [[Vapoursynth Gamma (GLSL)]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_Limiter&amp;diff=771</id>
		<title>Vapoursynth Limiter</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Limiter&amp;diff=771"/>
		<updated>2026-11-16T15:28:06Z</updated>

		<summary type="html">&lt;p&gt;Selur: Example: before/after slider (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;Limiter&#039;&#039;&#039; clamps every pixel value into a range: values below &#039;&#039;min&#039;&#039; are raised to &#039;&#039;min&#039;&#039;, values above &#039;&#039;max&#039;&#039; are lowered to &#039;&#039;max&#039;&#039;. Unlike [[Vapoursynth Levels|Levels]] it does not stretch or remap anything, it only clips.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → Vapoursynth → Color → Levels&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_Limiter.png|none|Limiter controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Typical uses:&lt;br /&gt;
* keep values within broadcast-legal limits, for example 16–235,&lt;br /&gt;
* cut off overshoots that earlier filters (sharpeners, resizers) left behind.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Limits (min/max) || min / max || 0–255 || 0 / 255 || Range all values are clamped to, on the 8-bit scale.&lt;br /&gt;
|-&lt;br /&gt;
| Planes || planes || all, chroma only, luma only || luma only || Planes that are processed; the others are copied unchanged. Only used without &#039;&#039;Use RGB&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Use RGB || – || on/off || on || Converts to RGB before filtering, so all three color channels are clamped.&lt;br /&gt;
|-&lt;br /&gt;
| Range signaling || – || unchanged, full, limited || unchanged || Overwrites the clip&#039;s color range flag before the filter.&lt;br /&gt;
|-&lt;br /&gt;
| Tools: Limiter || – || vszip, std, tune || vszip || Implementation: vszip&#039;s Limiter, VapourSynth&#039;s built-in std.Limiter, or &#039;&#039;tune&#039;&#039; (the faster one according to Hybrid&#039;s tools benchmark).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings (&#039;&#039;Use RGB&#039;&#039; on) on a 10-bit YUV 4:2:0 source:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P10 to RGB30 for vsLimiter&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.RGB30, 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;
# adjusting color using Limiter&lt;br /&gt;
clip = core.vszip.Limiter(clip=clip, min=[0,0,0], max=[1023,1023,1023])&lt;br /&gt;
# adjusting output color from RGB30 to YUV420P10 for NVEncModel&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s=&amp;quot;470bg&amp;quot;, range_in_s=&amp;quot;full&amp;quot;, range_s=&amp;quot;limited&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before and after (drag the handle to compare), with this call:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color using Limiter&lt;br /&gt;
clip = core.vszip.Limiter(clip=clip, min=[16,16,16], max=[235,235,235])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{#imageslider:Image1=File:Vapoursynth_Limiter_before.png|Image2=File:Vapoursynth_Limiter_after.png|width=960px}}&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The limits are entered on the 8-bit scale. Hybrid scales them to the clip&#039;s bit depth: 255 becomes the format&#039;s maximum (1023 at 10 bit, 65535 at 16 bit), other values are shifted (16 becomes 64 at 10 bit). For 32-bit float RGB they are divided by 255; for 32-bit float YUV Hybrid writes one value per plane: luma divided by 255, chroma centered on 0 ((value − 128) / 255).&lt;br /&gt;
* With &#039;&#039;Use RGB&#039;&#039; Hybrid converts the clip to RGB first, if it isn&#039;t RGB already; all three planes are processed.&lt;br /&gt;
* Without &#039;&#039;Use RGB&#039;&#039; the filter runs in YUV and &#039;&#039;Planes&#039;&#039; decides which planes are touched. Anything but &#039;&#039;luma only&#039;&#039; gives unexpected results in YUV; Hybrid writes a warning comment into the script in that case.&lt;br /&gt;
* Limiter also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== VapourSynth (std.Limiter) ===&lt;br /&gt;
&amp;lt;code&amp;gt;std.Limiter(clip, min, max, planes)&amp;lt;/code&amp;gt; clamps samples into [min, max]. It accepts 8–16 bit integer and 32-bit float clips. &#039;&#039;min&#039;&#039; and &#039;&#039;max&#039;&#039; default to the lowest and highest legal value of the format and can be given per plane; planes that are not selected are copied unchanged.&lt;br /&gt;
&lt;br /&gt;
=== vszip (Limiter) ===&lt;br /&gt;
vszip&#039;s Limiter is a faster version of std.Limiter with the same &#039;&#039;min&#039;&#039;, &#039;&#039;max&#039;&#039; and &#039;&#039;planes&#039;&#039; parameters. It also has &#039;&#039;tv_range&#039;&#039; (limited-range defaults) and &#039;&#039;mask&#039;&#039; (float chroma range), which Hybrid does not use.&lt;br /&gt;
&lt;br /&gt;
=== AviSynth (Limiter) ===&lt;br /&gt;
AviSynth&#039;s Limiter takes separate luma and chroma limits and by default clamps to CCIR-601 levels (luma 16–235, chroma 16–240). With &#039;&#039;paramscale&#039;&#039; the limits are given on the 8-bit scale and scaled to the bit depth; a &#039;&#039;show&#039;&#039; mode highlights out-of-range pixels instead of clipping them.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://www.vapoursynth.com/doc/functions/video/limiter.html VapourSynth documentation: std.Limiter]&lt;br /&gt;
* [https://github.com/dnjulek/vapoursynth-zip vapoursynth-zip README] and its [https://github.com/dnjulek/vapoursynth-zip/wiki/Limiter Limiter wiki page]&lt;br /&gt;
* [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/limiter.html AviSynth+ documentation: Limiter]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_Levels_(GLSL)&amp;diff=770</id>
		<title>Vapoursynth Levels (GLSL)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Levels_(GLSL)&amp;diff=770"/>
		<updated>2026-11-16T15:28:05Z</updated>

		<summary type="html">&lt;p&gt;Selur: Example: before/after slider (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;Levels (GLSL)&#039;&#039;&#039; remaps brightness levels on the GPU: values in an input range are stretched or squeezed to an output range, with a gamma curve in between. It does the same job as [[Vapoursynth Levels|Levels]], but runs as a small GLSL shader through libplacebo (vs-placebo).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → Vapoursynth → Color → Levels&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_GLSLLevels.png|none|Levels (GLSL) controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Values between &#039;&#039;In min&#039;&#039; and &#039;&#039;In max&#039;&#039; are mapped to the range between &#039;&#039;Out min&#039;&#039; and &#039;&#039;Out max&#039;&#039;; values outside the input range are clipped. &#039;&#039;Gamma&#039;&#039; bends the curve in between: values above 1 brighten the mid tones, values below 1 darken them.&lt;br /&gt;
&lt;br /&gt;
With Hybrid&#039;s defaults (&#039;&#039;In&#039;&#039; 16/235, &#039;&#039;Out&#039;&#039; 0/255) the filter expands limited (TV) range to full (PC) range.&lt;br /&gt;
&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* vs-placebo (libplacebo) and a GPU that libplacebo can use.&lt;br /&gt;
* Hybrid&#039;s GLSL shader folder.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Shader parameter !! Range !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| In (min/max) || input_low / input_high || 0–255 || 16 / 235 || Input range that is assumed.&lt;br /&gt;
|-&lt;br /&gt;
| Out (min/max) || output_low / output_high || 0–255 || 0 / 255 || Range the input range is mapped to.&lt;br /&gt;
|-&lt;br /&gt;
| Gamma || gamma || 0–100 || 1.00 || 1 = no change, &amp;gt; 1 brightens, &amp;lt; 1 darkens, 0 = black.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
All values are on the 8-bit scale, independent of the clip&#039;s bit depth; the shader divides them by 255 internally.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on a 10-bit YUV 4:2:0 source:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P10 to YUV444P16 for vsGLSLLevels&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV444P16)&lt;br /&gt;
# adjusting levels using GLSL Levels&lt;br /&gt;
with open(&amp;quot;F:/Hybrid/64bit/vsfilters/GLSL/parameterized/Levels.glsl&amp;quot;) as glslf:&lt;br /&gt;
  glsl = glslf.read()&lt;br /&gt;
glsl = glsl.replace(&#039;#define input_low 16.0&#039;, &#039;#define input_low 16&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define input_high 235.0&#039;, &#039;#define input_high 235&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define output_low 0.0&#039;, &#039;#define output_low 0&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define output_high 255.0&#039;, &#039;#define output_high 255&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define gamma 1.0&#039;, &#039;#define gamma 1&#039;)&lt;br /&gt;
clip = core.placebo.Shader(clip, shader_s=glsl, width=clip.width, height=clip.height, matrix=1)&lt;br /&gt;
# adjusting output color from YUV444P16 to YUV420P10 for NVEncModel&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, dither_type=&amp;quot;error_diffusion&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before and after (drag the handle to compare), with this call:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting levels using GLSL Levels&lt;br /&gt;
with open(&amp;quot;F:/Hybrid/64bit/vsfilters/GLSL/parameterized/Levels.glsl&amp;quot;) as glslf:&lt;br /&gt;
  glsl = glslf.read()&lt;br /&gt;
glsl = glsl.replace(&#039;#define input_low 16.0&#039;, &#039;#define input_low 16&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define input_high 235.0&#039;, &#039;#define input_high 235&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define output_low 0.0&#039;, &#039;#define output_low 0&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define output_high 255.0&#039;, &#039;#define output_high 255&#039;)&lt;br /&gt;
glsl = glsl.replace(&#039;#define gamma 1.0&#039;, &#039;#define gamma 0.85&#039;)&lt;br /&gt;
clip = core.placebo.Shader(clip, shader_s=glsl, width=clip.width, height=clip.height, matrix=2)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{#imageslider:Image1=File:Vapoursynth_Levels_before.png|Image2=File:Vapoursynth_Levels_GLSL_after.png|width=960px}}&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The clip is converted to YUV444P16 first, the only format the filter accepts in Hybrid.&lt;br /&gt;
* Hybrid passes the clip&#039;s color matrix to &amp;lt;code&amp;gt;placebo.Shader&amp;lt;/code&amp;gt; (&amp;lt;code&amp;gt;matrix=1&amp;lt;/code&amp;gt; for BT.601/470bg, 2 for BT.709, 4/5 for BT.2020), so the shader&#039;s RGB values match the clip.&lt;br /&gt;
* Hybrid loads the shader &#039;&#039;Levels.glsl&#039;&#039; from its GLSL folder, writes the five values into its &amp;lt;code&amp;gt;#define&amp;lt;/code&amp;gt; lines and runs it with &amp;lt;code&amp;gt;placebo.Shader&amp;lt;/code&amp;gt;. The frame size stays the same.&lt;br /&gt;
* The shader runs in libplacebo&#039;s RGB pipeline, so all three color channels are adjusted the same way (unlike [[Vapoursynth Levels|Levels]] with &#039;&#039;Planes&#039;&#039; set to luma only).&lt;br /&gt;
* The filter is only offered when Hybrid&#039;s GLSL shader folder is present.&lt;br /&gt;
* Levels (GLSL) also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== The shader ===&lt;br /&gt;
&#039;&#039;Levels.glsl&#039;&#039; is an mpv-style user shader. It normalizes the five values to 0–1, subtracts &#039;&#039;input_low&#039;&#039;, divides by the input range, clamps to 0–1, applies &amp;lt;code&amp;gt;pow(x, 1/gamma)&amp;lt;/code&amp;gt;, scales to the output range and clamps again.&lt;br /&gt;
&lt;br /&gt;
=== vs-placebo (placebo.Shader) ===&lt;br /&gt;
&amp;lt;code&amp;gt;placebo.Shader&amp;lt;/code&amp;gt; runs mpv-syntax GLSL shaders through libplacebo. The shader is passed as a file or, as Hybrid does, as a string. Input is a 16-bit YUV clip, output is always YUV444P16, so 4:2:0 chroma is upscaled. &#039;&#039;width&#039;&#039; and &#039;&#039;height&#039;&#039; set the output size.&lt;br /&gt;
&lt;br /&gt;
=== VapourSynth ===&lt;br /&gt;
The CPU counterpart is &amp;lt;code&amp;gt;std.Levels&amp;lt;/code&amp;gt;, see [[Vapoursynth Levels|Levels]].&lt;br /&gt;
&lt;br /&gt;
=== AviSynth (Levels) ===&lt;br /&gt;
AviSynth&#039;s Levels uses the same transfer function, ((x − input_low) / (input_high − input_low))^(1/gamma) scaled to the output range, and adds &#039;&#039;coring&#039;&#039; and &#039;&#039;dither&#039;&#039; options. See [[Avisynth Levels]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/sgt0/vs-placebo vs-placebo README]&lt;br /&gt;
* [https://www.vapoursynth.com/doc/functions/video/levels.html VapourSynth documentation: std.Levels] (CPU counterpart)&lt;br /&gt;
* [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/levels.html AviSynth+ documentation: Levels]&lt;br /&gt;
* The shader &#039;&#039;Levels.glsl&#039;&#039; shipped with Hybrid&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_Levels&amp;diff=769</id>
		<title>Vapoursynth Levels</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_Levels&amp;diff=769"/>
		<updated>2026-11-16T15:28:02Z</updated>

		<summary type="html">&lt;p&gt;Selur: Example: before/after slider (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;Levels&#039;&#039;&#039; adjusts brightness, contrast and gamma by remapping an input value range to an output value range. Hybrid uses the VapourSynth core filter &amp;lt;code&amp;gt;std.Levels&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → Vapoursynth → Color → Levels&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_Levels.png|none|Levels controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
All values between &#039;&#039;In min&#039;&#039; and &#039;&#039;In max&#039;&#039; are stretched (or compressed) to the range between &#039;&#039;Out min&#039;&#039; and &#039;&#039;Out max&#039;&#039;; values outside the input range are clipped, so the output never leaves the output range. &#039;&#039;Gamma&#039;&#039; bends the curve in between: values above 1.0 brighten the mid tones, values below 1.0 darken them.&lt;br /&gt;
&lt;br /&gt;
Typical uses:&lt;br /&gt;
* &#039;&#039;In&#039;&#039; 16/235 → &#039;&#039;Out&#039;&#039; 0/255: expand limited (TV) range to full (PC) range.&lt;br /&gt;
* &#039;&#039;In&#039;&#039; 0/255 → &#039;&#039;Out&#039;&#039; 16/235: squeeze full range into limited range.&lt;br /&gt;
* &#039;&#039;In&#039;&#039; 0/255 → &#039;&#039;Out&#039;&#039; 255/0: invert the image.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Parameter !! Range !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| In (min/max) || min_in / max_in || 0–255 || 0 / 255 || Input range that gets remapped.&lt;br /&gt;
|-&lt;br /&gt;
| Out (min/max) || min_out / max_out || 0–255 || 0 / 255 || Output range the input range is mapped to.&lt;br /&gt;
|-&lt;br /&gt;
| Gamma || gamma || 0–10 || 1.00 || Nonlinearity of the mapping; &amp;gt; 1 brightens, &amp;lt; 1 darkens.&lt;br /&gt;
|-&lt;br /&gt;
| Planes || planes || all, chroma only, luma only || luma only || Planes that are processed; the others are copied unchanged. Only used without &#039;&#039;Use RGB&#039;&#039;.&lt;br /&gt;
|-&lt;br /&gt;
| Use RGB || – || on/off || on || Converts to RGB before filtering, so all three color channels are adjusted the same way.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
With the default settings (&#039;&#039;Use RGB&#039;&#039; on) on a 10-bit YUV 4:2:0 source, Hybrid converts to RGB, applies Levels and converts back for the encoder:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color space from YUV420P10 to RGB30 for vsLevels&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.RGB30, 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;
# adjusting color using Levels on RGB30 (10 bit)&lt;br /&gt;
clip = core.std.Levels(clip, min_in=0, max_in=1023, min_out=0, max_out=1023)&lt;br /&gt;
# adjusting output color from RGB30 to YUV420P10 for NVEncModel&lt;br /&gt;
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, matrix_s=&amp;quot;470bg&amp;quot;, range_in_s=&amp;quot;full&amp;quot;, range_s=&amp;quot;limited&amp;quot;)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Expanding limited range to full range on the luma plane only (&#039;&#039;Use RGB&#039;&#039; off, &#039;&#039;Planes&#039;&#039; luma only, &#039;&#039;In&#039;&#039; 16/235, &#039;&#039;Out&#039;&#039; 0/255), same source:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color using Levels on YUV420P10 (10 bit)&lt;br /&gt;
clip = core.std.Levels(clip, min_in=64, max_in=940, min_out=0, max_out=1023, planes=[0])&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Before and after (drag the handle to compare), with this call:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adjusting color using Levels on RGB24 (8 bit)&lt;br /&gt;
clip = core.std.Levels(clip, min_in=0, max_in=255, min_out=0, max_out=255, gamma=0.85)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{#imageslider:Image1=File:Vapoursynth_Levels_before.png|Image2=File:Vapoursynth_Levels_after.png|width=960px}}&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* The In/Out values are always entered on the 8-bit scale. Hybrid scales them to the bit depth of the clip at the filter&#039;s position (for example 235 becomes 940 and 255 becomes 1023 at 10 bit); for 32-bit float RGB it divides them by 255.&lt;br /&gt;
* &#039;&#039;Gamma&#039;&#039; is only written to the script when it differs from 1.0.&lt;br /&gt;
* With &#039;&#039;Use RGB&#039;&#039; Hybrid converts the clip to RGB before Levels, if it isn&#039;t RGB already. Without it, the filter runs in YUV or gray, and &#039;&#039;Planes&#039;&#039; decides which planes are touched. Anything but &#039;&#039;luma only&#039;&#039; in YUV gives unexpected colors, because chroma is centered around the middle value and does not behave like luma; Hybrid writes a warning comment into the script in that case.&lt;br /&gt;
* Like every Vapoursynth filter in Hybrid, Levels also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== VapourSynth (std.Levels) ===&lt;br /&gt;
* Works on integer clips with 8 to 16 bits and on 32-bit float clips.&lt;br /&gt;
* min_in, max_in, gamma, min_out and max_out can be given per plane; if fewer values than planes are given, the last one is reused.&lt;br /&gt;
* For float clips the default range is 0–1, which also applies to the U and V planes of YUV float clips; the documentation warns that this can give unwanted results there.&lt;br /&gt;
&lt;br /&gt;
=== AviSynth (Levels) ===&lt;br /&gt;
AviSynth&#039;s Levels does the same mapping with the transfer function&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;output = ((input − input_low) / (input_high − input_low))^(1/gamma) × (output_high − output_low) + output_low&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It differs from VapourSynth&#039;s version in some points:&lt;br /&gt;
* The parameter order is input_low, gamma, input_high, output_low, output_high.&lt;br /&gt;
* &#039;&#039;coring&#039;&#039; (default true) clamps YUV input to limited range, scales it to full range for the calculation and back afterwards; with coring=false only the transfer function is applied.&lt;br /&gt;
* &#039;&#039;dither&#039;&#039; adds ordered dithering against banding.&lt;br /&gt;
* In YUV, gamma is applied to luma only; the documentation recommends Tweak or ColorYUV for brightness/contrast changes in YUV, since Levels also changes the chroma.&lt;br /&gt;
&lt;br /&gt;
See also: [[Avisynth Levels]]&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://www.vapoursynth.com/doc/functions/video/levels.html VapourSynth documentation: std.Levels]&lt;br /&gt;
* [https://avisynthplus.readthedocs.io/en/latest/avisynthdoc/corefilters/levels.html AviSynth+ documentation: Levels]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Limiter_after.png&amp;diff=768</id>
		<title>File:Vapoursynth Limiter after.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Limiter_after.png&amp;diff=768"/>
		<updated>2026-11-16T15:27:45Z</updated>

		<summary type="html">&lt;p&gt;Selur: After image for the Limiter example slider (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame after Limiter (16-235), used in the before/after slider on [[Vapoursynth Limiter]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Limiter_before.png&amp;diff=767</id>
		<title>File:Vapoursynth Limiter before.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Limiter_before.png&amp;diff=767"/>
		<updated>2026-11-16T15:27:43Z</updated>

		<summary type="html">&lt;p&gt;Selur: Before image for the Limiter example slider (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame before the filter, used in the before/after slider on [[Vapoursynth Limiter]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Levels_GLSL_after.png&amp;diff=766</id>
		<title>File:Vapoursynth Levels GLSL after.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Levels_GLSL_after.png&amp;diff=766"/>
		<updated>2026-11-16T15:27:42Z</updated>

		<summary type="html">&lt;p&gt;Selur: After image for the Levels (GLSL) example slider (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame after GLSL Levels (gamma 0.85), used in the before/after slider on [[Vapoursynth Levels (GLSL)]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Levels_after.png&amp;diff=765</id>
		<title>File:Vapoursynth Levels after.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Levels_after.png&amp;diff=765"/>
		<updated>2026-11-16T15:27:40Z</updated>

		<summary type="html">&lt;p&gt;Selur: After image for the Levels example slider (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame after Levels (gamma 0.85), used in the before/after slider on [[Vapoursynth Levels]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Levels_before.png&amp;diff=764</id>
		<title>File:Vapoursynth Levels before.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Levels_before.png&amp;diff=764"/>
		<updated>2026-11-16T15:27:37Z</updated>

		<summary type="html">&lt;p&gt;Selur: Before image for the Levels example sliders (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example frame before the filter, used in the before/after sliders on [[Vapoursynth Levels]] and [[Vapoursynth Levels (GLSL)]].&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;diff=763</id>
		<title>Vapoursynth VIVTC</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_VIVTC&amp;diff=763"/>
		<updated>2026-11-16T10:13:34Z</updated>

		<summary type="html">&lt;p&gt;Selur: Label is now &amp;quot;Comb threshold&amp;quot; (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;VIVTC&#039;&#039;&#039; is VapourSynth&#039;s own inverse telecine pair VFM + VDecimate, derived from TIVTC: VFM matches fields to recover the progressive frames, VDecimate drops one duplicate per cycle (29.97 → 23.976 fps for NTSC film).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Inverse telecine&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_VIVTC.png|none|VIVTC controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For every frame VFM keeps the field pairing with the least combing and marks frames that are still combed. Hybrid replaces those frames with the matching frame of a helper deinterlacer. VDecimate then removes the most similar frame of every cycle. The field matcher alone is available as [[Vapoursynth VFM|VFM]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
Options are only written when they differ from the defaults (Hybrid&#039;s defaults are the plugin&#039;s).&lt;br /&gt;
&lt;br /&gt;
=== VFM ===&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 – 5 || 1 (p/c + n) || Which matches are tried; higher modes try more matches and are more aggressive.&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.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma matching || mchroma || on/off || on || Include chroma in the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Comb threshold || cthresh || −1 – 255 || 9 || Combing threshold (8-bit scale; the plugin scales it).&lt;br /&gt;
|-&lt;br /&gt;
| Mi || mi || 0 – Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma comb detection || chroma || on/off || on || Include chroma in the combing detection.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || 4 – 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 excluded from the match decision; off when equal.&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) influence the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Mic out || micout || on/off || off || Write the mic values of all matches to the frame properties.&lt;br /&gt;
|-&lt;br /&gt;
| Deinterlacer || – || QTGMC fast / medium / slow / Very Slow, NNEDI3 || QTGMC fast || Helper that provides the replacement for frames VFM marks as combed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== VDecimate ===&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;
| Cycle || cycle || 2 – 100 || 5 || One frame is dropped per Cycle frames.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma || chroma || on/off || on || Include chroma in the duplicate metrics.&lt;br /&gt;
|-&lt;br /&gt;
| Dup threshold || dupthresh || 0 – 100 || 1.1 || Difference in percent below which a frame counts as a duplicate.&lt;br /&gt;
|-&lt;br /&gt;
| Scene threshold || scthresh || 0 – 100 || 15 || Difference in percent that counts as a scene change.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || – || 32 / 32 || Block size of the metrics.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Other groups ===&lt;br /&gt;
* &#039;&#039;&#039;Fix Telecined Fades&#039;&#039;&#039;: see [[Vapoursynth Fix Telecined Fades|Fix Telecined Fades]].&lt;br /&gt;
* &#039;&#039;&#039;Fix combed with deinterlacer&#039;&#039;&#039;: see [[Vapoursynth Fix combed with deinterlacer|Fix combed with deinterlacer]].&lt;br /&gt;
* &#039;&#039;&#039;Tools&#039;&#039;&#039;: implementations for the QTGMC or NNEDI3 helper.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
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={&#039;mv&#039;: &#039;mvutensils&#039;, &#039;expr&#039;: &#039;akarin&#039;, &#039;nnedi3&#039;: &#039;znedi3&#039;, &#039;eedi3&#039;: &#039;vszip&#039;, &#039;dfttest&#039;: &#039;neo_fft&#039;, &#039;nlmeans&#039;: &#039;knlm&#039;, &#039;bm3d&#039;: &#039;bm3d&#039;, &#039;rg&#039;: &#039;zsmooth&#039;, &#039;median&#039;: &#039;zsmooth&#039;, &#039;fft3d&#039;: &#039;neo_fft&#039;, &#039;grain&#039;: &#039;noise&#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[&#039;_Combed&#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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Field order: follows the source (detected scan type or [[Overwrite input scan type]]); VFM reads the field order property Hybrid sets after the source.&lt;br /&gt;
* The helper deinterlacer runs at the source rate ([[Vapoursynth QTGMC|QTGMC]] or NNEDI3); for every frame VFM marks as combed its frame is used instead.&lt;br /&gt;
* For every format other than 8-bit YUV 4:2:0 Hybrid matches on an 8-bit 4:2:0 copy and takes the pixels from the original; chroma comb detection is then switched off.&lt;br /&gt;
* Decimation: VDecimate gives input rate × (1 − 1/Cycle), e.g. 29.97 → 23.976 fps. Fix Telecined Fades and Fix combed run afterwards.&lt;br /&gt;
* Afterwards the clip counts as progressive. The frame size must be a multiple of 4.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
VIVTC is maintained in the VapourSynth project&#039;s own repository and was derived from TIVTC&#039;s TFM and TDecimate with fewer options. VFM writes match, combing and scene change information to the frame properties; VDecimate can also override decisions or do a dry run, which Hybrid does not use. For the more configurable original see [[Vapoursynth TIVTC|TIVTC]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/vapoursynth/vivtc vivtc README]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_VFM&amp;diff=762</id>
		<title>Vapoursynth VFM</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_VFM&amp;diff=762"/>
		<updated>2026-11-16T10:13:33Z</updated>

		<summary type="html">&lt;p&gt;Selur: Label is now &amp;quot;Comb threshold&amp;quot; (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;VFM&#039;&#039;&#039; (from VIVTC, a rewrite of TIVTC&#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;
&#039;&#039;Filtering → Vapoursynth → Frame → Misc&#039;&#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;
| Comb 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&#039;s defaults are the plugin&#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&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_TFMBob&amp;diff=761</id>
		<title>Vapoursynth TFMBob</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_TFMBob&amp;diff=761"/>
		<updated>2026-11-16T10:13:32Z</updated>

		<summary type="html">&lt;p&gt;Selur: Label is now &amp;quot;Comb threshold&amp;quot; (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;TFMBob&#039;&#039;&#039; is a &amp;quot;smart bobber&amp;quot;: it first tries to rebuild progressive frames by field matching and only interpolates the frames that stay combed. The output has double frame rate.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Deinterlacer&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_TFMBob.png|none|TFMBob controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
TFMBob runs the field matcher TFM twice, once for each field phase, and interleaves both results. Progressive content keeps its full detail (each picture simply appears twice), while truly interlaced parts are bobbed by NNEDI3 or QTGMC. This avoids the shimmer a plain bobber causes on mostly progressive or mixed material.&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;
| Deinterlacer || – (function) || NNEDI3, QTGMC || NNEDI3 || Bobber for combed frames: NNEDI3, or [[Vapoursynth QTGMC|QTGMC]] with preset Fast.&lt;br /&gt;
|-&lt;br /&gt;
| PP || PP || 0 – 7 || 6 (motion-adaptive cubic) || TFM post-processing of combed frames; with the values that deinterlace, the bobbed frame is used.&lt;br /&gt;
|-&lt;br /&gt;
| MI || MI || 0 – 4194304 || 80 || Number of combed pixels inside one block above which a frame counts as combed.&lt;br /&gt;
|-&lt;br /&gt;
| Comb threshold || cthresh || −1 – 255 || 9 || Combing threshold (pixel difference, 8-bit scale).&lt;br /&gt;
|-&lt;br /&gt;
| Chroma || chroma || on/off || off || Include chroma in the combed-frame decision.&lt;br /&gt;
|-&lt;br /&gt;
| Tools || – || nnedi3 family, or the QTGMC families || – || Implementations of the bobber&#039;s plugins.&lt;br /&gt;
|}&lt;br /&gt;
Values are only written when they differ from the defaults (Hybrid&#039;s defaults are the script&#039;s).&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;
clip = TFMBob.TFMBobN(clip, tools={&#039;mv&#039;: &#039;mvutensils&#039;, &#039;expr&#039;: &#039;akarin&#039;, &#039;nnedi3&#039;: &#039;znedi3&#039;, &#039;eedi3&#039;: &#039;vszip&#039;, &#039;dfttest&#039;: &#039;neo_fft&#039;, &#039;nlmeans&#039;: &#039;knlm&#039;, &#039;bm3d&#039;: &#039;bm3d&#039;, &#039;rg&#039;: &#039;zsmooth&#039;, &#039;median&#039;: &#039;zsmooth&#039;, &#039;fft3d&#039;: &#039;neo_fft&#039;, &#039;grain&#039;: &#039;noise&#039;})&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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Field order: read from the field order property Hybrid sets after the source (detected scan type or [[Overwrite input scan type]]); TFM, NNEDI3 and QTGMC all follow it.&lt;br /&gt;
* Output frame rate: always double rate (one frame per field).&lt;br /&gt;
* Afterwards the clip counts as progressive. No decimation.&lt;br /&gt;
* Works on 8–16-bit YUV 4:2:0, 4:2:2 and 4:4:4. The thresholds stay on the 8-bit scale; TFM scales them.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
TFMBob is a VapourSynth port of jagabo&#039;s AviSynth functions TFMBobN (with NNEDI3) and TFMBobQ (with QTGMC), shipped with Hybrid&#039;s scripts. It uses TFM from the TIVTC plugin with the bobbed frames as replacement clip for combed frames.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-tivtc vapoursynth-tivtc README] (TFM)&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_TIVTC&amp;diff=760</id>
		<title>Vapoursynth TIVTC</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_TIVTC&amp;diff=760"/>
		<updated>2026-11-16T10:13:07Z</updated>

		<summary type="html">&lt;p&gt;Selur: TFM defaults now match the plugin (9 / 12) (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;TIVTC&#039;&#039;&#039; is the inverse telecine pair TFM + TDecimate: TFM matches fields to rebuild the progressive frames of telecined video, TDecimate then removes the duplicates (one in five for NTSC film, or down to any target rate). It can also handle sources that mix film and video.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Inverse telecine&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_TIVTC.png|none|TIVTC controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For every frame TFM picks the field pairing with the least combing; frames that stay combed are post-processed (deinterlaced), either by TFM itself or with frames from a helper deinterlacer. TDecimate compares neighboring frames and drops the most similar ones per cycle, or decimates to an arbitrary rate. Both filters are also available on their own: [[Vapoursynth TFM|TFM]] and [[Vapoursynth TDecimate|TDecimate]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
The page has the tabs Base, Advanced and Misc. Options are only written when they differ from Hybrid&#039;s defaults unless noted.&lt;br /&gt;
&lt;br /&gt;
=== TFM ===&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;
| Deinterlacer || clip2 || inner, QTGMC fast / medium / slow / Very Slow, nnedi3 || inner || Source of the replacement frames for combed frames: TFM&#039;s own post-processing, or a same-rate [[Vapoursynth QTGMC|QTGMC]] or NNEDI3 clip.&lt;br /&gt;
|-&lt;br /&gt;
| Mode || mode || 0 – 7 || 1 (2-way match + 3rd match on combed) || Which matches are tried; higher modes try more and are more aggressive.&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, 5–7 = motion-adaptive blend / cubic / ELA.&lt;br /&gt;
|-&lt;br /&gt;
| MThresh || mthresh || 0 – 100 || 5 || Motion threshold of the motion-adaptive post-processing (PP 5–7).&lt;br /&gt;
|-&lt;br /&gt;
| FM Speed || slow || normal, slower, slowest || slower || Speed and accuracy of the match metric.&lt;br /&gt;
|-&lt;br /&gt;
| MChroma || mChroma || on/off || on || Include chroma in the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Mic match || micmatching || 0 – 3 || 1 || How the combing values (mics) are used to override match decisions.&lt;br /&gt;
|-&lt;br /&gt;
| Scene threshold || scthresh || 0 – 100 || 12 || Scene change threshold in percent (the plugin default); always written.&lt;br /&gt;
|-&lt;br /&gt;
| U/B, Mic match (sco) || ubsco, mmsco || on/off || on / on || When on, u/b matches and mic-based match changes are only used at scene changes.&lt;br /&gt;
|-&lt;br /&gt;
| y0 / y1 || y0, y1 || 0 – 8192 || 0 / 0 || Rows excluded from the match decision (e.g. subtitles); off when equal.&lt;br /&gt;
|-&lt;br /&gt;
| Metric || metric || 0 – 1 || 0 || Combing metric.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || 4 – 2048 || 16 / 16 || Block size of the combed-frame detection.&lt;br /&gt;
|-&lt;br /&gt;
| Comb threshold || cthresh || −1 – 255 || 9 || Combing threshold (8-bit scale, the plugin default); always written.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma || chroma || on/off || off || Include chroma in the combed-frame detection.&lt;br /&gt;
|-&lt;br /&gt;
| MI || MI || up to Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TDecimate ===&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, 1, 2, 7 || 0 || 0: drop the most similar frames per cycle; 1: drop from the longest duplicate runs; 2: arbitrary rate; 7: arbitrary rate by thresholds.&lt;br /&gt;
|-&lt;br /&gt;
| Cycle / CycleR || cycle, cycleR || 2 – 100 / 1 – 50 || 5 / 1 || Per Cycle frames, CycleR frames are dropped (modes 0/1).&lt;br /&gt;
|-&lt;br /&gt;
| Hybrid || hybrid || no handling, blend 30p→24p keep 24p, blend 24p→30p keep 30p || no handling || Handling of mixed film/video material (modes 0/1, CycleR 1; Cycle and CycleR are then fixed at 5 and 1).&lt;br /&gt;
|-&lt;br /&gt;
| VidDetect / ConCycle || vidDetect, conCycle || A … A and (B or C) / 1 – 2 || A and B / 1 || Tests that mark a cycle as video, and how many cycles in a row must be video (Hybrid handling only).&lt;br /&gt;
|-&lt;br /&gt;
| SDLim || sdlim || −10 – 10 || 0 || Minimum distance between two dropped frames (CycleR above 1).&lt;br /&gt;
|-&lt;br /&gt;
| DupThresh || dupThresh || 0 – 100 || 1.1 (mode 1), 0.4 (mode 7) || Difference in percent below which a frame counts as a duplicate; used in modes 1 and 7 and always written there. Changing the mode sets the plugin&#039;s default for that mode.&lt;br /&gt;
|-&lt;br /&gt;
| VidThresh || vidThresh || 0 – 100 || 1.1 (3.5 in mode 7) || Difference above which a frame counts as video (mode 7 and Hybrid handling).&lt;br /&gt;
|-&lt;br /&gt;
| SceneThresh || sceneThresh || 0 – 100 || 15 || Difference that counts as a scene change (mode 7 and Hybrid handling).&lt;br /&gt;
|-&lt;br /&gt;
| Rate || rate || fraction || 24000/1001 || Target frame rate (modes 2/7).&lt;br /&gt;
|-&lt;br /&gt;
| Max ndl || maxndl || 0 – 99 || 0 || Largest number of non-duplicates in a row (mode 2; 0 = not written, the plugin decides).&lt;br /&gt;
|-&lt;br /&gt;
| m2PA || m2PA || on/off || off || Mode 2 analyzes the whole cycle ahead; slow at cycle starts.&lt;br /&gt;
|-&lt;br /&gt;
| Duplicate thresh (check box + value) || nt || 0 – 10 || off, 0 || Noise threshold: differences below it are ignored when frames are compared.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y), Chroma, Denoise, SSD, Display || blockx/blocky, chroma, denoise, ssd, display || – || 32/32, on, off, off, off || Metric block size, chroma in the metrics, denoising before the metrics, squared differences, and printing the metrics onto the frame.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Other groups ===&lt;br /&gt;
* &#039;&#039;&#039;Fix Telecined Fades&#039;&#039;&#039;: a separate group with its own settings, see [[Vapoursynth Fix Telecined Fades|Fix Telecined Fades]].&lt;br /&gt;
* &#039;&#039;&#039;Tools&#039;&#039;&#039;: implementations for the QTGMC or NNEDI3 helper clip.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
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;
# Deinterlacing using TIVTC&lt;br /&gt;
clip = core.tivtc.TFM(clip, scthresh=12.00, cthresh=9)&lt;br /&gt;
clip = core.tivtc.TDecimate(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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Field order: TFM reads it from the field order property Hybrid sets after the source (detected scan type or [[Overwrite input scan type]]). The NNEDI3 helper uses the same order; the QTGMC helper runs at the source rate.&lt;br /&gt;
* Decimation and frame rate: modes 0/1 give input rate × (Cycle − CycleR) / Cycle (29.97 → 23.976 fps with 5/1); &amp;quot;blend 30p→24p&amp;quot; gives 4/5 of the input rate, &amp;quot;blend 24p→30p&amp;quot; keeps the input rate; modes 2/7 give the Rate fraction, which Hybrid also sets exactly on the output.&lt;br /&gt;
* Afterwards the clip counts as progressive.&lt;br /&gt;
* Works on 8–16-bit YUV 4:2:0, 4:2:2 and 4:4:4; RGB is converted to YUV 4:4:4 first. Thresholds are on the 8-bit scale or percentages and do not need bit-depth scaling.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
TIVTC is tritical&#039;s AviSynth package; the VapourSynth plugin is dubhater&#039;s port. In the port TFM takes the field order from the clip&#039;s frame property and stops with an error if it is missing. For the TDecimate options see also [[Vapoursynth TDecimate|TDecimate]]; VapourSynth&#039;s own derivative is [[Vapoursynth VIVTC|VIVTC]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-tivtc vapoursynth-tivtc README]&lt;br /&gt;
* [https://github.com/pinterf/TIVTC TIVTC (AviSynth) documentation]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_TIVTC&amp;diff=759</id>
		<title>Vapoursynth TIVTC</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_TIVTC&amp;diff=759"/>
		<updated>2026-11-16T10:13:07Z</updated>

		<summary type="html">&lt;p&gt;Selur: TFM defaults now match the plugin (9 / 12) (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;TIVTC&#039;&#039;&#039; is the inverse telecine pair TFM + TDecimate: TFM matches fields to rebuild the progressive frames of telecined video, TDecimate then removes the duplicates (one in five for NTSC film, or down to any target rate). It can also handle sources that mix film and video.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Inverse telecine&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_TIVTC.png|none|TIVTC controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For every frame TFM picks the field pairing with the least combing; frames that stay combed are post-processed (deinterlaced), either by TFM itself or with frames from a helper deinterlacer. TDecimate compares neighboring frames and drops the most similar ones per cycle, or decimates to an arbitrary rate. Both filters are also available on their own: [[Vapoursynth TFM|TFM]] and [[Vapoursynth TDecimate|TDecimate]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
The page has the tabs Base, Advanced and Misc. Options are only written when they differ from Hybrid&#039;s defaults unless noted.&lt;br /&gt;
&lt;br /&gt;
=== TFM ===&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;
| Deinterlacer || clip2 || inner, QTGMC fast / medium / slow / Very Slow, nnedi3 || inner || Source of the replacement frames for combed frames: TFM&#039;s own post-processing, or a same-rate [[Vapoursynth QTGMC|QTGMC]] or NNEDI3 clip.&lt;br /&gt;
|-&lt;br /&gt;
| Mode || mode || 0 – 7 || 1 (2-way match + 3rd match on combed) || Which matches are tried; higher modes try more and are more aggressive.&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, 5–7 = motion-adaptive blend / cubic / ELA.&lt;br /&gt;
|-&lt;br /&gt;
| MThresh || mthresh || 0 – 100 || 5 || Motion threshold of the motion-adaptive post-processing (PP 5–7).&lt;br /&gt;
|-&lt;br /&gt;
| FM Speed || slow || normal, slower, slowest || slower || Speed and accuracy of the match metric.&lt;br /&gt;
|-&lt;br /&gt;
| MChroma || mChroma || on/off || on || Include chroma in the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Mic match || micmatching || 0 – 3 || 1 || How the combing values (mics) are used to override match decisions.&lt;br /&gt;
|-&lt;br /&gt;
| Scene threshold || scthresh || 0 – 100 || 12 || Scene change threshold in percent (the plugin default); always written.&lt;br /&gt;
|-&lt;br /&gt;
| U/B, Mic match (sco) || ubsco, mmsco || on/off || on / on || When on, u/b matches and mic-based match changes are only used at scene changes.&lt;br /&gt;
|-&lt;br /&gt;
| y0 / y1 || y0, y1 || 0 – 8192 || 0 / 0 || Rows excluded from the match decision (e.g. subtitles); off when equal.&lt;br /&gt;
|-&lt;br /&gt;
| Metric || metric || 0 – 1 || 0 || Combing metric.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || 4 – 2048 || 16 / 16 || Block size of the combed-frame detection.&lt;br /&gt;
|-&lt;br /&gt;
| Comb threshold || cthresh || −1 – 255 || 9 || Combing threshold (8-bit scale, the plugin default); always written.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma || chroma || on/off || off || Include chroma in the combed-frame detection.&lt;br /&gt;
|-&lt;br /&gt;
| MI || MI || up to Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TDecimate ===&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, 1, 2, 7 || 0 || 0: drop the most similar frames per cycle; 1: drop from the longest duplicate runs; 2: arbitrary rate; 7: arbitrary rate by thresholds.&lt;br /&gt;
|-&lt;br /&gt;
| Cycle / CycleR || cycle, cycleR || 2 – 100 / 1 – 50 || 5 / 1 || Per Cycle frames, CycleR frames are dropped (modes 0/1).&lt;br /&gt;
|-&lt;br /&gt;
| Hybrid || hybrid || no handling, blend 30p→24p keep 24p, blend 24p→30p keep 30p || no handling || Handling of mixed film/video material (modes 0/1, CycleR 1; Cycle and CycleR are then fixed at 5 and 1).&lt;br /&gt;
|-&lt;br /&gt;
| VidDetect / ConCycle || vidDetect, conCycle || A … A and (B or C) / 1 – 2 || A and B / 1 || Tests that mark a cycle as video, and how many cycles in a row must be video (Hybrid handling only).&lt;br /&gt;
|-&lt;br /&gt;
| SDLim || sdlim || −10 – 10 || 0 || Minimum distance between two dropped frames (CycleR above 1).&lt;br /&gt;
|-&lt;br /&gt;
| DupThresh || dupThresh || 0 – 100 || 1.1 (mode 1), 0.4 (mode 7) || Difference in percent below which a frame counts as a duplicate; used in modes 1 and 7 and always written there. Changing the mode sets the plugin&#039;s default for that mode.&lt;br /&gt;
|-&lt;br /&gt;
| VidThresh || vidThresh || 0 – 100 || 1.1 (3.5 in mode 7) || Difference above which a frame counts as video (mode 7 and Hybrid handling).&lt;br /&gt;
|-&lt;br /&gt;
| SceneThresh || sceneThresh || 0 – 100 || 15 || Difference that counts as a scene change (mode 7 and Hybrid handling).&lt;br /&gt;
|-&lt;br /&gt;
| Rate || rate || fraction || 24000/1001 || Target frame rate (modes 2/7).&lt;br /&gt;
|-&lt;br /&gt;
| Max ndl || maxndl || 0 – 99 || 0 || Largest number of non-duplicates in a row (mode 2; 0 = not written, the plugin decides).&lt;br /&gt;
|-&lt;br /&gt;
| m2PA || m2PA || on/off || off || Mode 2 analyzes the whole cycle ahead; slow at cycle starts.&lt;br /&gt;
|-&lt;br /&gt;
| Duplicate thresh (check box + value) || nt || 0 – 10 || off, 0 || Noise threshold: differences below it are ignored when frames are compared.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y), Chroma, Denoise, SSD, Display || blockx/blocky, chroma, denoise, ssd, display || – || 32/32, on, off, off, off || Metric block size, chroma in the metrics, denoising before the metrics, squared differences, and printing the metrics onto the frame.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Other groups ===&lt;br /&gt;
* &#039;&#039;&#039;Fix Telecined Fades&#039;&#039;&#039;: a separate group with its own settings, see [[Vapoursynth Fix Telecined Fades|Fix Telecined Fades]].&lt;br /&gt;
* &#039;&#039;&#039;Tools&#039;&#039;&#039;: implementations for the QTGMC or NNEDI3 helper clip.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
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;
# Deinterlacing using TIVTC&lt;br /&gt;
clip = core.tivtc.TFM(clip, scthresh=19.00, cthresh=5)&lt;br /&gt;
clip = core.tivtc.TDecimate(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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Field order: TFM reads it from the field order property Hybrid sets after the source (detected scan type or [[Overwrite input scan type]]). The NNEDI3 helper uses the same order; the QTGMC helper runs at the source rate.&lt;br /&gt;
* Decimation and frame rate: modes 0/1 give input rate × (Cycle − CycleR) / Cycle (29.97 → 23.976 fps with 5/1); &amp;quot;blend 30p→24p&amp;quot; gives 4/5 of the input rate, &amp;quot;blend 24p→30p&amp;quot; keeps the input rate; modes 2/7 give the Rate fraction, which Hybrid also sets exactly on the output.&lt;br /&gt;
* Afterwards the clip counts as progressive.&lt;br /&gt;
* Works on 8–16-bit YUV 4:2:0, 4:2:2 and 4:4:4; RGB is converted to YUV 4:4:4 first. Thresholds are on the 8-bit scale or percentages and do not need bit-depth scaling.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
TIVTC is tritical&#039;s AviSynth package; the VapourSynth plugin is dubhater&#039;s port. In the port TFM takes the field order from the clip&#039;s frame property and stops with an error if it is missing. For the TDecimate options see also [[Vapoursynth TDecimate|TDecimate]]; VapourSynth&#039;s own derivative is [[Vapoursynth VIVTC|VIVTC]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-tivtc vapoursynth-tivtc README]&lt;br /&gt;
* [https://github.com/pinterf/TIVTC TIVTC (AviSynth) documentation]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_TIVTC&amp;diff=758</id>
		<title>Vapoursynth TIVTC</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_TIVTC&amp;diff=758"/>
		<updated>2026-11-16T10:13:05Z</updated>

		<summary type="html">&lt;p&gt;Selur: TFM defaults now match the plugin (9 / 12) (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;TIVTC&#039;&#039;&#039; is the inverse telecine pair TFM + TDecimate: TFM matches fields to rebuild the progressive frames of telecined video, TDecimate then removes the duplicates (one in five for NTSC film, or down to any target rate). It can also handle sources that mix film and video.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Inverse telecine&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_TIVTC.png|none|TIVTC controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For every frame TFM picks the field pairing with the least combing; frames that stay combed are post-processed (deinterlaced), either by TFM itself or with frames from a helper deinterlacer. TDecimate compares neighboring frames and drops the most similar ones per cycle, or decimates to an arbitrary rate. Both filters are also available on their own: [[Vapoursynth TFM|TFM]] and [[Vapoursynth TDecimate|TDecimate]].&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
The page has the tabs Base, Advanced and Misc. Options are only written when they differ from Hybrid&#039;s defaults unless noted.&lt;br /&gt;
&lt;br /&gt;
=== TFM ===&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;
| Deinterlacer || clip2 || inner, QTGMC fast / medium / slow / Very Slow, nnedi3 || inner || Source of the replacement frames for combed frames: TFM&#039;s own post-processing, or a same-rate [[Vapoursynth QTGMC|QTGMC]] or NNEDI3 clip.&lt;br /&gt;
|-&lt;br /&gt;
| Mode || mode || 0 – 7 || 1 (2-way match + 3rd match on combed) || Which matches are tried; higher modes try more and are more aggressive.&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, 5–7 = motion-adaptive blend / cubic / ELA.&lt;br /&gt;
|-&lt;br /&gt;
| MThresh || mthresh || 0 – 100 || 5 || Motion threshold of the motion-adaptive post-processing (PP 5–7).&lt;br /&gt;
|-&lt;br /&gt;
| FM Speed || slow || normal, slower, slowest || slower || Speed and accuracy of the match metric.&lt;br /&gt;
|-&lt;br /&gt;
| MChroma || mChroma || on/off || on || Include chroma in the match decision.&lt;br /&gt;
|-&lt;br /&gt;
| Mic match || micmatching || 0 – 3 || 1 || How the combing values (mics) are used to override match decisions.&lt;br /&gt;
|-&lt;br /&gt;
| Scene threshold || scthresh || 0 – 100 || 12 || Scene change threshold in percent (the plugin default); always written.&lt;br /&gt;
|-&lt;br /&gt;
| U/B, Mic match (sco) || ubsco, mmsco || on/off || on / on || When on, u/b matches and mic-based match changes are only used at scene changes.&lt;br /&gt;
|-&lt;br /&gt;
| y0 / y1 || y0, y1 || 0 – 8192 || 0 / 0 || Rows excluded from the match decision (e.g. subtitles); off when equal.&lt;br /&gt;
|-&lt;br /&gt;
| Metric || metric || 0 – 1 || 0 || Combing metric.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y) || blockx / blocky || 4 – 2048 || 16 / 16 || Block size of the combed-frame detection.&lt;br /&gt;
|-&lt;br /&gt;
| Chroma threshold || cthresh || −1 – 255 || 5 || Combing threshold (8-bit scale), not a chroma setting; always written (plugin default 9).&lt;br /&gt;
|-&lt;br /&gt;
| Chroma || chroma || on/off || off || Include chroma in the combed-frame detection.&lt;br /&gt;
|-&lt;br /&gt;
| MI || MI || up to Block X × Block Y || 80 || Combed pixels in one block above which a frame counts as combed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== TDecimate ===&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, 1, 2, 7 || 0 || 0: drop the most similar frames per cycle; 1: drop from the longest duplicate runs; 2: arbitrary rate; 7: arbitrary rate by thresholds.&lt;br /&gt;
|-&lt;br /&gt;
| Cycle / CycleR || cycle, cycleR || 2 – 100 / 1 – 50 || 5 / 1 || Per Cycle frames, CycleR frames are dropped (modes 0/1).&lt;br /&gt;
|-&lt;br /&gt;
| Hybrid || hybrid || no handling, blend 30p→24p keep 24p, blend 24p→30p keep 30p || no handling || Handling of mixed film/video material (modes 0/1, CycleR 1; Cycle and CycleR are then fixed at 5 and 1).&lt;br /&gt;
|-&lt;br /&gt;
| VidDetect / ConCycle || vidDetect, conCycle || A … A and (B or C) / 1 – 2 || A and B / 1 || Tests that mark a cycle as video, and how many cycles in a row must be video (Hybrid handling only).&lt;br /&gt;
|-&lt;br /&gt;
| SDLim || sdlim || −10 – 10 || 0 || Minimum distance between two dropped frames (CycleR above 1).&lt;br /&gt;
|-&lt;br /&gt;
| DupThresh || dupThresh || 0 – 100 || 1.1 (mode 1), 0.4 (mode 7) || Difference in percent below which a frame counts as a duplicate; used in modes 1 and 7 and always written there. Changing the mode sets the plugin&#039;s default for that mode.&lt;br /&gt;
|-&lt;br /&gt;
| VidThresh || vidThresh || 0 – 100 || 1.1 (3.5 in mode 7) || Difference above which a frame counts as video (mode 7 and Hybrid handling).&lt;br /&gt;
|-&lt;br /&gt;
| SceneThresh || sceneThresh || 0 – 100 || 15 || Difference that counts as a scene change (mode 7 and Hybrid handling).&lt;br /&gt;
|-&lt;br /&gt;
| Rate || rate || fraction || 24000/1001 || Target frame rate (modes 2/7).&lt;br /&gt;
|-&lt;br /&gt;
| Max ndl || maxndl || 0 – 99 || 0 || Largest number of non-duplicates in a row (mode 2; 0 = not written, the plugin decides).&lt;br /&gt;
|-&lt;br /&gt;
| m2PA || m2PA || on/off || off || Mode 2 analyzes the whole cycle ahead; slow at cycle starts.&lt;br /&gt;
|-&lt;br /&gt;
| Duplicate thresh (check box + value) || nt || 0 – 10 || off, 0 || Noise threshold: differences below it are ignored when frames are compared.&lt;br /&gt;
|-&lt;br /&gt;
| Block (X/Y), Chroma, Denoise, SSD, Display || blockx/blocky, chroma, denoise, ssd, display || – || 32/32, on, off, off, off || Metric block size, chroma in the metrics, denoising before the metrics, squared differences, and printing the metrics onto the frame.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Other groups ===&lt;br /&gt;
* &#039;&#039;&#039;Fix Telecined Fades&#039;&#039;&#039;: a separate group with its own settings, see [[Vapoursynth Fix Telecined Fades|Fix Telecined Fades]].&lt;br /&gt;
* &#039;&#039;&#039;Tools&#039;&#039;&#039;: implementations for the QTGMC or NNEDI3 helper clip.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
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;
# Deinterlacing using TIVTC&lt;br /&gt;
clip = core.tivtc.TFM(clip, scthresh=19.00, cthresh=5)&lt;br /&gt;
clip = core.tivtc.TDecimate(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;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* Field order: TFM reads it from the field order property Hybrid sets after the source (detected scan type or [[Overwrite input scan type]]). The NNEDI3 helper uses the same order; the QTGMC helper runs at the source rate.&lt;br /&gt;
* Decimation and frame rate: modes 0/1 give input rate × (Cycle − CycleR) / Cycle (29.97 → 23.976 fps with 5/1); &amp;quot;blend 30p→24p&amp;quot; gives 4/5 of the input rate, &amp;quot;blend 24p→30p&amp;quot; keeps the input rate; modes 2/7 give the Rate fraction, which Hybrid also sets exactly on the output.&lt;br /&gt;
* Afterwards the clip counts as progressive.&lt;br /&gt;
* Works on 8–16-bit YUV 4:2:0, 4:2:2 and 4:4:4; RGB is converted to YUV 4:4:4 first. Thresholds are on the 8-bit scale or percentages and do not need bit-depth scaling.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
TIVTC is tritical&#039;s AviSynth package; the VapourSynth plugin is dubhater&#039;s port. In the port TFM takes the field order from the clip&#039;s frame property and stops with an error if it is missing. For the TDecimate options see also [[Vapoursynth TDecimate|TDecimate]]; VapourSynth&#039;s own derivative is [[Vapoursynth VIVTC|VIVTC]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/dubhater/vapoursynth-tivtc vapoursynth-tivtc README]&lt;br /&gt;
* [https://github.com/pinterf/TIVTC TIVTC (AviSynth) documentation]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Overwrite_input_scan_type&amp;diff=757</id>
		<title>Overwrite input scan type</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Overwrite_input_scan_type&amp;diff=757"/>
		<updated>2026-11-16T09:12:26Z</updated>

		<summary type="html">&lt;p&gt;Selur: New page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;Overwrite input scan type&#039;&#039;&#039; replaces the scan type Hybrid detected for the source (progressive, top or bottom field first, telecine, …) with the one you choose. Use it when the stream headers and Hybrid&#039;s interlace analysis get the source wrong.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Overwrite input scan type to&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Overwrite_input_scan_type.png|none|Overwrite input scan type controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Hybrid reads the scan type from the stream headers, or from its own interlace analysis (&#039;&#039;Analyse&#039;&#039; button, which checks the given percentage of the source). The result is shown next to &#039;&#039;Input scan type&#039;&#039;. Many sources are flagged wrong: interlaced video stored as progressive, progressive video flagged as interlaced, or the wrong field order.&lt;br /&gt;
&lt;br /&gt;
With &#039;&#039;Overwrite input scan type to&#039;&#039; checked, the chosen value is the truth for Hybrid. It is not questioned: the script, the deinterlacing or inverse telecine, the field order given to filters, the output frame rate and frame count, and whether the input counts as interlaced all follow the overwritten value. This applies to the Vapoursynth and the AviSynth branch, and to ffmpeg filtering without either.&lt;br /&gt;
&lt;br /&gt;
== Settings ==&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Control !! Range / values !! Hybrid default !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| Overwrite input scan type to || on/off || off || Use the selected scan type instead of the detected one. While it is on, the &#039;&#039;Analyse&#039;&#039; button is disabled and a previous analysis result is discarded.&lt;br /&gt;
|-&lt;br /&gt;
| Scan type || progressive, bottom field first, top field first, telecine, mixed, field-shifted, field-shifted (NTSC from PAL), field-shifted (PAL from NTSC), telecine (soft) || progressive || The scan type Hybrid assumes for the input. Only available with the check box on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
When the scan type changes, Hybrid adapts the deinterlacer selection (unless it is set to &#039;&#039;none&#039;&#039;):&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Scan type !! Hybrid&#039;s handling&lt;br /&gt;
|-&lt;br /&gt;
| progressive || No deinterlacing. [[Interlace]] (progressive to interlaced) becomes available.&lt;br /&gt;
|-&lt;br /&gt;
| top field first, bottom field first || Interlaced: deinterlace (Vapoursynth: [[Vapoursynth QTGMC|QTGMC]] unless another Vapoursynth deinterlacer is selected; AviSynth: QTGMC). The field order is passed to the deinterlacer.&lt;br /&gt;
|-&lt;br /&gt;
| telecine || Inverse telecine (Vapoursynth: [[Vapoursynth TIVTC|TIVTC]] with a cycle of 5, unless [[Vapoursynth IT|IT]], TIVTC or [[Vapoursynth VIVTC|VIVTC]] is selected; AviSynth: TIVTC). At an input rate of 23.9–24 fps no inverse telecine is set.&lt;br /&gt;
|-&lt;br /&gt;
| mixed || Treated as interlaced; Hybrid notes that sRestore can help against ghosting.&lt;br /&gt;
|-&lt;br /&gt;
| field-shifted || No deinterlacer; field matching only ([[Vapoursynth TFM|TFM]]).&lt;br /&gt;
|-&lt;br /&gt;
| field-shifted (NTSC from PAL) || No deinterlacer; field matching plus sRestore to 25 fps.&lt;br /&gt;
|-&lt;br /&gt;
| field-shifted (PAL from NTSC) || No deinterlacer; field matching plus sRestore (Vapoursynth: to 23.976 fps).&lt;br /&gt;
|-&lt;br /&gt;
| telecine (soft) || Normally the source filter already removes soft telecine; Hybrid still selects inverse telecine as for telecine (TIVTC).&lt;br /&gt;
|}&lt;br /&gt;
Without Vapoursynth or AviSynth, Hybrid chooses from the ffmpeg and encoder deinterlacers instead.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
A PAL DVD clip (720x576, 25 fps) detected as top field first, deinterlaced with QTGMC (Preset Fast, tools list shortened):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# making sure the detected scan type is set (detected: top field first)&lt;br /&gt;
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_TOP) # scan type: top field first&lt;br /&gt;
# Deinterlacing using QTGMC&lt;br /&gt;
clip = qtgmc.QTGMC(clip, Preset=&amp;quot;Fast&amp;quot;, TFF=True, tools={…}) # new fps: 50&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The same clip with &#039;&#039;Overwrite input scan type to&#039;&#039; set to &#039;&#039;bottom field first&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# making sure the detected scan type is set (detected: bottom field first)&lt;br /&gt;
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_BOTTOM) # scan type: bottom field first&lt;br /&gt;
# Deinterlacing using QTGMC&lt;br /&gt;
clip = qtgmc.QTGMC(clip, Preset=&amp;quot;Fast&amp;quot;, TFF=False, tools={…}) # new fps: 50&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Set to &#039;&#039;progressive&#039;&#039;, Hybrid only marks the clip as progressive and writes no deinterlacer; the output keeps 25 fps:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# making sure the detected scan type is set (detected: progressive)&lt;br /&gt;
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid uses it ==&lt;br /&gt;
* The script marks the clip with the overwritten scan type (&amp;lt;code&amp;gt;_FieldBased&amp;lt;/code&amp;gt; in Vapoursynth) right after the source filter.&lt;br /&gt;
* Every filter that needs the field order gets the overwritten one: deinterlacers and field matchers (e.g. [[Vapoursynth QTGMC|QTGMC]], [[Vapoursynth QTempGaussMC|QTempGaussMC]], [[Vapoursynth VFM|VFM]], [[Vapoursynth TFM|TFM]], [[Vapoursynth IT|IT]], DDD, [[Vapoursynth DGDecNV Deinterlace|DGDecNV]], [[Vapoursynth Fix combed with deinterlacer|FixCombed]]) and filters that bob interlaced material internally (e.g. the QTGMC and QTempGaussMC denoisers, BlindDeHalo3). Without Vapoursynth or AviSynth, ffmpeg&#039;s yadif gets it as well.&lt;br /&gt;
* Output frame rate and frame count are calculated from the overwritten scan type (e.g. a bobbing deinterlacer doubles the rate only for interlaced input).&lt;br /&gt;
* Whether the input counts as interlaced follows the overwritten value; with video passthrough the output is flagged interlaced or progressive accordingly.&lt;br /&gt;
* Interlaced source, overwritten to progressive, with interlaced output set in the encoder: Hybrid treats the source as progressive and interlaces it again at half the frame rate and count (e.g. 331 → 166 frames). This is intended; the overwrite is taken as correct.&lt;br /&gt;
* Selecting &#039;&#039;none&#039;&#039; as deinterlacer sets the overwrite to progressive and locks the controls.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
* Hybrid&#039;s behavior in the (De-)Interlace/Telecine tab&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Interlace&amp;diff=756</id>
		<title>Interlace</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Interlace&amp;diff=756"/>
		<updated>2026-11-16T09:12:25Z</updated>

		<summary type="html">&lt;p&gt;Selur: New page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&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;
&#039;&#039;&#039;Interlace&#039;&#039;&#039; turns progressive video into interlaced video with top or bottom field first, e.g. 50p into 25i. An optional prefilter (BBC R&amp;amp;D White Paper WHP 315) suppresses line twitter and interlacing aliases.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Filtering → (De-)Interlace/Telecine → Interlace&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Interlace.png|none|Interlace controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
Two progressive frames become one interlaced frame: the first frame (in time) gives one field, the second gives the other. The frame rate and frame count are halved, so 50 progressive frames per second become 25 interlaced frames (50 fields) per second. &#039;&#039;top field first&#039;&#039; takes the top field from the first frame, &#039;&#039;bottom field first&#039;&#039; the bottom field.&lt;br /&gt;
&lt;br /&gt;
Weaving fields from progressive frames without filtering leaves fine vertical detail that flickers on interlaced displays (line twitter) and shows aliasing. With &#039;&#039;Prefilter&#039;&#039; on, a vertical-temporal low-pass filter (19 lines × 5 frames) is applied before the lines are dropped. The filter is shaped by measurements of how sensitive people are to interlacing artifacts, so it removes the visible artifacts while keeping as much detail as possible.&lt;br /&gt;
&lt;br /&gt;
The feature works in the Vapoursynth and the AviSynth branch. Both use the same interlace plugin.&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;
| Interlace || – || on/off || off || Convert the progressive input to interlaced output. Only available when the input scan type is progressive (detected or set with [[Overwrite input scan type]]).&lt;br /&gt;
|-&lt;br /&gt;
| Field order || tff || top field first, bottom field first || top field first || Field order of the output. Only available with Interlace on.&lt;br /&gt;
|-&lt;br /&gt;
| Prefilter || filter || on/off || on || Apply the WHP 315 vertical-temporal low-pass before the fields are woven. Off: the fields are woven without filtering. Available with Interlace on, or when progressive input is encoded as interlaced output.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings (top field first, Prefilter on) on a progressive 10-bit YUV 4:2:0 source (640x356, 25 fps, 429 frames); the result has 215 frames at 12.5 fps:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# making sure the detected scan type is set (detected: progressive)&lt;br /&gt;
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # scan type: progressive&lt;br /&gt;
# converting full-height progressive to interlaced (top field first)  for &#039;progressive to interlaced&#039;&lt;br /&gt;
clip = misc.Interlace(clip, tff=True, prefilter=True)&lt;br /&gt;
# set output frame rate to 12.5fps (top field first)&lt;br /&gt;
clip = core.std.AssumeFPS(clip=clip, fpsnum=12000, fpsden=960)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
With bottom field first and Prefilter off the line is &amp;lt;code&amp;gt;clip = misc.Interlace(clip, tff=False, prefilter=False)&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== How Hybrid uses it ==&lt;br /&gt;
* Vapoursynth: the conversion is the last step of the filter chain, after all filters and resizing. &amp;lt;code&amp;gt;misc.Interlace&amp;lt;/code&amp;gt; calls the interlace plugin (&amp;lt;code&amp;gt;core.interlace.Interlace(clip, tff, filter)&amp;lt;/code&amp;gt;); if the plugin is not loaded, it weaves the fields with core functions and cannot prefilter.&lt;br /&gt;
* AviSynth: with Prefilter on, Hybrid writes &amp;lt;code&amp;gt;Interlace(tff=…, filter=true)&amp;lt;/code&amp;gt;; with Prefilter off, a &amp;lt;code&amp;gt;SeparateFields().SelectEvery(4, …).Weave()&amp;lt;/code&amp;gt; line.&lt;br /&gt;
* With an odd frame count the last frame is repeated, so the output has half the frames rounded up (Vapoursynth, and AviSynth with Prefilter).&lt;br /&gt;
* The encoder gets the chosen field order; x264, for example, encodes with &amp;lt;code&amp;gt;--tff&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;--bff&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Progressive input with interlaced output set in the encoder is also interlaced at half rate (top field first); the Prefilter setting applies there too.&lt;br /&gt;
* The prefilter is only used for real progressive-to-interlaced conversion. When Hybrid bobs an interlaced source only so that a filter that needs progressive input can run (&#039;&#039;Filter interlace handling&#039;&#039;) and the output stays interlaced, the original fields are woven back without the prefilter, because filtering there would change the original fields.&lt;br /&gt;
* Without Vapoursynth or AviSynth, ffmpeg&#039;s own &amp;lt;code&amp;gt;interlace&amp;lt;/code&amp;gt; filter does the conversion; the Prefilter control has no effect there.&lt;br /&gt;
* Interlace does no spatial scaling; the video must be resized while it is still progressive. In the Vapoursynth branch this is always the case, because the conversion comes after resizing.&lt;br /&gt;
* The plugin works on 8–16-bit integer and 16/32-bit float formats. Each plane height must be even, so 4:2:0 needs a height divisible by 4. It needs at least 2 frames.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== BBC WHP 315 ===&lt;br /&gt;
BBC R&amp;amp;D White Paper WHP 315 (K. C. Noland, &amp;quot;Optimal Interlacing using Human Sensitivity Measurements&amp;quot;, 2016) describes a perceptually optimal interlacing filter: a linear vertical-temporal low-pass applied to the progressive frames before alternate lines are dropped. Its pass-band follows the measured human sensitivity to interlacing aliases from WHP 230. The interlace plugin implements it with the same filter on all planes and no timing shift between luma and chroma. For 4:2:0 it also moves the chroma to the sample positions interlaced 4:2:0 uses, based on the clip&#039;s chroma location.&lt;br /&gt;
&lt;br /&gt;
=== Related ===&lt;br /&gt;
To go the other way (interlaced to progressive) see the deinterlacers, e.g. [[Vapoursynth QTGMC]] or [[Vapoursynth BWDIF]]. If the input is detected with the wrong scan type, set it with [[Overwrite input scan type]].&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/ifb/vapoursynth-interlace vapoursynth-interlace README]&lt;br /&gt;
* [https://www.bbc.co.uk/rd/publications/whitepaper315 BBC R&amp;amp;D White Paper WHP 315]&lt;br /&gt;
* Hybrid&#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Overwrite_input_scan_type.png&amp;diff=755</id>
		<title>File:Overwrite input scan type.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Overwrite_input_scan_type.png&amp;diff=755"/>
		<updated>2026-11-16T09:11:52Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Overwrite input scan type controls in Hybrid (Filtering → (De-)Interlace/Telecine).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Interlace.png&amp;diff=754</id>
		<title>File:Interlace.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Interlace.png&amp;diff=754"/>
		<updated>2026-11-16T09:11:51Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Interlace controls in Hybrid (Filtering → (De-)Interlace/Telecine).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_sRestore.png&amp;diff=753</id>
		<title>File:Vapoursynth sRestore.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_sRestore.png&amp;diff=753"/>
		<updated>2026-11-16T08:59:30Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth sRestore.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;sRestore controls in Hybrid (Filtering → Vapoursynth → Frame → Deblend).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_VSGANResize.png&amp;diff=752</id>
		<title>File:Vapoursynth VSGANResize.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_VSGANResize.png&amp;diff=752"/>
		<updated>2026-11-16T08:59:29Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth VSGANResize.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VSGAN controls in Hybrid (Filtering → Vapoursynth → Frame → Resize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_VHSClean.png&amp;diff=751</id>
		<title>File:Vapoursynth VHSClean.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_VHSClean.png&amp;diff=751"/>
		<updated>2026-11-16T08:59:28Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth VHSClean.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VHSClean controls in Hybrid (Filtering → Vapoursynth → Artifacts).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_TDecimate.png&amp;diff=750</id>
		<title>File:Vapoursynth TDecimate.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_TDecimate.png&amp;diff=750"/>
		<updated>2026-11-16T08:59:28Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth TDecimate.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TDecimate controls in Hybrid (Filtering → Vapoursynth → Frame → Reduction).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_SwinIRResizeMlrt.png&amp;diff=749</id>
		<title>File:Vapoursynth SwinIRResizeMlrt.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_SwinIRResizeMlrt.png&amp;diff=749"/>
		<updated>2026-11-16T08:59:27Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth SwinIRResizeMlrt.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SwinIR (mlrt) controls in Hybrid (Filtering → Vapoursynth → Frame → Resize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_SpotLess.png&amp;diff=748</id>
		<title>File:Vapoursynth SpotLess.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_SpotLess.png&amp;diff=748"/>
		<updated>2026-11-16T08:59:26Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth SpotLess.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SpotLess controls in Hybrid (Filtering → Vapoursynth → Artifacts).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_SRMD.png&amp;diff=747</id>
		<title>File:Vapoursynth SRMD.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_SRMD.png&amp;diff=747"/>
		<updated>2026-11-16T08:59:25Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth SRMD.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;SRMD controls in Hybrid (Filtering → Vapoursynth → Frame → Resize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_RemoveGrain.png&amp;diff=746</id>
		<title>File:Vapoursynth RemoveGrain.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_RemoveGrain.png&amp;diff=746"/>
		<updated>2026-11-16T08:59:24Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth RemoveGrain.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RemoveGrain controls in Hybrid (Filtering → Vapoursynth → DeGrain).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_ReduceFlicker.png&amp;diff=745</id>
		<title>File:Vapoursynth ReduceFlicker.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_ReduceFlicker.png&amp;diff=745"/>
		<updated>2026-11-16T08:59:23Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth ReduceFlicker.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReduceFlicker controls in Hybrid (Filtering → Vapoursynth → Frame → Stabilize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_RealESRGANResize.png&amp;diff=744</id>
		<title>File:Vapoursynth RealESRGANResize.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_RealESRGANResize.png&amp;diff=744"/>
		<updated>2026-11-16T08:59:23Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth RealESRGANResize.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RealESRGAN controls in Hybrid (Filtering → Vapoursynth → Frame → Resize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_RealCUGAN.png&amp;diff=743</id>
		<title>File:Vapoursynth RealCUGAN.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_RealCUGAN.png&amp;diff=743"/>
		<updated>2026-11-16T08:59:22Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth RealCUGAN.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RealCUGAN controls in Hybrid (Filtering → Vapoursynth → Frame → Resize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_RIFEmlrt.png&amp;diff=742</id>
		<title>File:Vapoursynth RIFEmlrt.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_RIFEmlrt.png&amp;diff=742"/>
		<updated>2026-11-16T08:59:21Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth RIFEmlrt.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;RIFE (mlrt) controls in Hybrid (Filtering → Vapoursynth → Frame → Interpolation).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_MVToolsFPS.png&amp;diff=741</id>
		<title>File:Vapoursynth MVToolsFPS.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_MVToolsFPS.png&amp;diff=741"/>
		<updated>2026-11-16T08:59:20Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth MVToolsFPS.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;MVToolsFPS controls in Hybrid (Filtering → Vapoursynth → Frame → Interpolation).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_LSFmod.png&amp;diff=740</id>
		<title>File:Vapoursynth LSFmod.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_LSFmod.png&amp;diff=740"/>
		<updated>2026-11-16T08:59:19Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth LSFmod.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;LSFmod controls in Hybrid (Filtering → Vapoursynth → Sharpen).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_GradFun3Mod.png&amp;diff=739</id>
		<title>File:Vapoursynth GradFun3Mod.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_GradFun3Mod.png&amp;diff=739"/>
		<updated>2026-11-16T08:59:18Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth GradFun3Mod.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;GradFun3Mod controls in Hybrid (Filtering → Vapoursynth → DeBand).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_GLSLCAS.png&amp;diff=738</id>
		<title>File:Vapoursynth GLSLCAS.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_GLSLCAS.png&amp;diff=738"/>
		<updated>2026-11-16T08:59:17Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth GLSLCAS.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;CAS (GLSL) controls in Hybrid (Filtering → Vapoursynth → Sharpen).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_AntiRing.png&amp;diff=737</id>
		<title>File:Vapoursynth AntiRing.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_AntiRing.png&amp;diff=737"/>
		<updated>2026-11-16T08:59:16Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth AntiRing.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AntiRing controls in Hybrid (Filtering → Vapoursynth → DeRing).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_AnimeSR.png&amp;diff=736</id>
		<title>File:Vapoursynth AnimeSR.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_AnimeSR.png&amp;diff=736"/>
		<updated>2026-11-16T08:59:16Z</updated>

		<summary type="html">&lt;p&gt;Selur: Selur uploaded a new version of File:Vapoursynth AnimeSR.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;AnimeSR controls in Hybrid (Filtering → Vapoursynth → Frame → Resize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_vsMLRT.png&amp;diff=735</id>
		<title>File:Vapoursynth vsMLRT.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_vsMLRT.png&amp;diff=735"/>
		<updated>2026-11-16T08:58:51Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;vsMLRT controls in Hybrid (Filtering → Vapoursynth → Other).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_proToon.png&amp;diff=734</id>
		<title>File:Vapoursynth proToon.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_proToon.png&amp;diff=734"/>
		<updated>2026-11-16T08:58:50Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;proToon controls in Hybrid (Filtering → Vapoursynth → Line).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Vinverse2.png&amp;diff=733</id>
		<title>File:Vapoursynth Vinverse2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Vinverse2.png&amp;diff=733"/>
		<updated>2026-11-16T08:58:49Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Vinverse2 controls in Hybrid (Filtering → Vapoursynth → Frame → Misc).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Vinverse.png&amp;diff=732</id>
		<title>File:Vapoursynth Vinverse.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Vinverse.png&amp;diff=732"/>
		<updated>2026-11-16T08:58:48Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Vinverse controls in Hybrid (Filtering → Vapoursynth → Frame → Misc).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_VSGAN.png&amp;diff=731</id>
		<title>File:Vapoursynth VSGAN.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_VSGAN.png&amp;diff=731"/>
		<updated>2026-11-16T08:58:48Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VSGAN controls in Hybrid (Filtering → Vapoursynth → Other).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_VIVTC.png&amp;diff=730</id>
		<title>File:Vapoursynth VIVTC.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_VIVTC.png&amp;diff=730"/>
		<updated>2026-11-16T08:58:47Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VIVTC controls in Hybrid (Filtering → (De-)Interlace/Telecine → Inverse telecine).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_VFM.png&amp;diff=729</id>
		<title>File:Vapoursynth VFM.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_VFM.png&amp;diff=729"/>
		<updated>2026-11-16T08:58:46Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;VFM controls in Hybrid (Filtering → Vapoursynth → Frame → Misc).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Toon.png&amp;diff=728</id>
		<title>File:Vapoursynth Toon.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Toon.png&amp;diff=728"/>
		<updated>2026-11-16T08:58:45Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Toon controls in Hybrid (Filtering → Vapoursynth → Line).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_Temporalfix.png&amp;diff=727</id>
		<title>File:Vapoursynth Temporalfix.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_Temporalfix.png&amp;diff=727"/>
		<updated>2026-11-16T08:58:45Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Temporalfix controls in Hybrid (Filtering → Vapoursynth → Frame → Stabilize).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_TIVTC.png&amp;diff=726</id>
		<title>File:Vapoursynth TIVTC.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_TIVTC.png&amp;diff=726"/>
		<updated>2026-11-16T08:58:44Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TIVTC controls in Hybrid (Filtering → (De-)Interlace/Telecine → Inverse telecine).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=File:Vapoursynth_TFMBob.png&amp;diff=725</id>
		<title>File:Vapoursynth TFMBob.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=File:Vapoursynth_TFMBob.png&amp;diff=725"/>
		<updated>2026-11-16T08:58:43Z</updated>

		<summary type="html">&lt;p&gt;Selur: Hybrid screenshot (via upload-file on MediaWiki MCP Server)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;TFMBob controls in Hybrid (Filtering → (De-)Interlace/Telecine → Deinterlacer).&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>