import os
import vapoursynth as vs
import havsfunc as haf
import G41Fun as fun
import mvsfunc as mvs
import descale as descale
import kagefunc as kage
core = vs.get_core()
#core.max_cache_size = 1000 #Use this command to limit the RAM usage. 1000 or 2000 is fine.
script_dir = os.path.dirname(__file__)
rel_path = "video_cut/cut.mkv"
abs_file_path=os.path.join(script_dir, rel_path)
video = core.lsmas.LWLibavSource(source=abs_file_path)
#Trim returns a clip with only the frames between the arguments first and last, or a clip of length frames, starting at first. a = first frame, b = last frame
#video = core.std.Trim(video, a, b)
#Resizer content goes here
video = haf.QTGMC(video, Preset="Slower", TFF=True, FPSDivisor=2)
video = core.fmtc.resample(video, css="444")
video = descale.Debilinear(video, 914,514)
video = mvs.BM3D(video, sigma=3.72, radius1=1, profile="fast", matrix="709")
video = core.knlm.KNLMeansCL(video, 0, 6, 4, 6.76, channels="YUV")
video = fun.FineSharp(video, sstr=1.97)
video = core.std.CropRel(video, left=289, top=106, right=357, bottom=58)
video = core.fmtc.bitdepth(video, bits=16)
video.set_output()
and then this shows
Failed to evaluate the script:
Python exception: No attribute with the name lsmas exists. Did you mistype a plugin namespace?
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 2244, in vapoursynth.vpy_evaluateScript
File "src/cython/vapoursynth.pyx", line 2245, in vapoursynth.vpy_evaluateScript
File "/Library/Frameworks/VapourSynth.framework/video_edit/script.vpy", line 17, in
video = core.lsmas.LWLibavSource(source=abs_file_path)
File "src/cython/vapoursynth.pyx", line 1756, in vapoursynth.Core.__getattr__
AttributeError: No attribute with the name lsmas exists. Did you mistype a plugin namespace?
does anyone know why this is showing up?
+ Reply to Thread
Results 1 to 10 of 10
-
-
My guess is you are missing the LSMASH-Works plugin or one of its dependencies.
https://github.com/HolyWu/L-SMASH-Works/releases/ -
ive downloaded the plugin and dependencies many times and this error just shows up... ive completely deleted and reinstalled vapoursynth many times and this error shows up even when the plugin is in the folder. I might be doing it wrong since i havent found anywhere explaining how to download dependencies.. but ive downloaded the plugin many times and put it in every folder i can think of and nothing works :(
-
May be https://github.com/Selur/hybrid-vapoursynth-addon helps a bit, these are the scripts I use to build Vapoursynth and the a bunch of plugins Hybrid uses.
users currently on my ignore list: deadrats, Stears555, marcorocchini -
video = core.lsmash.LWLibavSource(source=abs_file_path)
AttributeError: No attribute with the name lsmas exists. Did you mistype a plugin namespace? -
lsmas (without the h) is the correct namespace for the plugin
Are you on a Mac ?
Did you install using brew ; and did you setup UserPluginDir and SystemPluginDir
https://forum.doom9.org/showthread.php?t=175522
Did you try loading plugin manually with core.std.LoadPlugin ? -
im on mac. i installed with brew, put the plugin in the folder, and did the terminal lsmash setup. i dont know if i set those up but i followed every step on that site when downloading plugins so i think i did.. ill try again though and how do i load a plugin with that?
i dont know much about vapoursynth sorry and most things i look up are for windows :/ -
To load that plugin manually:
core.std.LoadPlugin('...path to your plugin...\vslsmashsource.dylib')
note: I'm guessing name "vslsmashsource.dylib" for that plugin, I do not have Mac.
if it gets loaded and other errors show up like not knowing attribute fmtc that you use in script, then things do not work in general, vapoursynth cannot see plugin directory -
l33tmeatwad has precompiled plugins in his Mediafire folder.
You can try downloading the file from https://www.mediafire.com/folder/wvdlnjapm1vvw#e08z7s08yi74i extract it and move the dylib file into your autoload folder,... (probably '/usr/local/lib/vapoursynth')users currently on my ignore list: deadrats, Stears555, marcorocchini -
i did what you said and i got the fmtc error that _AI_ was talking about.. can vapoursynth not see the plugin directory, and how do i make it see the plugins? everything i look up is windows so i have no idea
Failed to evaluate the script:
Python exception: There is no attribute or namespace named fmtc
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 2244, in vapoursynth.vpy_evaluateScript
File "src/cython/vapoursynth.pyx", line 2245, in vapoursynth.vpy_evaluateScript
File "/Library/Frameworks/VapourSynth.framework/video_edit/script.vpy", line 23, in
video = haf.QTGMC(video, Preset="Slower", TFF=True)
File "/Library/Frameworks/VapourSynth.framework/lib/python3.8/site-packages/havsfunc.py", line 1122, in QTGMC
bobbed = Bob(clip, 0, 0.5, TFF)
File "/Library/Frameworks/VapourSynth.framework/lib/python3.8/site-packages/havsfunc.py", line 5024, in Bob
clip = core.std.SeparateFields(clip, tff).fmtc.resample(scalev=2, kernel='bicubic', a1=b, a2=c, interlaced=1, interlacedd=0)
File "src/cython/vapoursynth.pyx", line 1443, in vapoursynth.VideoNode.__getattr__
AttributeError: There is no attribute or namespace named fmtc
Similar Threads
-
wmv Avisynth/Vapoursynth?
By Selur in forum Newbie / General discussionsReplies: 0Last Post: 5th Sep 2019, 13:59 -
encoding with vapoursynth.
By zanzar in forum Newbie / General discussionsReplies: 31Last Post: 7th Mar 2019, 14:57 -
Help transitioning from avisynth to vapoursynth.
By zanzar in forum Newbie / General discussionsReplies: 10Last Post: 3rd Feb 2019, 16:50 -
Qt Vapoursynth simple viewer example?
By Selur in forum ProgrammingReplies: 3Last Post: 20th Mar 2018, 11:02 -
StaxRip 1.7.0.0 with Vapoursynth ?
By locky in forum Video ConversionReplies: 6Last Post: 24th Jan 2018, 18:08