SHARE
TWEET

Untitled

a guest Jun 30th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import vapoursynth as vs
  2. import sys
  3. import havsfunc as haf
  4. import mvsfunc as mvf
  5. import functools
  6. import math
  7. import fvsfunc as fvf
  8.  
  9. core=vs.get_core()
  10.  
  11. core.avs.LoadPlugin(r'C:\ENCODING\dgavcdec\DGAVCDecode.dll')
  12.  
  13.  
  14. def IVTC(c):
  15.  
  16.     bit8 = core.fmtc.bitdepth(c, bits=8)   
  17.  
  18.     def conditionalDeint(n, f, orig, deint):
  19.         if f.props._Combed:
  20.           return deint
  21.         else:
  22.           return orig
  23.            
  24.     c = core.vivtc.VFM(clip=bit8, order=1, mode=0, cthresh=9,  blockx=32, blocky=32, clip2=c)
  25.     c = core.vivtc.VDecimate(c)
  26.        
  27.     deint = haf.QTGMC(c, Preset='very slow', TR2=1, TFF=True, SourceMatch=3 ).std.SelectEvery( cycle=2, offsets=0)
  28.    
  29.     combProps = core.tdm.IsCombed(c, metric=1, cthresh=12, blockx=32, blocky=32, mi=90)
  30.     c= core.std.FrameEval(c, functools.partial(conditionalDeint, orig=c, deint=deint), combProps)
  31.     return c
  32.  
  33. video = core.avs.AVCSource(dga =r"C:\prereleases\conan\file.dga")
  34.  
  35. video = IVTC(video)
  36. video.set_output()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top