<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://avisynth.nl/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=Clean_SC</id>
		<title>Clean SC - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://avisynth.nl/index.php?action=history&amp;feed=atom&amp;title=Clean_SC"/>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=Clean_SC&amp;action=history"/>
		<updated>2026-04-28T18:13:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.24</generator>

	<entry>
		<id>http://avisynth.nl/index.php?title=Clean_SC&amp;diff=11816&amp;oldid=prev</id>
		<title>Reel.Deal: Clean_SC</title>
		<link rel="alternate" type="text/html" href="http://avisynth.nl/index.php?title=Clean_SC&amp;diff=11816&amp;oldid=prev"/>
				<updated>2020-06-24T06:09:31Z</updated>
		
		<summary type="html">&lt;p&gt;Clean_SC&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{FilterCat4|External_filters|Scripts|Other_filters|Scene _change_detection}}&lt;br /&gt;
{{Filter3&lt;br /&gt;
| [http://tyottoenc.blog.fc2.com/ tyottoenc]&lt;br /&gt;
| 2015/05/20&lt;br /&gt;
|[http://tyottoenc.blog.fc2.com/blog-entry-7.html Script] &lt;br /&gt;
| Scene Change Detection &lt;br /&gt;
|&lt;br /&gt;
|}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Description ==&lt;br /&gt;
[[Clean_SC]]: Clean Scene Change. This function automatically replaces the frame of the scene change. It copies and replaces the most recent similar frame. Should be used after deinterlacing. If there is no similar frame, it will not be replaced.&lt;br /&gt;
&lt;br /&gt;
See [[DecombUCF]] for a function that completes with a clean field.&lt;br /&gt;
&lt;br /&gt;
'''Note''': Documentation was translated from Japanese with online translators, it may be inaccurate. &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Requirements ==&lt;br /&gt;
* [x86] [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.60]&lt;br /&gt;
* [x64] [[AviSynth+]]&lt;br /&gt;
* Supported color formats: [[YV12]]&lt;br /&gt;
&lt;br /&gt;
==== Required Plugins ====&lt;br /&gt;
Latest versions of the following filters are recommended unless stated otherwise.&amp;lt;br&amp;gt;&lt;br /&gt;
* [[Dup]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== [[Script variables|Syntax and Parameters]] ==&lt;br /&gt;
:{{Template:FuncDef|Clean_SC(clip clip, float &amp;quot;b_diff_th&amp;quot;, float &amp;quot;b_dup_th&amp;quot;, float &amp;quot;d_diff_th&amp;quot;, float &amp;quot;d_dup_th&amp;quot;, float &amp;quot;luma_boundary&amp;quot;, int &amp;quot;show_mode&amp;quot;)}}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2| |clip| }}&lt;br /&gt;
:::Input clip.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|b_diff_th|float|20.0}}&lt;br /&gt;
:::Scene change threshold for luminance above &amp;lt;code&amp;gt;luma_boundary&amp;lt;/code&amp;gt;. The smaller the threshold, the more boundaries are considered to be scene changes.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|b_dup_th|float|5.0}}&lt;br /&gt;
:::Maximum allowable difference between the frame just before (and after) scene change and the frame used for overwriting (the frame adjacent to the scene change) for luminance greater than &amp;lt;code&amp;gt;luma_boundary&amp;lt;/code&amp;gt;.&lt;br /&gt;
:::If this value is small, even a small amount of movement will not be missed and frame replacement will not be performed. However, you will not be able to pick up the noise.&lt;br /&gt;
:::I recommend 5.0 for normal sources, and 10.0 for Tokyo MX and Sun TV.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|d_diff_th|float|8.0}}&lt;br /&gt;
::{{Par2|d_dup_th|float|1.5}}&lt;br /&gt;
:::A threshold value that is applied to luminance less than &amp;lt;code&amp;gt;luma_boundary&amp;lt;/code&amp;gt;.&lt;br /&gt;
:::The value of &amp;lt;code&amp;gt;d_dup_th&amp;lt;/code&amp;gt; is usually 1.6, and 2.0 for MX.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|luma_boundary|float|48.0}}&lt;br /&gt;
:::Luminance boundary. Default 48.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
::{{Par2|show_mode|int|0}}&lt;br /&gt;
:::Debug.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Examples == &lt;br /&gt;
TODO&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
 Version      Date            Changes&amp;lt;br&amp;gt;&lt;br /&gt;
              2015/05/20      - Inital release &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== External Links ==&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
-----------------------------------------------&lt;br /&gt;
'''Back to [[External_filters#Scene_Change_Detection|External Filters]] &amp;amp;larr;'''&lt;/div&gt;</summary>
		<author><name>Reel.Deal</name></author>	</entry>

	</feed>