<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_SpotLess</id>
	<title>Vapoursynth SpotLess - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.selur.net/index.php?action=history&amp;feed=atom&amp;title=Vapoursynth_SpotLess"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_SpotLess&amp;action=history"/>
	<updated>2026-11-19T04:01:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_SpotLess&amp;diff=633&amp;oldid=prev</id>
		<title>Selur: Update to current Hybrid behaviour; code as &lt;pre&gt; (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_SpotLess&amp;diff=633&amp;oldid=prev"/>
		<updated>2026-11-16T08:52:42Z</updated>

		<summary type="html">&lt;p&gt;Update to current Hybrid behaviour; code as &amp;lt;pre&amp;gt; (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:52, 16 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot;&gt;Line 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| RFilter || rfilter || 0 – 4 || 2 || Reduce filter of the super clip: simple averaging, triangle shifted, triangle, quadratic, cubic.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| RFilter || rfilter || 0 – 4 || 2 || Reduce filter of the super clip: simple averaging, triangle shifted, triangle, quadratic, cubic.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Pel || pel || auto, full, half, quarter || auto || Search precision; auto = &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;half &lt;/del&gt;above 960 pixels width, else &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;full&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Pel || pel || auto, full, half, quarter || auto || Search precision; auto = &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;full &lt;/ins&gt;above 960 pixels width, else &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;half (the script&#039;s own rule)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| SSharp || ssharp || soft, bicubic, sharper || bicubic || Subpixel interpolation; only with half or quarter pel.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| SSharp || ssharp || soft, bicubic, sharper || bicubic || Subpixel interpolation; only with half or quarter pel.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l47&quot;&gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| DeltaRestore || – || on/off || off || Restores wrongly removed moving objects (calls SpotDelta).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| DeltaRestore || – || on/off || off || Restores wrongly removed moving objects (calls SpotDelta).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Dark (ratio/limit) || dark2_brt, dark2_brt_limit || 0.5 – 1, 0.3 – 1 || 0.85 / 0.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;86 &lt;/del&gt;|| Thresholds of the secondary dark mask, as ratios to mid gray.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Dark (ratio/limit) || dark2_brt, dark2_brt_limit || 0.5 – 1, 0.3 – 1 || 0.85 / 0.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;85 &lt;/ins&gt;|| Thresholds of the secondary dark mask, as ratios to mid gray&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. The limit is kept at or below the ratio; above it the secondary dark mask would be empty&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Bright (ratio/expand) || luma_brt, luma_expand || 1.01 – 1.5, 0 – 20 || 1.1 / 3 || Bright mask threshold (lower, e.g. 1.02, keeps more bright fast objects) and mask growth.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| Bright (ratio/expand) || luma_brt, luma_expand || 1.01 – 1.5, 0 – 20 || 1.1 / 3 || Bright mask threshold (lower, e.g. 1.02, keeps more bright fast objects) and mask growth.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot;&gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 72:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Example ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Default settings on a 10-bit YUV 4:2:0 source (machine with a discrete GPU):&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Default settings on a 10-bit YUV 4:2:0 source (machine with a discrete GPU):&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang=&quot;python&quot;&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Spot removal using SpotLess&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# Spot removal using SpotLess&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;clip = SpotLess.SpotLess(clip, asearch=5, truemotion=True, pel=1, tools={&amp;#039;mv&amp;#039;: &amp;#039;mvgpu&amp;#039;, &amp;#039;expr&amp;#039;: &amp;#039;akarin&amp;#039;, &amp;#039;tmedian&amp;#039;: &amp;#039;zsmooth&amp;#039;, &amp;#039;boxblur&amp;#039;: &amp;#039;vszip&amp;#039;, &amp;#039;hysteresis&amp;#039;: &amp;#039;hysteresis&amp;#039;})&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;clip = SpotLess.SpotLess(clip, asearch=5, truemotion=True, pel=1, tools={&amp;#039;mv&amp;#039;: &amp;#039;mvgpu&amp;#039;, &amp;#039;expr&amp;#039;: &amp;#039;akarin&amp;#039;, &amp;#039;tmedian&amp;#039;: &amp;#039;zsmooth&amp;#039;, &amp;#039;boxblur&amp;#039;: &amp;#039;vszip&amp;#039;, &amp;#039;hysteresis&amp;#039;: &amp;#039;hysteresis&amp;#039;})&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;pre&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== How Hybrid calls it ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== How Hybrid calls it ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* SpotLess works on 8 – 16-bit integer YUV and gray clips; other formats are converted first. With DeltaRestore gray clips are converted to YUV, since the masks need chroma.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* SpotLess works on 8 – 16-bit integer YUV and gray clips; other formats are converted first. With DeltaRestore gray clips are converted to YUV, since the masks need chroma.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* With DeltaRestore the call goes to &amp;#039;&amp;#039;SpotDelta&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;SpotLess&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* With DeltaRestore the call goes to &amp;#039;&amp;#039;SpotDelta&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;SpotLess&amp;#039;&amp;#039;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Most values are only written when they differ from the defaults. Pel is always written (auto resolved by the width), Search unless auto, block size and overlap unless auto. TrueMotion is always written, because SpotDelta&#039;s own default is off. ThSAD2 is written whenever it differs from ThSAD, so the shown value is the one used.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Most values are only written when they differ from the defaults. Pel is always written (auto resolved by the width &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;with the script&#039;s rule&lt;/ins&gt;), Search unless auto, block size and overlap unless auto. TrueMotion is always written, because SpotDelta&#039;s own default is off. ThSAD2 is written whenever it differs from ThSAD, so the shown value is the one used.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Recalculate values are only written with Recalculate, the grain values only with Restore Grain, the unsharp values only with Sharpen.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Recalculate values are only written with Recalculate, the grain values only with Restore Grain, the unsharp values only with Sharpen.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Hybrid does not scale values; the script scales its 8-bit thresholds (grain, unsharp, mask thresholds) to the bit depth.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Hybrid does not scale values; the script scales its 8-bit thresholds (grain, unsharp, mask thresholds) to the bit depth.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_SpotLess&amp;diff=275&amp;oldid=prev</id>
		<title>Selur: New filter page (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_SpotLess&amp;diff=275&amp;oldid=prev"/>
		<updated>2026-11-15T02:49:55Z</updated>

		<summary type="html">&lt;p&gt;New filter page (via create-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div style=&amp;quot;float:right; margin:0 0 1em 1em;&amp;quot;&amp;gt;__TOC__&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;SpotLess&amp;#039;&amp;#039;&amp;#039; removes short-lived spots, dirt and dust, typical of film scans, with a motion-compensated temporal median. The optional DeltaRestore stage puts back moving objects that were removed by mistake.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Filtering → Vapoursynth → Artifacts&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Vapoursynth_SpotLess.png|none|SpotLess controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
For each frame the neighbor frames are motion-compensated onto it and the temporal median is taken. A spot that appears on only one frame (or on up to &amp;#039;&amp;#039;Temporal radius&amp;#039;&amp;#039; frames) is replaced by the matching area of the neighbors. Fast moving bright or dark objects, such as a ball or a hand, can be mistaken for spots; &amp;#039;&amp;#039;DeltaRestore&amp;#039;&amp;#039; builds brightness, color and edge masks from the difference and restores the source there. SpotLess is meant for live action, not for cartoons.&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;
| Chroma || chroma || on/off || on || Use the chroma planes in the block matching (off for gray clips).&lt;br /&gt;
|-&lt;br /&gt;
| Temporal radius || radT || 1 – 10 || 1 || Frames before and after; 1 = median of three frames.&lt;br /&gt;
|-&lt;br /&gt;
| Iterations || iterations || 1 – 10 || 1 || Runs the whole chain again on its own output.&lt;br /&gt;
|-&lt;br /&gt;
| Analysis Blocksize || ablksize || auto, block sizes || auto || Auto: 8 up to 960 pixels width, 16 up to 2400, 32 above (with DeltaRestore 32 above 1920).&lt;br /&gt;
|-&lt;br /&gt;
| Analysis Overlap || aoverlap || auto, list || auto || Auto = half the block size.&lt;br /&gt;
|-&lt;br /&gt;
| Analysis Search || asearch || auto, OneTime, NStep, Logarithmic, Exhaustive, Hexagon, Uneven Multi Hexagon, pure horizontal, pure vertical || Uneven Multi Hexagon || Search method; disabled with mvgpu, which ignores it.&lt;br /&gt;
|-&lt;br /&gt;
| Recalculate || rec || on/off || off || Extra refinement pass; enables its own Blocksize, Overlap and Search (auto = the analysis values, overlap half the block size).&lt;br /&gt;
|-&lt;br /&gt;
| ThSAD || thsad || 1 – 64000 || 10000 || Blocks matching worse use the source block; 10000 is practically off.&lt;br /&gt;
|-&lt;br /&gt;
| ThSAD2 || thsad2 || 1 – 64000 || 10000 || Threshold for frames further than one away; from a radius of 3 the average of both is used.&lt;br /&gt;
|-&lt;br /&gt;
| TrueMotion || truemotion || on/off || on || Smoother, more coherent vectors.&lt;br /&gt;
|-&lt;br /&gt;
| Blur || blur || on/off || off || 3×3 blur of the clip used for the motion search (not of the output).&lt;br /&gt;
|-&lt;br /&gt;
| Fast HBD || fasthbd || on/off || off || Motion search on an 8-bit copy (10 – 16-bit input only).&lt;br /&gt;
|-&lt;br /&gt;
| RFilter || rfilter || 0 – 4 || 2 || Reduce filter of the super clip: simple averaging, triangle shifted, triangle, quadratic, cubic.&lt;br /&gt;
|-&lt;br /&gt;
| Pel || pel || auto, full, half, quarter || auto || Search precision; auto = half above 960 pixels width, else full.&lt;br /&gt;
|-&lt;br /&gt;
| SSharp || ssharp || soft, bicubic, sharper || bicubic || Subpixel interpolation; only with half or quarter pel.&lt;br /&gt;
|-&lt;br /&gt;
| Mirror Start/End || mStart, mEnd || on/off || off / off || Mirrors frames at the start and end so the first and last frames get the full temporal window.&lt;br /&gt;
|-&lt;br /&gt;
| DeltaRestore || – || on/off || off || Restores wrongly removed moving objects (calls SpotDelta).&lt;br /&gt;
|-&lt;br /&gt;
| Dark (ratio/limit) || dark2_brt, dark2_brt_limit || 0.5 – 1, 0.3 – 1 || 0.85 / 0.86 || Thresholds of the secondary dark mask, as ratios to mid gray.&lt;br /&gt;
|-&lt;br /&gt;
| Bright (ratio/expand) || luma_brt, luma_expand || 1.01 – 1.5, 0 – 20 || 1.1 / 3 || Bright mask threshold (lower, e.g. 1.02, keeps more bright fast objects) and mask growth.&lt;br /&gt;
|-&lt;br /&gt;
| Light ratio || light_brt || 1.01 – 1.5 || 1.04 || Threshold of the light mask.&lt;br /&gt;
|-&lt;br /&gt;
| Restore Grain || rgr, rgr1, rgr2 || on/off, 1 – 50, 1 – 50 || off, 10 / 20 || Puts grain back; the two values are difference thresholds (8-bit scale).&lt;br /&gt;
|-&lt;br /&gt;
| sLog || slog || on/off || off || Auto-levels the luma used for the masks (washed-out or S-Log material).&lt;br /&gt;
|-&lt;br /&gt;
| Sharpen || sharpen_it, usharp_strength, usharp_radius, usharp_th || on/off, 0 – 200 %, 1 – 20, 0 – 255 || on, 80 / 5 / 1 || Unsharp mask on luma before SpotLess; threshold on the 8-bit scale.&lt;br /&gt;
|-&lt;br /&gt;
| Tools: MV || – || mvgpu, mvutensils, mv || mvgpu with a discrete GPU, else mvutensils || Motion vector implementation; mvgpu ignores the search settings.&lt;br /&gt;
|-&lt;br /&gt;
| Tools: Expr || – || akarin, cranexpr, std || akarin || Expression implementation (DeltaRestore masks).&lt;br /&gt;
|-&lt;br /&gt;
| Tools: TMedian || – || zsmooth || zsmooth || Temporal median implementation.&lt;br /&gt;
|-&lt;br /&gt;
| Tools: BoxBlur || – || vszip, std || vszip || Box blur implementation (DeltaRestore).&lt;br /&gt;
|-&lt;br /&gt;
| Tools: Hysteresis || – || hysteresis, misc || hysteresis || Hysteresis implementation (DeltaRestore masks).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Default settings on a 10-bit YUV 4:2:0 source (machine with a discrete GPU):&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# Spot removal using SpotLess&lt;br /&gt;
clip = SpotLess.SpotLess(clip, asearch=5, truemotion=True, pel=1, tools={&amp;#039;mv&amp;#039;: &amp;#039;mvgpu&amp;#039;, &amp;#039;expr&amp;#039;: &amp;#039;akarin&amp;#039;, &amp;#039;tmedian&amp;#039;: &amp;#039;zsmooth&amp;#039;, &amp;#039;boxblur&amp;#039;: &amp;#039;vszip&amp;#039;, &amp;#039;hysteresis&amp;#039;: &amp;#039;hysteresis&amp;#039;})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* SpotLess works on 8 – 16-bit integer YUV and gray clips; other formats are converted first. With DeltaRestore gray clips are converted to YUV, since the masks need chroma.&lt;br /&gt;
* With DeltaRestore the call goes to &amp;#039;&amp;#039;SpotDelta&amp;#039;&amp;#039; instead of &amp;#039;&amp;#039;SpotLess&amp;#039;&amp;#039;.&lt;br /&gt;
* Most values are only written when they differ from the defaults. Pel is always written (auto resolved by the width), Search unless auto, block size and overlap unless auto. TrueMotion is always written, because SpotDelta&amp;#039;s own default is off. ThSAD2 is written whenever it differs from ThSAD, so the shown value is the one used.&lt;br /&gt;
* Recalculate values are only written with Recalculate, the grain values only with Restore Grain, the unsharp values only with Sharpen.&lt;br /&gt;
* Hybrid does not scale values; the script scales its 8-bit thresholds (grain, unsharp, mask thresholds) to the bit depth.&lt;br /&gt;
* SpotLess also offers the [[Vapoursynth common filter options|common options]] (Masked, ApplyOnlyTo, Merge, OnRegion, Gimmick).&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
=== SpotLess ===&lt;br /&gt;
The VapourSynth function is a port of StainlessS&amp;#039; AviSynth SpotLess, based on an idea by Didée. It targets spots that last up to RadT frames. The AviSynth defaults differ from Hybrid&amp;#039;s: ThSAD 4080, fixed pel 2, block size 8.&lt;br /&gt;
&lt;br /&gt;
=== SpotLess + DeltaRestore ===&lt;br /&gt;
SpotDelta is a port of chmars&amp;#039; AviSynth &amp;quot;SpotLess + DeltaRestore&amp;quot; (2021). It restores wrongly removed objects in stages: large bright groups first, then colorful dark objects, then edge sharpness to tell dirt from real objects.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://forum.doom9.org/showthread.php?t=181777 doom9 thread: SpotLess]&lt;br /&gt;
* [https://forum.doom9.org/showthread.php?p=1946031 doom9 thread: SpotLess + DeltaRestore]&lt;br /&gt;
* [https://github.com/Selur/VapoursynthScriptsInHybrid VapoursynthScriptsInHybrid] (the script collection Hybrid uses)&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>