欢迎光临散文网 会员登陆 & 注册

【演示】高画质先行版NCOP/NCED合成制作(使用Vapoursynth 以《

2022-08-23 02:36 作者:ZHY2020  | 我要投稿

视频内代码:

import vapoursynth as vs

from rekt import *

import fvsfunc as fvf

core = vs.core

src = core.lsmas.LWLibavSource(source="[SubsPlease] Shadows House S2 - 07 (1080p) [DEC2DDDC].mkv")[1320:1320+2157]

NC_you = core.lsmas.LWLibavSource(source="NCOP_you.mp4")[0:2157]

length = 2157

NC = src

NC = fvf.rfs(NC,rekt(src,NC_you,left=600, top=300, right=500, bottom=420),"[7 166]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=50, top=500, right=1300, bottom=80),"[179 309]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=0, top=0, right=900, bottom=760),"[348 448]")

NC = fvf.rfs(NC,rekt(NC,src[449]*length,left=0, top=0, right=1440, bottom=850),"[348 448]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=80, top=300, right=1100, bottom=100),"[449 540]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=900, top=700, right=100, bottom=50),"[541 638]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=100, top=550, right=1200, bottom=50),"[639 741]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=1200, top=600, right=50, bottom=50),"[750 821]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=100, top=600, right=1100, bottom=100),"[822 899]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=50, top=700, right=1200, bottom=50),"[970 1067]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=550, top=50, right=550, bottom=300),"[1172 1262]")

NC = fvf.rfs(NC,rekt(NC,src,left=1160, top=50, right=550, bottom=950),"[1172 1262]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=0, top=0, right=1000, bottom=600),"[1369 1490]")

NC = fvf.rfs(NC,rekt(NC,src[1368]*length,left=0, top=0, right=1440, bottom=850),"[1369 1490]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=100, top=800, right=800, bottom=100),"[1497 1598]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=0, top=700, right=1200, bottom=50),"[1607 1700]")

NC = fvf.rfs(NC,rekt(src,NC_you,left=700, top=400, right=800, bottom=400),"[1861 1957]")

NC = fvf.rfs(NC,core.std.BlankClip(src),"[2107 2156]")


#res = core.std.StackVertical(clips=[src,NC_you])

res = NC

res.set_output()


【演示】高画质先行版NCOP/NCED合成制作(使用Vapoursynth 以《的评论 (共 条)

分享到微博请遵守国家法律