代码: 全选
import vapoursynth as vs
import sys
import mvsfunc as mvf
core = vs.get_core(accept_lowercase=True)
sourcename = "YZ.mp4"
source = core.lsmas.LWLibavSource(sourcename)
source = mvf.ToRGB(source,depth=32)
upscaled=core.w2xc.Waifu2x(source,noise=2,scale=2,block=512,photo=False,processor=1,gpu=1,list_proc=True,log=False)
upscaled=core.resize.Spline36(upscaled,1920,1080)
upscaled = mvf.ToYUV(upscaled,css="420",depth=8)
upscaled.set_output()
代码: 全选
@echo off
vspipe 6-1.vpy - --y4m --timecodes timecodes.txt | x264 --demuxer y4m -o 2.MP4 -
pause
exit
1.疑问就是一定要list_proc=True,求教怎么false。
视频载图: 2.疑问2,想用caffe的插件,但是没法加载这个插件,下了这个model和5个dll都没成,问题是否在cudnn上。
插件5个*.dll 放的路径 加载环境报错:
代码: 全选
core.std.LoadPlugin(path=r'D:\VapourSynth\plugins64\Waifu2x-caffe.dll')
Python exception: Failed to load D:\VapourSynth\plugins64\Waifu2x-caffe.dll. GetLastError() returned 126. A DLL dependency is probably missing.
3.什么样的设置比较顺利输出x264和x265