Python 库 VapourSynth 的属性错误
Attribute Error with Python Library VapourSynth
我已经从这个 link.
安装了 Python 3.7 和 Vapoursynth 库
现在我正在尝试打开 .mp4
视频,但是出现属性错误:
AttributeError: No attribute with the name lsmas exists. Did you mistype a plugin namespace?
如何解决这个问题?
VapourSynth 仅提供一组核心过滤器,主要位于命名空间 "core"、"resize" 和 "text" 内。可以从其他站点下载其他过滤器,主要是从 Doom9 or with Myrsloiks VSRepo。这些过滤器提供 Python 模块或其他过滤器,可通过 VapourSynth 插件提供的命名空间访问。
直接回答您的问题:"lsmas" 由 this Plugin. This is the official dropbox download link provided by the author (as seen in his doom9 版本 post) 提供。
通过下载插件并将其放置在 <vapoursynth-install-path>/plugins32
或 <vapoursynth-install-path>/plugins64
中,具体取决于您安装的 Python 是 32 位还是 64 位。 Refer to this page for more information.
希望对您有所帮助。
截至 2019 年 3 月,为 Windows 的 VapourSynth 编译的最新 FFMS2 和 L-SMASH 源插件,由 Wolfberry 提供,您可以从 https://forum.doom9.org/showthread.php?t=176198
下载
解压缩并将 ffmsindex.exe、ffms2.dll 和 vslsmashsource.dll 放入您的 C:\Program Files (x86)\VapourSynth\plugins64 目录中。然后,您可以在 Vapoursynth 脚本中使用这些行来加载视频,
from vapoursynth import core
clip = core.ffms2.Source(videofile) #for mkv extensions
clip = core.lsmas.LibavSMASHSource(videofile) # for mp4, mov extensions
clip = core.lsmas.LWLibavSource(videofile) #for ts, m2ts, mts
我已经从这个 link.
安装了 Python 3.7 和 Vapoursynth 库现在我正在尝试打开 .mp4
视频,但是出现属性错误:
AttributeError: No attribute with the name lsmas exists. Did you mistype a plugin namespace?
如何解决这个问题?
VapourSynth 仅提供一组核心过滤器,主要位于命名空间 "core"、"resize" 和 "text" 内。可以从其他站点下载其他过滤器,主要是从 Doom9 or with Myrsloiks VSRepo。这些过滤器提供 Python 模块或其他过滤器,可通过 VapourSynth 插件提供的命名空间访问。
直接回答您的问题:"lsmas" 由 this Plugin. This is the official dropbox download link provided by the author (as seen in his doom9 版本 post) 提供。
通过下载插件并将其放置在 <vapoursynth-install-path>/plugins32
或 <vapoursynth-install-path>/plugins64
中,具体取决于您安装的 Python 是 32 位还是 64 位。 Refer to this page for more information.
希望对您有所帮助。
截至 2019 年 3 月,为 Windows 的 VapourSynth 编译的最新 FFMS2 和 L-SMASH 源插件,由 Wolfberry 提供,您可以从 https://forum.doom9.org/showthread.php?t=176198
下载解压缩并将 ffmsindex.exe、ffms2.dll 和 vslsmashsource.dll 放入您的 C:\Program Files (x86)\VapourSynth\plugins64 目录中。然后,您可以在 Vapoursynth 脚本中使用这些行来加载视频,
from vapoursynth import core
clip = core.ffms2.Source(videofile) #for mkv extensions
clip = core.lsmas.LibavSMASHSource(videofile) # for mp4, mov extensions
clip = core.lsmas.LWLibavSource(videofile) #for ts, m2ts, mts