DecombUCF

From Avisynth wiki
Jump to: navigation, search
Abstract
Author tyottoenc
Version v3.13
Download Script
Category IVTC & Decimation
License
Discussion

Contents

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.

Requirements

Required Plugins

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


Syntax and Parameters

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")


clip   =
Input clip.


float  y1 = 15
float  y2 = 20
float  y3 = 23
float  y4 = 45
float  y5 = 63
float  x1 = 20
float  x2 = 28
float  x3 = 36
float  x4 = 41
float  x5 = 50
Diff threshold: (x=nmin, y=diff)


float  off_t = 0.0
Offset for diff threshold of top field (first field, top,diff<0).


float  off_b = 0.0
Offset for diff threshold of bottom field (second field, bottom, 0<diff).


int  th_mode = 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]


float  fd_thresh = 128
Threshold of FieldDiff.
fd_thresh = FieldDiff * 100 / (Width * Height)


float  namax_thresh = 82
Upper limit of max noise for Noise detection (75-80-83). Disabled with chroma=1.
Range: 0 to 256


int  namax_diff = 38
If average noise >= namax_thresh, use namax_diff as diff threshold. Disabled with chroma=1.
Range: 30 to 40


float  nrt1y = 28.0
Threshold for nr.
Recommended values: 28-29-30


float  nrt2y = 36.0
Exclusion range.
Recommended values: 36-36.5-37


float  nrt2x = 53.5
Exclusion range.
Recommended values: 53-54-55


float  nrw = 2.0
Diff weight for nr threshold.
Recommended values: 1-2


string  nr = NOOP()
Noise reduction filter to use; default none.


int  chroma = 1
Which planes to use for noise detection:
  • 0 : Y
  • 1 : UV
  • 2 : YUV


int  debug = 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


string  txt_file = "nul"
If you use debug 4,5,6,7 in DecombUCF(), you need to set txt_file.


int  frame_cache = 10
Cache? (3-5-10)


Examples

TODO

Changelog

Version      Date            Changes
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.)



External Links




Back to External Filters


Personal tools