vs 版本 : R40 x64
代码: 全选
import sys
import vapoursynth as vs
import havsfunc as haf
import mvsfunc as mvf
import adjust
import vsTAAmbk as taa
import math
core = vs.get_core(accept_lowercase=True,threads=16)
core.max_cache_size = 2000
video = core.ffms2.source("00005.m2ts")
a = core.std.Trim(video, 0, 2399)
a = haf.QTGMC(a, Preset='very slow', TFF=True, FPSDivisor =2,opencl=True)
a = core.std.AssumeFPS(a, fpsnum=24000, fpsden=1001)
b = core.std.Trim(video, 2400, 38359)
b = core.vivtc.VFM(b, order=1)
b = core.std.SelectEvery(b, 5, [0,1,3,4])#manual IVTC
b = haf.daa(b,opencl=True)
b = core.warp.AWarpSharp2(b,thresh=128,blur=15,type=1)
b = haf.santiag(b,opencl=True)
b = haf.daa(b,opencl=True)
b = haf.DeHalo_alpha(b)
b = haf.HQDeringmod(b)
c = core.std.Trim(video, 38360, 40459)
c = haf.QTGMC(c, Preset='very slow', TFF=True, FPSDivisor =2,opencl=True)
c = core.std.AssumeFPS(c, fpsnum=24000, fpsden=1001)
d = core.std.Trim(video, 40460, 40939)
d = core.vivtc.VFM(d, order=1)
d = core.std.SelectEvery(d, 5, [0,1,3,4])
d = haf.daa(d,opencl=True)
d = core.warp.AWarpSharp2(d,thresh=128,blur=15,type=1)
d = haf.santiag(d,opencl=True)
d = haf.daa(d,opencl=True)
d = haf.DeHalo_alpha(d)
d = haf.HQDeringmod(d)
video = core.std.Splice([a,b,c,d])
video.set_output()