View Single Post
Old 24th June 2015, 21:01   #223  |  Link
colours
Registered User
 
colours's Avatar
 
Join Date: Mar 2014
Posts: 308
>binomialBlur(varY=0.4515, varC=0, Y=3, U=2, V=2, useMMX=true)
>binomialBlur(varY=0.0001, varC=0, Y=3, U=2, V=2, useMMX=true)

These probably don't do what you think they do. Unless you think they're supposed to give you black frames instead of blurring, in which case, yes, they do exactly what you think they do. The variance parameters get rounded down to the nearest multiple multiple of 0.5, and var*=0 has special treatment. Either way, this is useless.

Heck, I might as well clean up the whole script while I'm at it. All comments and significant changes are blue.

Code:
DGSource("E:\CARPETA CODIFICACION\*******.dgi")
SelectRangeEvery(10000,500)

sss = 1.5
newWidth = round(sss*width(last)/8)*8
newHeight = round(sss*height(last)/8)*8
LanczosResize(newWidth,newHeight)

source = last
s = 60
w = 24
mt_makediff(source.RemoveGrain(11),source)
mt_lut("x 128 - "+string(128.0/(128.0-s))+" * 128 + "+string(128-w)+" max "+string(128+w)+" min")
mt_makediff(source,last,u=2,v=2)

LimitedSharpenFasterHC(strength=80)

UnsharpHQ(THRESHOLD=80,SHARPSTR=2.6,SMOOTH=0.0, SHOW=false)
aWarpSharp2(thresh=100, blur=2, type=0, depth=16, chroma=4)
# do you really need four sharpening filters in a row?

last.MergeChroma(source)

FastLineDarkenMod() # moved this before denoising/debanding, but is this even necessary?

Spline36Resize(1920,1080)
# don't do the denoising/debanding with supersampling because
# that doesn't help with quality and makes things slower

SMDegrain(tr=2,thSAD=180,prefilter=2,contrasharp=30,refinemotion=true,lsb_in=false,lsb_out=true,chroma=false,plane=0)
GradFun3(lsb_in=true)
As usual, I didn't bother testing this, so while it should be correct, I have no idea whether it actually is.

With all the cruft cleaned up, it should be fairly clear how to use MP_Pipeline with it. Oh, and the reason you were seeing syntax errors is most likely that you didn't appropriately escape the triple quotes used with Eval in the original script.
__________________
Say no to AviSynth 2.5.8 and DirectShowSource!

Last edited by colours; 24th June 2015 at 21:08.
colours is offline   Reply With Quote