<?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_DeSpot</id>
	<title>Vapoursynth DeSpot - 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_DeSpot"/>
	<link rel="alternate" type="text/html" href="https://wiki.selur.net/index.php?title=Vapoursynth_DeSpot&amp;action=history"/>
	<updated>2026-11-19T06:31:11Z</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_DeSpot&amp;diff=500&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_DeSpot&amp;diff=500&amp;oldid=prev"/>
		<updated>2026-11-16T08:48:32Z</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:48, 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-l56&quot;&gt;Line 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 56:&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:&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:&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/dot removal using DeSpot&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/dot removal using DeSpot&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 = core.despot.DeSpot(clip)&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 = core.despot.DeSpot(clip)&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;/table&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
	<entry>
		<id>https://wiki.selur.net/index.php?title=Vapoursynth_DeSpot&amp;diff=269&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_DeSpot&amp;diff=269&amp;oldid=prev"/>
		<updated>2026-11-15T02:48:30Z</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;DeSpot&amp;#039;&amp;#039;&amp;#039; removes temporal noise that shows up as spots, dots and short streaks: dust and dirt on film, drop-outs and small scratches. It is mainly meant for telecined 8 mm and other film transfers.&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_DeSpot.png|none|DeSpot controls in Hybrid]]&lt;br /&gt;
