PDA

View Full Version : Simple Denoise / Grainy Filter Setup


Bathrone
7th January 2006, 07:00
Ok Im new to filters with AviSynth. Ive been reading the faqs and the guides but I remain confused on what filter I should use for my specific situation and I would appreciate some advice.

Source: Old interlaced Television content from early 1980. Its now on my DVD in PAL 720x576x25fps. Watching the material it looks grainy and has bits of noise, like a blit of bright white from sort of film damage for a few frames in a small part of the screen.

Ive got the deinterlacing sorted out, Im working on transcoding the content into xvid using DGMPGDec + AviSynth + VirtualDub.

Appreciate any help :)

foxyshadis
7th January 2006, 08:29
White junk: DeSpot.
Grain: Seach for "denoise". Quick list of good ones: DeGrainMedian, fft3dfilter. Maybe removegrain, deen, or cnr.

Revgen
7th January 2006, 08:42
Everything foxyshadis just said, but try removegrain first since it's one of the fastest. If that doesn't work well enough then try FFT3DFilter or any of the other slower ones.

Bathrone
7th January 2006, 10:19
Thanks guys.

Im currently experimenting with despot and fft3dfilter.

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\leakkerneldeint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\despot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\fft3dfilter.dll")
MPEG2Source("D:\Encoding\movies.d2v")
LeakKernelDeint(order=1, threshold=10)
DeSpot(p1=35, p2=14, mthres=25)
FFT3DFilter(sigma=2, plane=4)

lexor
7th January 2006, 15:05
Thanks guys.

Im currently experimenting with despot and fft3dfilter.

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\leakkerneldeint.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\despot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\fft3dfilter.dll")
MPEG2Source("D:\Encoding\movies.d2v")
LeakKernelDeint(order=1, threshold=10)
DeSpot(p1=35, p2=14, mthres=25)
FFT3DFilter(sigma=2, plane=4)
according to the docs I have for fft3d, plane can only take values 0, 1, 2, what's taht 4 you have there?

btw if you plugins in the avisynth plugin directory, you don't need to load them :) makes script more readable

foxyshadis
7th January 2006, 21:13
4 = all three planes. Came out in the last month or two. 3 is both chroma planes.

DeSpot might need extra tuning, you should watch it closely to make sure it doesn't accidentally take out shiny reflections or something like that. Keep the parameters as small as possible, just barely enough to pick out your largest scratches.