ziyou
帖子: 22
注册时间: 2017-06-27 20:58

无法从iso原盘调用m2ts

video = core.lsmas.LWLibavSource(r'I:/BDMV/STREAM/00001.m2ts')
视频源文件是iso格式的,把m2ts文件复制到硬盘上调用正常,但是这样会临时占用硬盘空间并且浪费时间,我想加载到虚拟光驱后直接调用,但出现了下面的提示。
2017-06-29 04:32:16.161
Failed to evaluate the script:
Python exception: 'NoneType' object has no attribute 'set_output'

Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 1810, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36455)
File "E:\视频处理\VapourSynth\script.vpy", line 17, in 
AttributeError: 'NoneType' object has no attribute 'set_output'
把m2ts文件复制硬盘调用,会在源位置生成一个lwi后缀的文件,而虚拟光驱是只读的,我想这应该是问题的根源。不知道大神们是如何将ios原盘重编码的?
ueff
帖子: 3
注册时间: 2017-06-25 14:03

Re: 无法从iso原盘调用m2ts

可以用FFMS2,能指定索引文件的位置。
https://github.com/FFMS/ffms2/releases
core.ffms2.Source(source="xxx.m2ts", cachefile='D:/xxx.ffindex')
ziyou
帖子: 22
注册时间: 2017-06-27 20:58

Re: 无法从iso原盘调用m2ts

这个问题解决了,谢谢!
ziyou
帖子: 22
注册时间: 2017-06-27 20:58

Re: 无法从iso原盘调用m2ts

ueff 写了:可以用FFMS2,能指定索引文件的位置。
https://github.com/FFMS/ffms2/releases
core.ffms2.Source(source="xxx.m2ts", cachefile='D:/xxx.ffindex')
m2ts格式用core.ffms2.Source(source="xxx.m2ts", cachefile='D:/xxx.ffindex')压出来的视频会卡
还是得用core.lsmas.LWLibavSource(source='I:/BDMV/STREAM/00001.m2ts',cache=False),加上cache=False不会在视频同级目录生成索引文件(好像索引保存在内存中)
cylx
帖子: 32
注册时间: 2017-03-03 21:47

Re: 无法从iso原盘调用m2ts

ziyou 写了:
ueff 写了:可以用FFMS2,能指定索引文件的位置。
https://github.com/FFMS/ffms2/releases
core.ffms2.Source(source="xxx.m2ts", cachefile='D:/xxx.ffindex')
m2ts格式用core.ffms2.Source(source="xxx.m2ts", cachefile='D:/xxx.ffindex')压出来的视频会卡
还是得用core.lsmas.LWLibavSource(source='I:/BDMV/STREAM/00001.m2ts',cache=False),加上cache=False不会在视频同级目录生成索引文件(好像索引保存在内存中)
不保存索引的话每次打开脚本都要花时间重新索引整个文件。ffms问题很多,所以有了这个

FFMS2000 - The experimental future of FFMS2
ziyou
帖子: 22
注册时间: 2017-06-27 20:58

Re: 无法从iso原盘调用m2ts

是的, 20G的原盘用lsmas索引一次差不多要十分钟.
用ffms2索引一次后打开非常快
用lsmas索引一次后打开比ffms2慢许多。

回到 “VapourSynth”