The best Avisynth filters

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: The best Avisynth filters

Post by mirkosp » Thu Feb 04, 2010 7:35 am

Mysterious Pharaoh wrote:
mirkosp wrote:Well, you do need an even width and height to have a yv12 colorspace (I cropped and resized the images too, if you notice - I thought your input was 720x480 though, which is why I didn't put my crop and resize lines).
As for the missing function error, try to load it manually at the beginning of the script:

Code: Select all

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\AddGrainC.dll")
Ok thank you, all filters worked with me except one it is: fft3dgpu, when i write 'fft3dgpu(bw=216, bh=216, ow=108, oh=108, plane=0, bt=1, sigma=strength/8, sigma2=strength/4, sigma3=strength/2, sigma4=strength/8, sharpen=0.3)' it says 'I don't know what strength means', and when i write ff3dgpu() it stops responding. Is it because of my computer? or there is a missing plugin? though i installed fft3dgpu0.8.2.
If you specified strength = 4 before calling fft3dgpu you shouldn't have any issue. That said, if just calling fft3dgpu makes your pc hang, it might mean that it's not strong enough to handle it, in which case you might want to resort to fft3dfilter instead. You'll need to install it manually though. First you'll need to put the FFTW3.DLL inside this zip into your system32 folder (likely C:\Windows\system32), then you can put the actual plugin (the fft3dfilter.dll inside this zip) into your plugins folder of avisynth.
After that you can just change your avisynth script to

Code: Select all

strength = 4
fft3dfilter(bw=6, bh=6, ow=3, oh=3, plane=0, bt=1, sigma=strength, sharpen=0.3)
fft3dfilter(bw=216, bh=216, ow=108, oh=108, plane=0, bt=1, sigma=strength/8, sigma2=strength/4, sigma3=strength/2, sigma4=strength/8, sharpen=0.3)
maa
awarpsharp2(depth=6)
mergechroma(deen)
lsfmod(strength=200)
gradfun2dbmod(temp=100)
and see if it helps. In either case, both fft3dgpu and fft3dfilter are rather slow, and in this script it's a two stages fft3d denoising (output is better than just calling it alone since it prevents ringing, as the denoisers comparison page in the avisynth wiki points out).
Image

Mysterious Pharaoh
Joined: Tue Aug 05, 2008 3:13 pm
Org Profile

Re: The best Avisynth filters

Post by Mysterious Pharaoh » Sat Feb 06, 2010 11:15 am

mirkosp wrote:If you specified strength = 4 before calling fft3dgpu you shouldn't have any issue. That said, if just calling fft3dgpu makes your pc hang, it might mean that it's not strong enough to handle it, in which case you might want to resort to fft3dfilter instead. You'll need to install it manually though. First you'll need to put the FFTW3.DLL inside this zip into your system32 folder (likely C:\Windows\system32), then you can put the actual plugin (the fft3dfilter.dll inside this zip) into your plugins folder of avisynth.
After that you can just change your avisynth script to

Code: Select all

strength = 4
fft3dfilter(bw=6, bh=6, ow=3, oh=3, plane=0, bt=1, sigma=strength, sharpen=0.3)
fft3dfilter(bw=216, bh=216, ow=108, oh=108, plane=0, bt=1, sigma=strength/8, sigma2=strength/4, sigma3=strength/2, sigma4=strength/8, sharpen=0.3)
maa
awarpsharp2(depth=6)
mergechroma(deen)
lsfmod(strength=200)
gradfun2dbmod(temp=100)
and see if it helps. In either case, both fft3dgpu and fft3dfilter are rather slow, and in this script it's a two stages fft3d denoising (output is better than just calling it alone since it prevents ringing, as the denoisers comparison page in the avisynth wiki points out).
The fft3dgpu filter worked but another filter didn't work, it is awarpsharp2. I put the awarpsharp.dll in avisynth plugins but even when i write awarpsharp() it says there is no function named awarpsharp, i also tried inserting that plugin:

Code: Select all

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\aWarpSharp.dll")
But didn't work too, what do you think i can do? And is there a difference between awarpsharp2 and awarpsharp?

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: The best Avisynth filters

Post by mirkosp » Sat Feb 06, 2010 12:39 pm

awarpsharp2 is a new and improved version over the old awarpsharp. You can get it here.
Image

Mysterious Pharaoh
Joined: Tue Aug 05, 2008 3:13 pm
Org Profile

Re: The best Avisynth filters

Post by Mysterious Pharaoh » Sat Feb 06, 2010 2:19 pm

mirkosp wrote:awarpsharp2 is a new and improved version over the old awarpsharp. You can get it here.
Ok, thank you very very much, the picture is now much better than before, but after i added the filters i feel it isn't the same as you've done, that's what i got:

Image

Is it fine?

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: The best Avisynth filters

Post by mirkosp » Sat Feb 06, 2010 2:59 pm

That's a jpg so I don't know if the few artifacts I see are due to the lossy compression or not. :(
Image

Mysterious Pharaoh
Joined: Tue Aug 05, 2008 3:13 pm
Org Profile

Re: The best Avisynth filters

Post by Mysterious Pharaoh » Sun Feb 07, 2010 3:01 pm

mirkosp wrote:That's a jpg so I don't know if the few artifacts I see are due to the lossy compression or not. :(
I'm sorry, here is the png:

Image

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: The best Avisynth filters

Post by mirkosp » Sun Feb 07, 2010 3:22 pm

Oh well, looks like they all were actual artifacts and not due to compression. I guess you could increase the strength to 4.5 or 5 if you wish, but if it ends up looking to washed out, then just keep it as is, the artifacts are likely going to be mostly unnoticeable once the thing is in motion, I think.
Image

Mysterious Pharaoh
Joined: Tue Aug 05, 2008 3:13 pm
Org Profile

Re: The best Avisynth filters

Post by Mysterious Pharaoh » Mon Feb 08, 2010 3:38 pm

mirkosp wrote:Oh well, looks like they all were actual artifacts and not due to compression. I guess you could increase the strength to 4.5 or 5 if you wish, but if it ends up looking to washed out, then just keep it as is, the artifacts are likely going to be mostly unnoticeable once the thing is in motion, I think.
Ok, Thank you very very very much for helping me fixing this picture.

And thanks for eveyone else who replied on this topic :)

Locked

Return to “AviSynth Help”