SmartSSIQ

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Update)
(reformat)
Line 1: Line 1:
{{FilterCat|External_filters|Restoration_filters|Rainbow & Dot Crawl Removal}}
+
{{FilterCat4|External_filters|Scripts|Restoration_filters|Rainbow & Dot Crawl Removal}}
{{Filter
+
{{Filter3
 
| LB, foxyshadis
 
| LB, foxyshadis
 
| 2014-02-23
 
| 2014-02-23
Line 6: Line 6:
 
| Rainbow & Dot Crawl Removal
 
| Rainbow & Dot Crawl Removal
 
|
 
|
* YV12
 
 
|
 
|
 
|}}
 
|}}
 
<br>
 
<br>
 
== Description ==
 
== Description ==
:This is a derainbowing script which works with [[SSIQ]]. The basic problem with SSIQ is that it can alter the color on the entire picture, which is a very bad thing.
+
This is a derainbowing script which works with [[SSIQ]]. The basic problem with SSIQ is that it can alter the color on the entire picture, which is a very bad thing. All we want to do is remove rainbows, while leaving everything else alone. To accomplish this, SSIQ is applied (at full strength) to the entire frame. An edge mask is created from the original video. And finally, using [[Overlay]] it will blend ONLY the de-rainbowed edges onto the original video.
:All we want to do is remove rainbows, while leaving everything else alone. To accomplish this, SSIQ is applied (at full strength) to the entire frame. An edge mask is created from the original video.
+
<br>
:And finally, using [[Overlay]] it will blend ONLY the de-rainbowed edges onto the original video.
+
<br>
 +
<span style="color:red">'''Note:'''</span> SmartSSIQ with default settings can cause slight discoloration on derainbowed areas.
 
<br>
 
<br>
:<span style="color:red">'''Note:'''</span> SmartSSIQ with default settings can cause slight discoloration on derainbowed areas.
 
 
<br>
 
<br>
 
== Requirements ==
 
== Requirements ==
:- AviSynth 2.5.8 or later
+
* AviSynth 2.5.8 or later
:- Supported color formats: [[YV12]]
+
* Supported color formats: [[YV12]]
  
==== Required Filters: ====
+
=== Required Plugins ===
:*[[MaskTools2]] 2.0a48+
+
Latest versions of the following filters are recommended unless stated otherwise.<br>
:* [[SSIQ]]
+
*[[MaskTools2]]
 +
* [[SSIQ]]
 
<br>
 
<br>
== Syntax and Parameters ==
+
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|SmartSSIQ (''clip'' input, ''int'' "strength", ''bool'' "interlaced")}}
 
:{{Template:FuncDef|SmartSSIQ (''clip'' input, ''int'' "strength", ''bool'' "interlaced")}}
 
<br>
 
<br>
Line 32: Line 32:
 
<br>
 
<br>
 
::{{Par2|strength|int|200}}
 
::{{Par2|strength|int|200}}
 +
:::Processing strength; this value ultimately controls the ''opacity*'' in [[overlay]].
 
:::Range: 0 to 255
 
:::Range: 0 to 255
::::Processing strength; this value ultimately controls the ''opacity*'' in [[overlay]].
 
 
<br>
 
<br>
::::''*opacity = strength/255.0''   
+
:::''*opacity = strength/255.0''   
 
<br>
 
<br>
 
::{{Par2|interlaced|bool|false}}
 
::{{Par2|interlaced|bool|false}}
::::False means the input clip is [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|progressive]]; with true it's [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|interlaced]].
+
:::False means the input clip is [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|progressive]]; with true it's [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|interlaced]].
 +
:::<span style="color:red">'''Note:'''</span> this parameter was added as an after-thought, so use it with caution and only as a last resort.
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
Line 55: Line 56:
 
<br>
 
<br>
  
==Links==
+
==External Links==
 
*[http://forum.doom9.org/showthread.php?t=98267 Doom9 Forum] - Original SmartSSIQ discussion.
 
*[http://forum.doom9.org/showthread.php?t=98267 Doom9 Forum] - Original SmartSSIQ discussion.
 
*[http://forum.doom9.org/showthread.php?p=748304#post748304 Doom9 Forum] - Updated SmartSSIQ discussion.
 
*[http://forum.doom9.org/showthread.php?p=748304#post748304 Doom9 Forum] - Updated SmartSSIQ discussion.
<br>
 
 
<br>
 
<br>
 
<br>
 
<br>

Revision as of 03:30, 24 December 2014

Abstract
Author LB, foxyshadis
Version 2014-02-23
Download SmartSSIQ.avsi
Category Rainbow & Dot Crawl Removal
License
Discussion


Contents

Description

This is a derainbowing script which works with SSIQ. The basic problem with SSIQ is that it can alter the color on the entire picture, which is a very bad thing. All we want to do is remove rainbows, while leaving everything else alone. To accomplish this, SSIQ is applied (at full strength) to the entire frame. An edge mask is created from the original video. And finally, using Overlay it will blend ONLY the de-rainbowed edges onto the original video.

Note: SmartSSIQ with default settings can cause slight discoloration on derainbowed areas.

Requirements

  • AviSynth 2.5.8 or later
  • Supported color formats: YV12

Required Plugins

Latest versions of the following filters are recommended unless stated otherwise.


Syntax and Parameters

SmartSSIQ (clip input, int "strength", bool "interlaced")


clip  input =
Input clip.


int  strength = 200
Processing strength; this value ultimately controls the opacity* in overlay.
Range: 0 to 255


*opacity = strength/255.0


bool  interlaced = false
False means the input clip is progressive; with true it's interlaced.
Note: this parameter was added as an after-thought, so use it with caution and only as a last resort.


Examples

SmartSSIQ with default settings:

AviSource("Blah.avi")
SmartSSIQ(strength=200, interlaced=false)


Changelog

Version           Date            Author             Changes
2014/02/23 2014/02/23 Reel.Deal - Luma is not processed; prevents minor artifacts. - Add "interlaced" parameter.
2005/12/08 2005/12/08 foxyshadis - Changed syntax to use MaskTools2. - Now uses the AviSynth version of SSIQ. - Tweak edge mask and remove UnsharpMask
2005/08/05 2005/08/05 LB - Original SmartSSIQ that uses the VirtualDub version of SSIQ.


External Links




Back to External Filters


Personal tools