&lt;br /&gt;
== What it does ==&lt;br /&gt;
A pixel becomes a spot candidate when it is brighter or darker than the same place in both the previous and the next frame. Candidates are grown into spots; spots that are too large or touch moving areas are kept, all others are replaced from the neighbor frames. Detection and removal work on luma; chroma only changes with &amp;#039;&amp;#039;Color correction&amp;#039;&amp;#039; or the highlight view. In &amp;#039;&amp;#039;Median mode&amp;#039;&amp;#039; every static pixel is instead replaced by the temporal median of three frames.&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;
| Mode || median || Spot removing, Median mode || Spot removing || Median mode replaces static pixels with the 3-frame median; the spot settings are then disabled (Count stays usable).&lt;br /&gt;
|-&lt;br /&gt;
| Difference P1 / P2 || p1, p2 || 0 – 255 || 24 / 12 || P1: difference needed to start a spot; P2: difference for neighbor pixels to join it (8-bit scale).&lt;br /&gt;
|-&lt;br /&gt;
| max Dimensions w/h || pwidth, pheight || 0 – 32000 || 16 / 5 || Larger spots are kept.&lt;br /&gt;
|-&lt;br /&gt;
| ranked || ranked || on/off || on || Compare with the minimum/maximum of three pixels in the previous and next frame instead of one each; steadier on noisy video.&lt;br /&gt;
|-&lt;br /&gt;
| Remove || sign || only light spots any outliers, only light spots and outliers, any spots and outliers, only dark spots and outliers, only dark spots any outliers || any spots and outliers || Which spots (light, dark or both) and outliers are removed.&lt;br /&gt;
|-&lt;br /&gt;
| Limit (min/max) || minpts, maxpts || 0 – 10000000 || 0 / 0 || Smallest and largest pixel count of a spot; 0 = no limit.&lt;br /&gt;
|-&lt;br /&gt;
| Relative || p1percent || 0 – 100 || 10 || Smallest percentage of pixels above P1 in a spot.&lt;br /&gt;
|-&lt;br /&gt;
| Dilate || dilate || 0 – 1000 || 1 || Grows removed spots to cover soft edges.&lt;br /&gt;
|-&lt;br /&gt;
| fit luma || fitluma || on/off || off || Adapts the luma of replaced pixels to the surroundings.&lt;br /&gt;
|-&lt;br /&gt;
| Blur || blur || 0 – 4 || 1 || Blur length across the borders of removed spots.&lt;br /&gt;
|-&lt;br /&gt;
| Temporal smooth || tsmooth || 0 – 255 || 0 || Smooths static areas; 0 = off, 4 – 8 is a good start.&lt;br /&gt;
|-&lt;br /&gt;
| Motion detection || motpn || on/off || on || On: compare the previous with the next frame; off: previous with current and current with next (the method before version 3.0).&lt;br /&gt;
|-&lt;br /&gt;
| Scene || mscene || 0 – 100 || 40 || If more than this percentage of the frame moves, nothing is removed (scene change).&lt;br /&gt;
|-&lt;br /&gt;
| Segment removing method || seg || 0 – 2 || 2 || 0: remove spot pixels without any overlap with motion (strongest); 1: line segments; 2: only whole spots (safest).&lt;br /&gt;
|-&lt;br /&gt;
| Color correction || color || on/off || off || Replaces the chroma of removed spots with the mean of three frames.&lt;br /&gt;
|-&lt;br /&gt;
| Count || – || 1 – 25 || 1 || Number of DeSpot passes in a row (both modes).&lt;br /&gt;
|-&lt;br /&gt;
| Motion thresh/width/height/erode || mthres, mwidth, mheight, merode || 0 – 255, 0 – 32000, 0 – 32000, 0 – 100 || 16 / 7 / 5 / 33 || Motion detection used in both modes; the threshold should be above P2.&lt;br /&gt;
|-&lt;br /&gt;
| Show || show || none, highlight, motion map || none || Tuning views: highlight paints spots in the Mark color and brightens motion; the motion map shows removed spots, kept spots, motion and the rest as gray levels.&lt;br /&gt;
|-&lt;br /&gt;
| Mark || mark_v || 0 – 255 || 255 || Color of the highlight (only with highlight); the value modulo 3 picks pink, green or gray chroma.&lt;br /&gt;
|-&lt;br /&gt;
| Show chroma || show_chroma || on/off || off || Keeps the clip&amp;#039;s chroma in the motion map instead of gray (only with motion map).&lt;br /&gt;
|}&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;syntaxhighlight lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
# spot/dot removal using DeSpot&lt;br /&gt;
clip = core.despot.DeSpot(clip)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== How Hybrid calls it ==&lt;br /&gt;
* DeSpot works on 8 – 16-bit integer YUV (4:2:0, 4:2:2, 4:4:4, 4:1:0, 4:1:1, 4:4:0) and gray clips; other formats are converted first.&lt;br /&gt;
* Values are passed on the 8-bit scale; the plugin scales P1, P2, the motion threshold, Temporal smooth and Mark to the bit depth itself.&lt;br /&gt;
* Each value is only written when it differs from the default; Hybrid&amp;#039;s defaults equal the plugin&amp;#039;s. In median mode only &amp;#039;&amp;#039;median=1&amp;#039;&amp;#039; and the motion and show values are written.&lt;br /&gt;
* With Count above 1 the call is repeated in a loop.&lt;br /&gt;
* DeSpot 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 plugin ===&lt;br /&gt;
DeSpot 3.7.0 is a port of Fizick&amp;#039;s DeSpot 3.6.3, which is based on Kevin Atkinson&amp;#039;s Conditional Temporal Median Filter. The output is the same as 3.6.3 apart from fixed defects; the port adds multithreading, SIMD code, 9 – 16 bit and more subsampling formats. The first and the last frame are returned unchanged. Old documentation lists other defaults for pwidth and fitluma than the binaries ever used.&lt;br /&gt;
&lt;br /&gt;
=== Tuning ===&lt;br /&gt;
The README suggests: make the maximum dimensions a little larger than the specks, usually keep P1 above the motion threshold and that above P2, use the show views while tuning, set Temporal smooth to 4 – 8 for noisy static areas and lower Scene against artifacts at scene changes.&lt;br /&gt;
&lt;br /&gt;
== Sources ==&lt;br /&gt;
* [https://github.com/Selur/despot DeSpot README]&lt;br /&gt;
* Hybrid&amp;#039;s tooltips&lt;br /&gt;
&lt;br /&gt;
[[Category:Vapoursynth Filters]]&lt;/div&gt;</summary>
		<author><name>Selur</name></author>
	</entry>
</feed>