Temporal Degrain

From Avisynth

Jump to: navigation, search
Abstract
Author Didee, Sagekilla
Version 1.20
Download TemporalDegrain.avs
Category Denoisers
Requirements
  • YV12
License

TemporalDegrain ( clip input, clip "denoise", int "threads", int "sigma", int "bw", int "bh", int "pel", int "ov", int "degrain", int "SAD1", int "SAD2", int "HQ" )



Contents

[edit] Abstract

Temporal Degrain is an extremely slow temporal denoiser originally created for use on 300. It works in a purely temporal manner when it's post processing is not enabled. It's little brother, Fast Degrain, runs faster and tends to filter out more detail. Use at your own discretion.

[edit] Requires Filters

[edit] Description

Works as a simple temporal degraining function that'll remove MOST grain from video sources, including dancing grain, like the grain found on 300. Is currently capable of utilizing MVDegrain 1, 2, or 3. Also note, the parameters don't need to be tweaked much as the default settings provide very good denoising. Use of TD is only recommended where highest quality filtering (least grain/noise, and highest detail retained) is needed. Otherwise, Fast Degrain can filter just as well.

denoise clip = null
Denoised clip for detecting motion vectors. Defining this automatically disables FFT3DFilter.

sigma int = 16
FFT3D filtering strength. Default works fine in most cases.

threads int = 1
Number of threads for FFT3DFilter.

bw int = 16
FFT3D block width.

bh int = 16
FFT3D block height.

pel int = 2
MVAnalyse Subpixel accuracy (1, 2, 4). Higher values increase the quality of motion vectors at the cost of speed.

blksize int = 8
MVAnalyse block size. Valid values are 4,8,16. Higher values are faster, more accurate in detection, and degrain less. Lower is the opposite, while blksize=8 is a happy medium between both.

ov int = 0
MVAnalyse block overlap. Increase for better motion vectors (and denoising) but slower speed. Must be even and cannot be > half of blksize.

degrain int = 2
MVDegrain with 1, 2, or 3 vectors.

SAD1 int = 300
MVDegrain thSAD. Threshold for degraining; see MVTools documentation.

SAD2 int = 300
MVDegrain thSAD. See above.

HQ int = 1
Valid values are 0, 1, 2. 0 Disables FFT3D filtering for motion search (not recommended) while 2 adds extra HQDn3D processing.

[edit] Examples

Avisource("blah.avi")
TemporalDegrain()
SetMTMode(2,2)
Avisource("blah.avi")
TemporalDegrain()
# Faster processing than defaults with a manageable decrease in quality.
SetMTMode(2,2)
Avisource("blah.avi"
TemporalDegrain(hq=1,degrain=1,ov=2)

[edit] Links

Download TemporalDegrain.avs Current stable version. (Recommended).
Download TemporalDegrain_beta.avs Experimental version (May not work!)
Download FastDegrain.avs Recommended for high resolution filtering, as TD is extremely slow at HD.

Personal tools