DirectShowSource("g:\Majokko Tsukune-chan - 3 [640x480 WMV9].wmv",convertfps=true,fps=29.97)
##Make sure to put the correct path to your file.
tdecimate(mode=0,hybrid=1,vidDetect=1)
#filtering - don't mess with this emtee
spline16resize(960,720)
xo=last
edges = xo.sangnom(aa=64).asharp(.5,5)
plain = xo.degrainmedian(mode=2).TemporalSoften(3,3,3,10,2)#.blankclip()
maske = xo.EdgeMask(7,7,5,5,"laplace").inflate().inflate().inflate().binarize()
\ .invert().inflate().inflate().inflate().binarize().invert().removegrain(mode=11)
MaskedMerge(plain,edges,maske)
limitedsharpen(smode=2,strength=85,undershoot=1000,dest_x=640,dest_y=480)
removegrain(mode=5)
ttempsmoothf(strength=1)
#for some reason quark did his cropping after adding everything. So it's in the next script.