1

I've installed Python 3.7 and Vapoursynth library from this link.

Now I'm trying to open a .mp4 video, but there's an attribute error:

 AttributeError: No attribute with the name lsmas exists. Did you mistype a plugin namespace?

How do I solve this problem?

Emma
  • 27,428
  • 11
  • 44
  • 69
Jessica Martini
  • 253
  • 2
  • 3
  • 11

2 Answers2

0

VapourSynth provides only a core set of filters, mostly inside the namespaces "core", "resize" and "text". Additional filters can be downloaded from other sites, mostly from Doom9 or with Myrsloiks VSRepo. These filters provide Python modules or additional filters accessible by namespaces provided by VapourSynth plugins.

To answer your questions directly: "lsmas" is provided by this Plugin. This is the official dropbox download link provided by the author (as seen in his doom9 release post).

By downloading the plugin and placing it inside <vapoursynth-install-path>/plugins32 or <vapoursynth-install-path>/plugins64 depending on whether you have a 32-bit or 64-bit installation of Python. Refer to this page for more information.

I hope this helps.

StuxCrystal
  • 846
  • 10
  • 20
0

As of March 2019, latest compiled FFMS2 and L-SMASH source plugins for VapourSynth for Windows, by Wolfberry you can download from https://forum.doom9.org/showthread.php?t=176198

unzip those and put ffmsindex.exe, ffms2.dll and vslsmashsource.dll into your C:\Program Files (x86)\VapourSynth\plugins64 directory. Then , you can use these lines in your Vapoursynth scripts to load videos,

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