2017-02-12, 03:27 PM
(This post was last modified: 2021-03-18, 06:42 PM by althor1138.
Edit Reason: change stuff
)
This is perhaps better than LDDENOISE and it's much faster. This is what I use on laserdiscs nowadays as it seems to be better at removing the analog noise of laserdiscs.
It's quite simple actually and the dependencies are only:
Avisynth 2.6
Temporal Soften (this is an internal filter)
MVTOOLS2 (version 2.6.0.5 or higher)
The only things you really need to tinker with are tradius(temporal radius) and mthresh(motion threshold). Everything else I never change but I put them in as options in case you want to change the blocksize, for example. The only thing I ever adjust actually is mthresh.
mthresh=70 will denoise basically only stationary stuff.
mthresh=120 will denoise slightly moving stuff.
mthresh=180 will denoise moving stuff but not extremely high motion.
Anything over 180(depending on the source) can start to risk loss of detail that, imo, is unacceptable. However, 70-120 denoises A LOT but still looks good.
These numbers above are based on a few sources that I've tested. Every source is different and requires tweaking. Feeding an already denoised clip via auxclip helps mvtools in 2 ways. It will be more precise when calculating motion vectors and prevents mvtools from thinking that noise is motion. This will allow you to use the same settings more or less. What I mean is that, for example, mthresh=140 will give kind of the same results in different clips. I usually use a motion compensated fft3d denoiser for this as it denoises well even when there is motion without artifacting.
FFTMC
Here is the function for TSMC. Download the avsi and place it into your plugins folder.
TSMC
EDIT: I also wanted to add that if anybody has any ideas to make this better feel free to chime in. I'm by no means an avisynth guru and am open to improvement!
A quick how to use avisynth and this denoiser:
1) Go download avisynth 2.6 or avs+ and install it:
https://github.com/pinterf/AviSynthPlus/releases
I recommend going with avs+ as it's regularly maintained by Pinterf and has many newer features.
2) Download mvtools2. Navigate to the avisynth folder in Program Files and extract the mvtools2.dll file into the plugins folder inside the avisynth folder.
https://github.com/pinterf/mvtools/releases
Again, I recommend Pinterf's version as it is more up to date with more features.
3) Go to the TSMC link above and save TSMC.avsi to your avisynth plugins folder.
4) open notepad and write a script to load the video file and denoise it. Here's an example:
Save this wherever you want it as starwars.avs or whatever you want to name it. Just make sure you have .avs as the extension.
5) Open Virtualdub. Navigate to your starwars.avs file and open it in virtualdub. It should pop up in virtualdub already denoised via avisynth.
It's quite simple actually and the dependencies are only:
Avisynth 2.6
Temporal Soften (this is an internal filter)
MVTOOLS2 (version 2.6.0.5 or higher)
The only things you really need to tinker with are tradius(temporal radius) and mthresh(motion threshold). Everything else I never change but I put them in as options in case you want to change the blocksize, for example. The only thing I ever adjust actually is mthresh.
mthresh=70 will denoise basically only stationary stuff.
mthresh=120 will denoise slightly moving stuff.
mthresh=180 will denoise moving stuff but not extremely high motion.
Anything over 180(depending on the source) can start to risk loss of detail that, imo, is unacceptable. However, 70-120 denoises A LOT but still looks good.
These numbers above are based on a few sources that I've tested. Every source is different and requires tweaking. Feeding an already denoised clip via auxclip helps mvtools in 2 ways. It will be more precise when calculating motion vectors and prevents mvtools from thinking that noise is motion. This will allow you to use the same settings more or less. What I mean is that, for example, mthresh=140 will give kind of the same results in different clips. I usually use a motion compensated fft3d denoiser for this as it denoises well even when there is motion without artifacting.
FFTMC
Here is the function for TSMC. Download the avsi and place it into your plugins folder.
TSMC
EDIT: I also wanted to add that if anybody has any ideas to make this better feel free to chime in. I'm by no means an avisynth guru and am open to improvement!
A quick how to use avisynth and this denoiser:
1) Go download avisynth 2.6 or avs+ and install it:
https://github.com/pinterf/AviSynthPlus/releases
I recommend going with avs+ as it's regularly maintained by Pinterf and has many newer features.
2) Download mvtools2. Navigate to the avisynth folder in Program Files and extract the mvtools2.dll file into the plugins folder inside the avisynth folder.
https://github.com/pinterf/mvtools/releases
Again, I recommend Pinterf's version as it is more up to date with more features.
3) Go to the TSMC link above and save TSMC.avsi to your avisynth plugins folder.
4) open notepad and write a script to load the video file and denoise it. Here's an example:
Code:
Source=avisource("c:\temp\starwars.avi")
FFTclip=fftmc(Source,2,1,500,4,2,0)
TSMC(Source,3,120,255,4,FFTclip)
Save this wherever you want it as starwars.avs or whatever you want to name it. Just make sure you have .avs as the extension.
5) Open Virtualdub. Navigate to your starwars.avs file and open it in virtualdub. It should pop up in virtualdub already denoised via avisynth.