Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- import vapoursynth as vs
- import easyvfr
- import sys
- core = vs.Core()
- std = core.std
- cc = easyvfr.ChapterClip
- std.LoadPlugin('G:/vsplugins/d2vsource_beta4_v2.dll')
- def ivtc(clip, offset, cycle=10, tff=True):
- sf = std.SeparateFields(clip, tff)
- dw = std.DoubleWeave(sf, tff)
- return std.SelectEvery(dw, cycle, offset)
- def bob(clip, tff=True):
- sf = std.SeparateFields(clip, tff)
- return core.resize.Bicubic(sf, height=clip.height)
- src = core.d2v.Source(r"D:\Source\sample_01.d2v", nocrop=True)
- clips = []
- for f in range(500):
- clips.append(ivtc(src[f * 100: f * 100 + 40], [1, 4, 6, 9]))
- clips.append(src[f * 100 + 40: f * 100 + 70])
- clips.append(bob(src[f * 100 + 70: f * 100 + 100]))
- clips = [cc(clips[i], name='%05i' % i) for i in range(len(clips))]
- vfr = easyvfr.EasyVFR(core, clips)
- vfr.write_tcq(r"G:\workspace\easy_test")
- last = vfr.splice_clips()
- last.output(sys.stdout, y4m=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement