DecombUCF

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(DecombUCF)
 
(Blanked the page)
 
Line 1: Line 1:
{{FilterCat4|External_filters|Scripts|Restoration_filters|IVTC}}
 
{{Filter3
 
| [http://tyottoenc.blog.fc2.com tyottoenc]
 
| v3.13
 
| 3=[http://tyottoenc.blog.fc2.com/blog-entry-9.html Script]
 
| 4=IVTC & Decimation
 
| 5=
 
| 6=}}
 
  
== Description ==
 
[[DecombUCF]]: Decomb Using Clean Field. This function removes noise generated in one field, such as BS/terrestrial digital video scene changes and moving scenes. (Used after reverse telecine)
 
 
If one field is dirty, Bob is used with a clean field, and if both are dirty, NR is applied.
 
Please refer to [[Clean_SC]] for frame replacement.
 
<br>
 
<br>
 
== Requirements ==
 
* [x86] [[AviSynth+]] or [https://sourceforge.net/projects/avisynth2/ AviSynth 2.60]
 
* [x64] [[AviSynth+]]
 
* Supported color formats: [[YV12]]
 
 
==== Required Plugins ====
 
Latest versions of the following filters are recommended unless stated otherwise.<br>
 
* [[nnedi3|NNEDI3]]
 
* [[SmoothAdjust]]
 
* [[TDeint]]
 
* [[TIVTC]]
 
* [[TMM]]
 
* [[MVTools]]
 
* [[VariableBlur]]
 
* [[WarpSharp]]
 
 
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|DecombUCF(clip s, float "y1", float "y2", float "y3", float "y4", float "y5", float "x1", float "x2", float "x3", float "x4", float "x5", float "off_t", float "off_b", int "th_mode", float "fd_thresh", float "namax_thresh", int "namax_diff", float "nrt1y", float "nrt2y", float "nrt2x", float "nrw", string "nr", int "chroma", int "debug", string "txt_file", int "frame_cache")}}
 
<br>
 
::{{Par2| |clip| }}
 
:::Input clip.
 
<br>
 
::{{Par2|y1|float|15}}
 
::{{Par2|y2|float|20}}
 
::{{Par2|y3|float|23}}
 
::{{Par2|y4|float|45}}
 
::{{Par2|y5|float|63}}
 
::{{Par2|x1|float|20}}
 
::{{Par2|x2|float|28}}
 
::{{Par2|x3|float|36}}
 
::{{Par2|x4|float|41}}
 
::{{Par2|x5|float|50}}
 
:::Diff threshold: (x=nmin, y=diff)
 
<br>
 
::{{Par2|off_t|float|0.0}}
 
:::Offset for diff threshold of top field (first field, top,diff<0).
 
<br>
 
::{{Par2|off_b|float|0.0}}
 
:::Offset for diff threshold of bottom field (second field, bottom, 0<diff).
 
<br>
 
::{{Par2|th_mode|int|0}}
 
:::Preset of diff threshold. You can also specify threshold by the parameters x1-x5 and y1-y5 (needs th_mode=0).
 
:::*[1-2:debug]
 
:::*[3-7:normal]
 
:::*[8-10:restricted]
 
<br>
 
::{{Par2|fd_thresh|float|128}}
 
:::Threshold of FieldDiff.
 
:::<code>fd_thresh = FieldDiff * 100 / (Width * Height)</code>
 
<br>
 
::{{Par2|namax_thresh|float|82}}
 
:::Upper limit of max noise for Noise detection (75-80-83). Disabled with <code>chroma=1</code>.
 
:::Range: 0 to 256
 
<br>
 
::{{Par2|namax_diff|int|38}}
 
:::If average noise >= <code>namax_thresh</code>,  use <code>namax_diff</code> as diff threshold. Disabled with <code>chroma=1</code>.
 
:::Range: 30 to 40
 
<br>
 
::{{Par2|nrt1y|float|28.0}}
 
:::Threshold for nr.
 
:::Recommended values: 28-29-30
 
<br>
 
::{{Par2|nrt2y|float|36.0}}
 
:::Exclusion range.
 
:::Recommended values: 36-36.5-37
 
<br>
 
::{{Par2|nrt2x|float|53.5}}
 
:::Exclusion range.
 
:::Recommended values: 53-54-55
 
<br>
 
::{{Par2|nrw|float|2.0}}
 
:::Diff weight for nr threshold.
 
:::Recommended values: 1-2
 
<br>
 
::{{Par2|nr|string|NOOP()}}
 
:::Noise reduction filter to use; default none.
 
<br>
 
::{{Par2|chroma|int|1}}
 
:::Which planes to use for noise detection:
 
:::*0 : Y
 
:::*1 : UV
 
:::*2 : YUV
 
<br>
 
::{{Par2|debug|int|0}}
 
:::Debug modes:
 
:::*0 : none
 
:::*1 : Multi
 
:::*2 : FieldDiff
 
:::*3 : Show Noise
 
:::*4 : Output frame list to txt in format for ConditionalReader
 
:::*5 : Output frame list & stacked [C]fields as jpg
 
:::*6 : Execute formal bob using external frame list
 
:::*7 : Execute formal bob & output frame list
 
<br>
 
::{{Par2|txt_file|string|"nul"}}
 
:::If you use debug 4,5,6,7 in DecombUCF(), you need to set txt_file.
 
<br>
 
::{{Par2|frame_cache|int|10}}
 
:::Cache? (3-5-10)
 
<br>
 
== Examples ==
 
TODO
 
<br>
 
<br>
 
== Changelog ==
 
Version      Date            Changes<br>
 
v3.13        2015/05/08      - Latest release
 
v3.09        2015/04/20      - Change preset threshold values
 
v3.08        2015/04/15      - Bug fix of fd_thresh.
 
                                Please note that the value of fd_thresh has changed. (Original *100/Width/Height)
 
v3.07        2015/03/24      - Improvement of the NR function (to deal with the possibility of misjudgment of NR
 
                                by scrolling of complex patterns, etc.)
 
<br>
 
<br>
 
==External Links==
 
<br>
 
<br>
 
-----------------------------------------------
 
'''Back to [[External_filters#IVTC_.26_Decimation|External Filters]] &larr;'''
 
-----------------------------------------------
 

Latest revision as of 00:25, 5 September 2023

Personal tools