C deblend

From Avisynth

Jump to: navigation, search
Abstract
Author MOmonster
Version 1.1b
Download Cdeblend.avs
Category Deblenders
Requirements
  • YV12
License

Cdeblend(clip input, int omode, float bthresh, mthresh, xr, yr, bool fnr, clip dclip)

Contents

[edit] Abstract

Cdeblend is a simple blend replacing function like unblend or removeblend

[edit] Requires Filters


[edit] Description

omode int (0-4, default 0)
Stands for the output mode. There are five different omodes:

  • omode 0 -> The previous frame will be duplicated to avoid a blend. ->default
  • omode 1 -> The next frame is used instead of a blend.
  • omode 2 -> Like omode 0 but with some doubleblenddetection (only without missing fields)
  • omode 3 -> It´s a special mode for 12fps sources.
  • omode 4 -> Does nothing with the source. It just subtitle the blendfactor.

bthresh float (0-2.0, default 0.1)
For omode 0 and 1 bthresh will be just compared with the calculated blendfactor. If th blendfactor is higher a blend is detected. Omode 3 use this threshold to detect clears. If blendfactor<-bthresh the frame will be outputed also if there is another frame with a smaller blendfactor. This can give a better motion. [0...2.0 ->0.1]

mthresh float (0.3-1.6, default 0.6)
It´s used for (m)otion (thresh)olding. It regulates the blenddetection of frames with small pixelvaluedifferences. A better quality of the source allows lower values and a more accurate detection. [0.3...1.6 ->0.6]

xr,yr float (1.0-4.0, default 1,5,2.0)
The scaled detection radius (xr & yr) blurrs the internal detection clip and can speed up the function a little bit. [1.0...4.0 ->1.5,2.0]

fnr bool = false
With fnr=true you enables a (f)ast (n)oise (r)eduction. It´s sometimes very useful for noisy sources and typical area motion (anime).Don´t use a too big radius if you enables this feature and don´t use it on very clean sources (speed decreasing is not the only negative effect).

dclip clip = input
The (d)etection(clip) you can set to improve the blenddetection (cleaning the clip before). This clip is only used for the blenddetection and not for output.


[edit] Examples

Avisource("blah.avi")
Cdeblend()
Avisource("blah.avi")
tdeint(mode=1)
c = last.crop(8,16,-8,-8)
Cdeblend(omode=1,dlip=c)

[edit] Links

Download Cdeblend.avs
Follow the discussion here Doom9 forum

Personal tools