PDA

View Full Version : How to clean up this noise ?


AssassiNBG
5th November 2005, 16:04
K after running a few denoisers I couldn't clean up this ( http://rapidshare.de/files/7221960/sample.MPG.html) noise. There's heavy noise and pixel displacement (huh) whenever there's fast motion. Here's the most successful combo I used:


LanczosResize(640,480)
ConvertToYV12()
FFT3DGPU(sigma=9, bt=3, useFloat16=false)

ConvertToRGB32()
VD_SmartSmoothHiQ(5, 70, 254, "weighted")


Any higher than those settings and the rest of the clip which is practically noiseless becomes kinda shabby.

Could you please try to clean it and tell me what filters should I run on it ? Thankz!

Didée
5th November 2005, 17:54
Don't know if this is your taste (don't know if this is *my* taste) ;)
but try

o=last
yv12lutxy( o,o.removegrain(4,-1).removegrain(19,-1),
\ "x 3 + y < x 3 + x 3 - y > x 3 - y ? ?",U=2,V=2).removegrain(2)
e = yv12lutxy(last,last.removegrain(11,-1),"x y - 32 * 32 -").expand().inpand()
maskedmerge(last,o,e.deflate().deflate())

AssassiNBG
5th November 2005, 19:14
Umm, pardon me, but do I just add this to my avisynth script ? I tryed so and it gave an error: there is no function named "removegrain".

helix
5th November 2005, 19:27
You need to load the plugin removegrain into your script. And yeah you just put that code right into your AVS script.

Poutnik
5th November 2005, 20:12
yv12lutxy( o,o.removegrain(4,-1).removegrain(19,-1),
\ "x 3 + y < x 3 + x 3 - y > x 3 - y ? ?",U=2,V=2)
just learn to use Masktools. Is a function above something like following ? At least RPN expression seems to me to do that for luma:
limitchange(o.removegrain(4,-1).removegrain(19,-1),o,limit=3,limitu=255,limitv=255)

AssassiNBG
5th November 2005, 20:37
Hmm I'm getting a RemoveGrain: invalid mode 19 error in this line ->
\ "x 3 + y < x 3 + x 3 - y > x 3 - y ? ?",U=2,V=2).removegrain(2)
Huh ?

Poutnik
5th November 2005, 21:20
Hmm I'm getting a RemoveGrain: invalid mode 19 error in this line ->

Huh ?
AFAIK, one should use named parameters with removegrain.
(mode=....,limit=...,limitu=..... )

Pookie
5th November 2005, 21:22
Did you use this version of RemoveGrain ?

http://home.arcor.de/kassandro/RemoveGrain/RemoveGrain.rar

AssassiNBG
5th November 2005, 21:23
Yes I figured that one myself. A mode=4 does a nice job. I just spent half an hour trying to make LimitedSharpen() work but I couldn't. It says it unable to load masktools.dll.

Didée
5th November 2005, 21:51
Oh yeah, I tend to assume everyone is an Avisynth expert and can figure the missing pieces when I've thrown my central point on the table ... sorry :D

So, do you have my initial scriptlet running by now? There was no comment from you.

Be careful with RemoveGrain(mode=4) ! - This one is very destructive, thin lines may just disappear or get holes ... mode=17 is more safe.
That limiting and masking I've not thrown together just because of the big fun, but rather to avoid artefacting that strong modes will cause, while still getting a more throughout effect than by using a safe-but-weak mode alone.

"Unable to load MaskTools.dll" ... you're not on a P4 with HT enabled, are you? Be sure to use v1.5.8 (http://manao4.free.fr/MaskTools-v1.5.8.zip) of the MaskTools, these should load correctly on HT-P4s.


@ Pookie: thank you for pointing out RemoveGrain's pre-release. As usual. :D


@ Poutnik: see the other thread. (And no, there's no need to name RemoveGrain's parameters.)

AssassiNBG
5th November 2005, 23:14
K I'll use mode=17 as you suggest. I think I'll leave it like that. I guess it's already good enough. If anyone has any other ideas/combinations - post it and I'll try it.

And thank you all so far.