View Single Post
Old 16th May 2019, 16:45   #8848  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
LouieChuckyMerry,
Which Minblur() are you using ?
(the one on wiki requires at least one Int arg [ function MinBlur(clip clp, int r, int "uv") ]

You cannot just make the error go away, the error causing it must be fixed.
Also, best if you link to your script in Avisynth devs forum post. (I dont see anything wrong in the FieldMatch function).

Here a mod of the FieldMatch function, maybe it makes problem go away [Removes Globals, requires Grunt].

Code:
Function FieldMatch(Clip c) {
    PP = c.DuplicateFrame(0)
    CC = c
    NN = c.DeleteFrame(0)
    P2 = PP.SeparateFields
    C2 = CC.SeparateFields
    N2 = NN.SeparateFields
    PC = Interleave(P2.SelectEven,C2.SelectOdd).Weave
    CP = Interleave(C2.SelectEven,P2.SelectOdd).Weave
    CN = Interleave(C2.SelectEven,N2.SelectOdd).Weave
    NC = Interleave(N2.SelectEven,C2.SelectOdd).Weave
    Deint = CC.QTGMC.SelectEven
    SSS="""
        \   !CC.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? CC
        \ : !NN.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? NN
        \ : !CN.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? CN
        \ : !NC.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? NC
        \ : !PP.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? PP
        \ : !CP.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? CP
        \ : !PC.IsCombedTIVTC(CThresh=12,Chroma=True,BlockX=16,BlockY=32) ? PC
        \ : Deint
    """
    Args="CC,NN,CN,NC,PP,CP,PC,Deint"
    Return CC.GScriptClip(SSS,Args=Args,Local=True)
}
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 16th May 2019 at 16:47.
StainlessS is offline   Reply With Quote