头像
Niconeiko
帖子: 7
注册时间: 2018-11-07 21:31
联系: 网站

[已解决]VS脚本执行输出X265 提示 unable to open input file

情况:

使用VS脚本执行后,提示错误如下:

x265 [error]: unable to open input file <->

仅上述一个错误 ,

滤镜等东西确定已安装


使用的指令:

F:\3\BDMV\STREAM>vspipe --y4m "20190302.vpy" - | x265-10bit_asuna --y4m -D 10 --preset slower --tune lp++ --ctu 32 --crf 18 --pbratio 1.2 --no-sao --me 3 --subme 4 --merange 44 --limit-tu 4 --b-intra --no-rect --no-amp --ref 4 --weightb --keyint 360 --min-keyint 1 --bframes 6 --aq-mode 3 --aq-strength 0.7 --rd 4 --psy-rd 1.5 --psy-rdoq 1.2 --rdoq-level 2 --no-open-gop --rc-lookahead 80 --scenecut 40 --qcomp 0.65 --no-strong-intra-smoothing --rskip --log-file "%~n1.log" --log-file-level debug --output "00011.hevc" -
x265 [error]: unable to open input file <->

使用的脚本:

import vapoursynth as vs
import sys
import havsfunc as haf
import mvsfunc as mvf

core = vs.get_core()
core.max_cache_size = 400 #最大占用内存数

clip = core.lsmas.LWLibavSource(source=r'name.m2ts', format='yuv420p16')
#lsmash

clip = core.yadifmod.Yadifmod(clip, core.nnedi3.nnedi3(clip, field=1, opt=2), order=1, field=-1, mode=0)

clip = core.knlm.KNLMeansCL(clip, d=1, a=2, s=4, device_type="auto")
#降噪 KNLMeansCL

clip.set_output()


望大佬可以指点一下!谢谢!
上次由 Niconeiko 在 2019-04-27 9:01,总共编辑 1 次。
wzwenyuyu
帖子: 12
注册时间: 2016-01-03 1:50

Re: VS脚本执行输出X265 提示 unable to open input file

首先先看看VSEdit能不能正常预览吧,只是喂给编码器的时候炸了,还是一开始就是脚本有问题
然后为什么要用yadif呢……QTGMC不好么,实在不行w3fdif也行
头像
Niconeiko
帖子: 7
注册时间: 2018-11-07 21:31
联系: 网站

Re: VS脚本执行输出X265 提示 unable to open input file

wzwenyuyu 写了: 2019-03-04 3:18 首先先看看VSEdit能不能正常预览吧,只是喂给编码器的时候炸了,还是一开始就是脚本有问题
然后为什么要用yadif呢……QTGMC不好么,实在不行w3fdif也行
预览貌似是没有问题..但是测试脚本的时候VS EDIT直接就崩溃了(有错的情况下倒是没奔溃,只是输出了错误信息.可能是我的vs edit有问题)

不过感觉会不会是脚本导致VS奔溃??

另:修改为了QTGMC

图片
头像
Niconeiko
帖子: 7
注册时间: 2018-11-07 21:31
联系: 网站

Re: VS脚本执行输出X265 提示 unable to open input file

目前已经好了..发现是降噪的问题导致奔溃..谢谢各位了.

回到 “理论讨论 / Theoratical discussion”