Log in

View Full Version : I need some Denoising/Preprocessing tips


lucassp
18th May 2008, 15:39
Hi guys!

I'm trying to backup and old movie but the source has some noise. Can you please give me some tips regarding what settings should I use for denoising/preprocessing it?

Thank you

http://www.mediafire.com/?5x9xjmi9txm

Nightshiver
18th May 2008, 19:00
MVDegrain3, some low dfttest settings and possibly the use of LSF.

lucassp
18th May 2008, 21:21
I've tried this:

LoadPlugin("MT.dll")
global idx1 = 10
MT("""
idx1 = idx1 + 1
backward_vec3 = source.MVAnalyse(isb = true, delta = 3, pel = 2, overlap=4, sharp=1, idx = idx1)
backward_vec2 = source.MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = idx1)
backward_vec1 = source.MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec1 = source.MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec2 = source.MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec3 = source.MVAnalyse(isb = false, delta = 3, pel = 2, overlap=4, sharp=1, idx = idx1)
source.MVDegrain3(backward_vec1, forward_vec1, backward_vec2, forward_vec2, backward_vec3, forward_vec3, thSAD=400, idx=idx1)
""",2)

and I get an error message from MT: "Function changed the height! Try splitvertical=true". I changed splivertical to true and then it asks me to change it to false.

Thank you!

lucassp
20th May 2008, 19:23
it works fine without MT and the result has a very good quality. but I need it working with MT because it's pretty damn slow :D
cand someone help me a bit? thank you

thetoof
20th May 2008, 20:04
At least 10 of the 50 "most recent threads" have some info about denoising/preprocessing... So, by reading that, you could learn a lot more about denoising instead of only applying a solution that someone gave you for your clip.

A few things to try are: dfttest, fft3dfilter, fft3dgpu, temporaldegrain, GTDegrain, read the "sticky" about denoisers in the first page of "avisynth usage"... and everything elses that was discussed in the threads I mentioned.

jeffy
20th May 2008, 20:26
it works fine without MT and the result has a very good quality. but I need it working with MT because it's pretty damn slow :D
cand someone help me a bit? thank you

I am not sure if it works the way intended, but here is my attempt:
LoadPlugin("MT.dll")
global idx1 = 10
MT("""
idx1 = idx1 + 1
backward_vec3 = MVAnalyse(isb = true, delta = 3, pel = 2, overlap=4, sharp=1, idx = idx1)
backward_vec2 = MVAnalyse(isb = true, delta = 2, pel = 2, overlap=4, sharp=1, idx = idx1)
backward_vec1 = MVAnalyse(isb = true, delta = 1, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec1 = MVAnalyse(isb = false, delta = 1, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec2 = MVAnalyse(isb = false, delta = 2, pel = 2, overlap=4, sharp=1, idx = idx1)
forward_vec3 = MVAnalyse(isb = false, delta = 3, pel = 2, overlap=4, sharp=1, idx = idx1)
fv3 = MVAnalyse(isb = false, delta = 3, pel = 2, overlap=4, sharp=1, idx = idx1)
MVDegrain3(last,backward_vec1, forward_vec1, backward_vec2, forward_vec2, backward_vec3, forward_vec3, thSAD=400, idx=idx1)
""",2)
All the source. tags were removed.

lucassp
20th May 2008, 20:54
thank you jeffy!
it worked with:

last.MVDegrain3(backward_vec1, forward_vec1, backward_vec2, forward_vec2, backward_vec3, forward_vec3, thSAD=400, idx=idx1)

thetoof
20th May 2008, 23:04
MVtools usage:
The MVTools documentation clearly says that, in all the examples given on how to use them, "we assume that some source clip is firstly defined"
So, that's why you either need to do what jeffy suggested or tell avisynth what "source" is
source = whateverSource("yourfile")
#or
source=last # before calling mvanalyse

MVtools + MT usage:
MT() splits the image in multiple sections (depending on the number of threads you use) and a motion vector can't go from a part to another, so it'll screw up your motion compensation. Use SetMTmode(2) instead... I've have more bad than good results with MT or SetMTmode, so I'd even say "don't use it", but if it gives good results, why not!