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