Log in

View Full Version : SharpAAMCMod usage scenario?


thewebchat
17th August 2009, 05:48
In the AnimuIVTC script, there is an antialiasing function named "SharpAAMCMod" that supposedly uses motion-compensation for antialiasing. From reading the function, it seems to use MVDeGrain to reduce the temporal differences of the antialiased result from the input. I tried to apply the idea as such:

orig = last
aa = last.TurnRight.EEDI2(field=1).TurnLeft.EEDI2(field=1).Spline36Resize(orig.width,orig.height,-0.5,-0.5)
diff = mt_makediff(orig,aa)
super = orig.MSuper
b2v = orig.MAnalyse(super,delta=2,isb=true)
b1v = orig.MAnalyse(super,delta=1,isb=true)
f1v = orig.MAnalyse(super,delta=1)
f2v = orig.MAnalyse(super,delta=2)
diffD = diff.MDeGrain2(super,b2v,f1v,b2v,f2v)
diffDD = mt_lutxy(diff,diffd,"x 128 - abs y 128 - abs < x y ?").MergeLuma(diffd,0.6)
orig.mt_makediff(diffDD,U=2,V=2)

However, when I compare this to the normal EEDI2 output, I can not tell any difference. The original thread (http://forum.doom9.org/showthread.php?t=140031) said that the motion compensation removes flicker from the output. Is there some kind of clip that best demonstrates this flicker reduction? For testing, I picked one of the encodes on my hard drive and did a PointResize(last.width/2,last.height/2) to generate aliasing.

SEt
17th August 2009, 19:36
Flicker can be produced for example by Warpsharp used in that script elsewhere, eedi2 doesn't need motion stabilization i'd say.