Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th May 2008, 21:44   #1  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
How to denoise this?

I'm currently using trim + dfttest(sigma=5) to denoise just the heavily noised scenes... but it kills way to many detail.
Any suggestions?

Don't worry about the "clean" scenes... since I'm using light filtering on them.

Source:






Chopped footage:
http://www.mediafire.com/?n06a2c1n4o3
SPiKA is offline   Reply With Quote
Old 15th May 2008, 21:50   #2  |  Link
Terranigma
*Space Reserved*
 
Terranigma's Avatar
 
Join Date: May 2006
Posts: 953
tnlmeans? That would be my number 1 choice for anime, but if that's too slow, you can try mvdegrain with dct 3 and maybe a search radius of 30+.
Terranigma is offline   Reply With Quote
Old 15th May 2008, 22:10   #3  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
Quote:
Originally Posted by Terranigma View Post
tnlmeans? That would be my number 1 choice for anime, but if that's too slow, you can try mvdegrain with dct 3 and maybe a search radius of 30+.
Speed isn't a problem. Quality is...
Can you recommend me settings for it?
SPiKA is offline   Reply With Quote
Old 15th May 2008, 22:15   #4  |  Link
martino
masktools2 (ab)user
 
martino's Avatar
 
Join Date: Oct 2006
Location: PAL-I :(
Posts: 235
Deen and BlindPP! No, I'm not joking.

Code:
BlindPP(14,6)
Deen()
Not tuned, etc...

It's what I used last time on similarly looking artefacts and worked for me, but there may be a better, "newer" solution.

Oh yeah... by the way, is there a technical name for that blocking and a reason why it happens since we're on this subject already?
martino is offline   Reply With Quote
Old 15th May 2008, 22:25   #5  |  Link
Terranigma
*Space Reserved*
 
Terranigma's Avatar
 
Join Date: May 2006
Posts: 953
Quote:
Originally Posted by SPiKA View Post
Speed isn't a problem. Quality is...
Can you recommend me settings for it?
Default settings?
By default though, there's no temporal operation going on, so if you want to do temporal filtering, then configure the AZ parameter. The higher, the better the results & slower the processing (much slower actually ). AZ=5 would be equaled to that of bt=5 in fft3dfilter. Also, since the source in question is indeed a toon/anime based source, set sse to false since sad usually works better with these types of sources. The "h" parameter would be the strength of the filtering, but you may want to start with 0.1 and adjust it as needed from there, since 0.1 in sad mode would be like, 0.45 in sse mode (which may prove to be too strong in some cases).

So all in all, try the default settings with the exception of configuring the "AZ" parameter and using SAD instead of SSE.
Terranigma is offline   Reply With Quote
Old 15th May 2008, 23:55   #6  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
Something like this?

Code:
tnlmeans(ax=3,ay=3,az=5,sx=2,sy=2,bx=1,by=1,sse=false)
SPiKA is offline   Reply With Quote
Old 16th May 2008, 00:00   #7  |  Link
Terranigma
*Space Reserved*
 
Terranigma's Avatar
 
Join Date: May 2006
Posts: 953
Quote:
Originally Posted by SPiKA View Post
Something like this?

Code:
tnlmeans(ax=3,ay=3,az=5,sx=2,sy=2,bx=1,by=1,sse=false)
Yes. Now tune the strength (h) parameter to your liking
(az=5 wouldn't probably help that much unless you plan on using tnlmeans as a prefilter, or with 5 frames compensated, so you're probably better off using az=1.)

Last edited by Terranigma; 16th May 2008 at 00:02.
Terranigma is offline   Reply With Quote
Old 16th May 2008, 00:06   #8  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
I though that MVDegrain3 was already ubber slow... but this (especially with az=5) is SLOOOW in a whole new dimension!
SPiKA is offline   Reply With Quote
Old 16th May 2008, 05:05   #9  |  Link
cestfait
Registered User
 
cestfait's Avatar
 
Join Date: Jul 2007
Posts: 70
first diagnose the problem. this doesn't need more denoising that mvdegrain3. what that needs is deblocking. try "aaa," my preferred anti aliaser, which has always served me better than a deblocker:
Code:
function AAA(clip clp, int "Xres", int "Yres", int "Xshrp", int "Yshrp", 

 \ 	 int "US", int "DS", bool "chroma")

       {

         clp = clp.isYV12() ? clp : clp.ConvertToYV12()

         ox = clp.width

         oy = clp.height

         Xres  = default(Xres,  ox)

         Yres  = default(Yres,  oy)

         us  = default(us, 1)

	 ds = default(ds, 2)

         Xshrp = default(Xshrp, 0)

         Yshrp = default(Yshrp, 0)

	 chroma = default(chroma, false)

         

         us==0 ? clp.PointResize(ox*2,oy*2) : clp.LanczosResize(ox*2,oy*2)



         TurnLeft()

         SangNom()



         TurnRight()

         SangNom()



         ds==0 ? BilinearResize(Xres,Yres) : 

 \	 ds==1 ? BicubicResize(Xres,Yres) : 

 \	 LanczosResize(Xres,Yres)



         Unfilter(Xshrp,Yshrp)



         chroma ? MergeChroma(clp.Lanczosresize(Xres,Yres)) : last



         }
I've modified the defaults a bit, so just aaa() should work fine. you'll need sangnom and unfilter.

i'm sure I can trust you to sharpen up afterwards!
cestfait is offline   Reply With Quote
Old 16th May 2008, 06:17   #10  |  Link
Manao
Registered User
 
Join Date: Jan 2002
Location: France
Posts: 2,856
You can try somthing like at_denoise(sstep = 0.4, edge = 3.0, iterations = 10, center = 1, tstep = 0) - it's in anisotools, in my signature.
__________________
Manao is offline   Reply With Quote
Old 16th May 2008, 22:19   #11  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
Code:
tnlmeans(ax=3,ay=3,az=5,sx=2,sy=2,bx=1,by=1,h=2,sse=false)


Code:
aaa()


Code:
at_denoise(sstep = 0.4, edge = 3.0, iterations = 10, center = 1, tstep = 0)


Code:
dfttest(sigma=5)
SPiKA is offline   Reply With Quote
Old 18th May 2008, 06:20   #12  |  Link
cestfait
Registered User
 
cestfait's Avatar
 
Join Date: Jul 2007
Posts: 70
pick the one you think looks best MOVING. You could also just try normal x264 deblocking settings.
cestfait is offline   Reply With Quote
Old 19th May 2008, 03:14   #13  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
TNLMeans worked the best... thanks to everybody for your help.
SPiKA is offline   Reply With Quote
Old 19th May 2008, 03:38   #14  |  Link
thetoof
Sleepy overworked fellow
 
Join Date: Feb 2008
Location: Maple syrup's homeland
Posts: 933
To my eyes, what gives the best result on your clip is aaa() + some light denoiser (like dfttest with a low sigma), because the main problem seems to be, as cestfait said, blocking.

However, "The best is what works best for you!".
__________________
AnimeIVTC() - v2.00
-http://boinc.berkeley.edu/-
Let all geeks use their incredibly powerful comps for the greater good (no, no, it won't slow your filtering/encoding :p)
thetoof is offline   Reply With Quote
Old 19th May 2008, 16:22   #15  |  Link
SPiKA
Registered User
 
Join Date: Nov 2006
Posts: 51
In fact, I ended up using TNLMeans (with lower strength) + aaa().
SPiKA is offline   Reply With Quote
Old 19th May 2008, 23:33   #16  |  Link
cestfait
Registered User
 
cestfait's Avatar
 
Join Date: Jul 2007
Posts: 70
good! It's always satisfying to be decisive. I do, however agree with thetoof. your tnlmeans in a scene like that is not going to help compressibility much (still high contrast edges shifting every frame), and x264's deblocker/quantization in general should smooth away the worst of the artifacts left over.

there can be no TRUE perfectionism here-- don't waste your time filtering every blocky scene to kingdom come-- you are starting with a flawed source.
cestfait is offline   Reply With Quote
Old 19th May 2008, 23:37   #17  |  Link
cestfait
Registered User
 
cestfait's Avatar
 
Join Date: Jul 2007
Posts: 70
on one other note: another sort of cheater's solution to blocking is just spline resizing the frame to double-size and then back down again. it takes advantage of spline-interpolation's idea of what the frame is supposed to look like. a sort of crude method of supersampling.

doesn't always work perfectly, of course!
cestfait is offline   Reply With Quote
Reply

Tags
anime, denoise

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.