In the MA Script you can find a Line including STMedianFilter.
Just change it to Deen()
(download Deen() via Warpenterprises)
or change to
TemporalSoften(2, 10, 10, 15, 2)
(No Filter download necessary, included in MPEG2Dec3.dll)
Its heavy but you will kill noise. On the other Hand many details will be lost, for exampe killed structures in Hairs or flat surfaces in Skins.
TemporalSoften for me is the best compromise cause
- Its fast
- Its the Filter which keeps the most details when doing a "normal, not to heavy" denoise
But if set to heavy, the Picture in Surfaces will look like viewed through a Glass with "static" Dots. So watch out!
So use MA like this:
Code:
## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf =* 0 # Current frame.
#
####
## Main section and static filters ###
#
Mpeg2Source("Your_D2V_Source_Here")
#
Limiter()
asharp(1, 2)
GripCrop(Your_GripCrop_Parameters_Here)
GripSize(resizer="BicubicResize")
TemporalSoften(2, 10, 10, 15, 2)
undot()
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#
## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:
SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")
#
#
#
GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()
#
#
## Functions ###
function fmin( int f1, int f2) {
* return ( f1<f2 ) ? f1 : f2
}
*
#
####
Well I tried a lot on "old" sources an even if TemporalSoften is already used in the MA Routine it gave me a very good quality Stream with more CQ an keeped Details when also placed in front of the MA routine too.
If you lost to much details just change to
TemporalSoften(1, 8, 8, 15, 2)
The undot() is put behind TemporalSoften to eliminate a little bit the mentioned "viewed through a Glass with static dots" effect.
The Threshold of Asharp is set to (1, 2) to avoid sharpen more the noisy surfaces in the movie.
BUT!
If someone can tell me how to configure TemporalSoften in the MA Routine that it handles the "static" Scenes more heavy with individual parameters ... let me know! Makes more sense.
Just to avoid the double filtering.
Like this?
Code:
TemporalSoften( fmin( round(3/nf), 6), round(2/nf) , round(3/nf) , 1, 2) ")
Can someone explain detailed how the mathematical calculation routine of the MA Part works.
Well I'll try some settings at Weekend.