(图片里的第13行实际上没有#,截图的时候实验加上去的,脚本运行是没问题的)
代码: 全选
import vapoursynth as vs
import mvsfunc as mvf
core = vs.get_core()
core= vs.get_core(accept_lowercase=True,threads=8)
core.max_cache_size = 8000;
ret = core.ffms2.Source(source='res.mp4')
#core.resize.Bicubic(ret, format=vs.RGBS)
ret = mvf.Depth(ret, depth=32)
ret = core.w2xc.Waifu2x(ret, noise=1, scale=1, block=128, photo=False, processor=0, gpu=1, list_proc=False, log=False)
ret = mvf.ToYUV(ret,depth=8)
ret.set_output()
代码: 全选
vspipe --y4m "C:\dwing\Waifu.vpy" -| x264.exe --preset ultrafast --demuxer y4m --output "C:\dwing\noise.mp4" -