求助vapoursynth下LibavSMASHSource处理MKV报错
dwing吧
全部回复
仅看楼主
level 6
Dfmq3000 楼主
片源如果是MKV就报错
但换成MP4就可以正常运行
源滤镜如果换成FFMS2也是正常的
LibavSMASHSource版本是L-SMASH-Works-r929-20170224-64bit
安装的时候就是将vslsmashsource.dll 放入了 \VapourSynth\plugins64\中
vpy如下
import vapoursynth as vs
import havsfunc as haf
core = vs.get_core()
ret = core.lsmas.LibavSMASHSource(r'D:\test.mkv')
#ret = haf.QTGMC(ret, Preset='slow', FPSDivisor=2, ShutterBlur=2, TFF=True)
ret.set_output()
然后就报错
LOG如下
Failed to evaluate the script:
Python exception: [Fatal]: Failed to read an input file
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1821, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36464)
File "D:/3.vpy", line 4, in
ret = core.lsmas.LibavSMASHSource(r'D:\test.mkv')
File "src\cython\vapoursynth.pyx", line 1713, in vapoursynth.Function.__call__ (src\cython\vapoursynth.c:34604)
vapoursynth.Error: [Fatal]: Failed to read an input file
不知有哪位大神知道是什么原因
2017年05月11日 07点05分 1
level 12
lsmashsource只用于mp
4/mov。其他container得用lwlibavsource。
2017年05月11日 08点05分 2
level 7
错误提示已经说的很清楚了啊,读取文件失败,只有源文件错误和不支持此类源两个可能,那么换滤镜或者改封装解决。
2017年05月11日 10点05分 3
level 6
Dfmq3000 楼主
感谢楼上2位的解答
改成 core.lsmas.LWLibavSource(r'D:\test.mkv') 没问题了
以下引自" http://avisynth.nl/index.php/LSMASHSource "
LSMASHVideoSource : Recommended for MP4, MOV, ISO Base Media and its derived file formats.
LWLibavVideoSource : Supports video codecs LSMASHVideoSource does not – for example MPEG-4, UT Video, Lagarith, and a***ted GIF and PNG.
2017年05月11日 12点05分 5
1