|
VS環境配置可以參考VCB-S放在nmd的教學,
給你個VapourSynth Filter範例,自己研究研究
import vapoursynth as vs
import statistics
core = vs.core
core.num_threads = 4
if not hasattr(core,'mv'):
core.std.LoadPlugin("C:\\Program Files (x86)\\SVP 4\\plugins64\\libmvtools.dll")
clip = VpsFilterSource
vden = 1000
vfps = int(23.976*vden)
dden = 1000
dfps = int(59.940*dden)
clip = core.std.AssumeFPS(clip, fpsnum=vfps, fpsden=vden)
super = core.mv.Super(clip, pel=2, sharp=0, rfilter=2)
mvfw = core.mv.Analyse(super, blksize=32, isb=False, search=3, searchparam=3)
mvbw = core.mv.Analyse(super, blksize=32, isb=True, search=3, searchparam=3)
mvfw = core.mv.Recalculate(super, mvfw, blksize=16, search=3, searchparam=1, thsad=200)
mvbw = core.mv.Recalculate(super, mvbw, blksize=16, search=3, searchparam=1, thsad=200)
clip = core.mv.BlockFPS(clip,super,mvbw,mvfw,num=dfps,den=dden)
clip = core.text.ClipInfo(clip)
clip.set_output()
|
|