Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import vapoursynth as vs
- import sys
- import havsfunc as haf
- import mvsfunc as mvf
- import functools
- import math
- import fvsfunc as fvf
- core=vs.get_core()
- core.avs.LoadPlugin(r'C:\ENCODING\dgavcdec\DGAVCDecode.dll')
- def IVTC(c):
- bit8 = core.fmtc.bitdepth(c, bits=8)
- def conditionalDeint(n, f, orig, deint):
- if f.props._Combed:
- return deint
- else:
- return orig
- c = core.vivtc.VFM(clip=bit8, order=1, mode=0, cthresh=9, blockx=32, blocky=32, clip2=c)
- c = core.vivtc.VDecimate(c)
- deint = haf.QTGMC(c, Preset='very slow', TR2=1, TFF=True, SourceMatch=3 ).std.SelectEvery( cycle=2, offsets=0)
- combProps = core.tdm.IsCombed(c, metric=1, cthresh=12, blockx=32, blocky=32, mi=90)
- c= core.std.FrameEval(c, functools.partial(conditionalDeint, orig=c, deint=deint), combProps)
- return c
- video = core.avs.AVCSource(dga =r"C:\prereleases\conan\file.dga")
- video = IVTC(video)
- video.set_output()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement