View Single Post
Old 25th April 2019, 08:53   #3  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
Vinverse looks often ugly.

This worked very good for me.

Code:
def conditionalDeint(n, f, orig, deint):
    if f.props._Combed:
        return deint#.sub.Subtitle("DEINT", margins=[20,20,70,20])
    else:
        return orig


clip = clip.vivtc.VFM(0, mode=3, cthresh=8,  blockx=32, blocky=32)
clip = clip.vivtc.VDecimate()
	
#deint = core.tdm.TDeintMod(clip, order=1, edeint=core.nnedi3.nnedi3(clip, field=1))
#deint = core.tdm.TDeintMod(clip, order=1, edeint=core.eedi3.eedi3(clip, 1))
deint = haf.QTGMC(clip, Preset='very slow', TR2=1, TFF=True, SourceMatch=3 ).std.SelectEvery( cycle=2, offsets=0)

combProps = core.tdm.IsCombed(clip, metric=1, cthresh=5, blockx=32, blocky=32, mi=90)
clip = core.std.FrameEval(clip, functools.partial(conditionalDeint, orig=clip, deint=deint), combProps)
VS docs have also an example http://www.vapoursynth.com/doc/plugins/vivtc.html
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database

Last edited by ChaosKing; 25th April 2019 at 09:59.
ChaosKing is offline   Reply With Quote