View Full Version : VapourSynth Installer, Applications, & Plugins for macOS (Intel)
Pages :
1
2
3
4
5
6
[
7]
8
9
10
Selur
19th May 2021, 20:42
Thanks!
asarian
29th May 2021, 14:48
Looks like R53 installer is fairly broken. :( Whenever I try and start a script, I get
"Python exception: No attribute with the name avs exists. Did you mistype a plugin namespace?"
I do nothing special, just core.avs.LoadPlugin ("C:/Program Files (x86)/dgdecnv/x64 Binaries/DGDecodeNV.dll")
All PATH setting look okay, like C:\Users\name\AppData\Local\Programs\VapourSynth\core\plugins
What is going wrong here?!
videoh
29th May 2021, 15:59
Don't know what the problem is for you with avs compat mode but you can use native Vapoursynth mode for DGSource():
...
core.std.LoadPlugin'D:/Don/Programming/C++/DGDecNV/DGDecodeNV/x64/release/DGDecodeNV.dll')
video = core.dgdecodenv.DGSource('Harry Potter.dgi',show=True)
...
If you must have AVS compat mode, then please post your full script and hopefully Vapoursynth gurus will help. This is working for me after R53 install:
import vapoursynth as vs
core = vs.get_core()
core.avs.LoadPlugin('D:/Don/Programming/C++/DGDecNV/DGDecodeNV/x64/release/DGDecodeNV.dll')
video = core.avs.DGSource('Harry Potter.dgi',show=True)
video.set_output()
asarian
29th May 2021, 16:30
Don't know what the problem is for you with avs compat mode but you can use native Vapoursynth mode for DGSource():
...
core.std.LoadPlugin(path="D:/Don/Programming/C++/DGDecNV/DGDecodeNV/x64/release/DGDecodeNV.dll")
video = core.dgdecodenv.DGSource('Harry Potter.dgi',show=True)
...
If you must have AVS compat mode, then please post your full script and hopefully Vapoursynth gurus will help. This is working for me after R53 install:
import vapoursynth as vs
core = vs.get_core()
core.avs.LoadPlugin('D:/Don/Programming/C++/DGDecNV/DGDecodeNV/x64/release/DGDecodeNV.dll')
video = core.avs.DGSource('Harry Potter.dgi',show=True)
video.set_output()
Okay, that works. :) Thx. Not sure why the avs route doesn't work any more, but this will do.
asarian
29th May 2021, 16:48
Don't know what the problem is for you with avs compat mode
The video starts encoding, but still getting "Core plugin autoloading failed. Installation is broken?"
What could be causing this? I used the official R53 installer. These are the values in PATH:
C:\Users\name\AppData\Local\Programs\VapourSynth\core
C:\Users\name\AppData\Local\Programs\VapourSynth\vsrepo
And those are corresponding with values in Registry.
EDIT: And the py promp output:
>>> from vapoursynth import core
>>> print(core.version())
Core plugin autoloading failed. Installation is broken?
VapourSynth Video Processing Library
Copyright (c) 2012-2021 Fredrik Mellbin
Core R53
API R3.6
Options: -
videoh
29th May 2021, 18:01
Vapoursynth guys will have to help with that. Did you try emptying your autoload dir? Something in there may be problematic.
asarian
29th May 2021, 23:42
Finally got it working again. Not sure the installer (VS itself?) has hardcoded paths, but after uninstall everything, and putting things back to C:/Program Files/VapourSynth/, as it should (instead of the rather weird AppData/Local), all is good again.
Selur
30th May 2021, 11:26
@asaria: How about discussing Windows issues in the Windows thread and not the MacOS thread?
asarian
30th May 2021, 15:18
@asarian: How about discussing Windows issues in the Windows thread and not the MacOS thread?
Then how about making the topic title less ambiguous? To me, topic just reads as 'VapourSynth Installer, Applications, AND plugins for macOS,' aka 'All things installer related.' Especially since there's no comparable sticky for Windows install issues.
l33tmeatwad
30th May 2021, 15:37
Then how about making the topic title less ambiguous? To me, topic just reads as 'VapourSynth Installer, Applications, AND plugins for macOS,' aka 'All things installer related.' Especially since there's no comparable sticky for Windows install issues.I mean...the "for macOS" is pretty self explanatory...
Selur
1st June 2021, 20:25
@l33meatwad: two new filters which would be nice to have on MacOS. :D
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-RIFE-ncnn-Vulkan
https://github.com/Kiyamou/VapourSynth-RealSR-ncnn-Vulkan
Cu Selur
Selur
26th June 2021, 20:41
@l33meatwad: and another one: https://github.com/mysteryx93/FrameRateConverter :)
Cu Selur
MysteryX
26th June 2021, 22:38
Perhaps you can look at the FRC source code and tell me what needs to be changed to make it compatible with MacOS or Linux?
Those kind of things should be better documented to help plugin developers write re-usable code, structured the right way from the start.
Selur
27th June 2021, 10:52
@MysterX: first start would be a build script that's not VisualStudio based. ;)
I think a GNUmakefile, a meson.build or a CMake configure file are the usual suspects.
l33tmeatwad
28th June 2021, 14:20
@l33meatwad: and another one: https://github.com/mysteryx93/FrameRateConverter :)
Cu Selur
That one is just a script, it should work just fine no matter what platform.
Selur
28th June 2021, 14:29
No, the release consists of a script and a library. :)
l33tmeatwad
28th June 2021, 15:05
No, the release consists of a script and a library. :)
Ah, I missed that, yeah it needs some kind of compatible build system or xcode project file setup for it to build.
l33tmeatwad
28th June 2021, 15:41
@l33meatwad: two new filters which would be nice to have on MacOS. :D
https://github.com/HomeOfVapourSynthEvolution/VapourSynth-RIFE-ncnn-Vulkan
https://github.com/Kiyamou/VapourSynth-RealSR-ncnn-Vulkan
Cu Selur
VapourSynth-RIFE-ncnn-Vulkan failes to build due to C++ standards not supported in xcode yet.
[320/339] Compiling C++ object librife.dylib.p/RIFE_plugin.cpp.o
FAILED: librife.dylib.p/RIFE_plugin.cpp.o
c++ -Ilibrife.dylib.p -I. -I.. -Isubprojects/ncnn/__CMake_build -I../subprojects/ncnn/__CMake_build -Isubprojects/ncnn -I../subprojects/ncnn -I../subprojects/ncnn/glslang -Isubprojects/ncnn/__CMake_build/include -I../subprojects/ncnn/__CMake_build/include -I../subprojects/ncnn/src/layer/x86 -I../subprojects/ncnn/src -Isubprojects/ncnn/__CMake_build/src -I../subprojects/ncnn/__CMake_build/src -I../subprojects/ncnn/src/layer -I/usr/local/include -I/Library/Frameworks/VapourSynth.framework/include/vapoursynth -I/Library/Frameworks/VapourSynth.framework/include -fvisibility=hidden -flto -fcolor-diagnostics -DNDEBUG -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -O3 -fno-math-errno -fno-trapping-math -std:c++20 -mfpmath=sse -msse2 -MD -MQ librife.dylib.p/RIFE_plugin.cpp.o -MF librife.dylib.p/RIFE_plugin.cpp.o.d -o librife.dylib.p/RIFE_plugin.cpp.o -c ../RIFE/plugin.cpp
clang: error: unknown argument: '-std:c++20'
[321/339] Compiling C++ object librife.dylib.p/RIFE_rife.cpp.o
FAILED: librife.dylib.p/RIFE_rife.cpp.o
c++ -Ilibrife.dylib.p -I. -I.. -Isubprojects/ncnn/__CMake_build -I../subprojects/ncnn/__CMake_build -Isubprojects/ncnn -I../subprojects/ncnn -I../subprojects/ncnn/glslang -Isubprojects/ncnn/__CMake_build/include -I../subprojects/ncnn/__CMake_build/include -I../subprojects/ncnn/src/layer/x86 -I../subprojects/ncnn/src -Isubprojects/ncnn/__CMake_build/src -I../subprojects/ncnn/__CMake_build/src -I../subprojects/ncnn/src/layer -I/usr/local/include -I/Library/Frameworks/VapourSynth.framework/include/vapoursynth -I/Library/Frameworks/VapourSynth.framework/include -fvisibility=hidden -flto -fcolor-diagnostics -DNDEBUG -Wall -Winvalid-pch -Wnon-virtual-dtor -Wextra -O3 -fno-math-errno -fno-trapping-math -std:c++20 -mfpmath=sse -msse2 -MD -MQ librife.dylib.p/RIFE_rife.cpp.o -MF librife.dylib.p/RIFE_rife.cpp.o.d -o librife.dylib.p/RIFE_rife.cpp.o -c ../RIFE/rife.cpp
clang: error: unknown argument: '-std:c++20'
[330/339] Compiling C++ object subprojects/ncnn/libcm_ncnn.a.p/src_layer_x86_binaryop_x86.cpp.o
../subprojects/ncnn/src/layer/x86/binaryop_x86.cpp:690:74: warning: unused parameter 'opt' [-Wunused-parameter]
static int binary_op_scalar_inplace_pack8(Mat& a, float b, const Option& opt)
^
../subprojects/ncnn/src/layer/x86/binaryop_x86.cpp:1441:74: warning: unused parameter 'opt' [-Wunused-parameter]
static int binary_op_scalar_inplace_pack4(Mat& a, float b, const Option& opt)
^
2 warnings generated.
[333/339] Compiling C++ object subprojects/ncnn/libcm_SPIRV.a.p/glslang_SPIRV_GlslangToSpv.cpp.o
ninja: build stopped: subcommand failed.
VapourSynth-RealSR-ncnn-Vulkan fails to build due to this error at the end.
./src/main.cpp:52:25: error: expected ';' after top level
declarator
static std::mutex g_lock{};
^
;
./src/main.cpp:56:120: error: expected function body after
function declarator
...VSFrameRef* src, VSFrameRef* dst, const FilterData* const VS_RESTRICT d, const VSAPI* vsapi) noexcept
^
2 errors generated.
make[2]: *** [CMakeFiles/rsnv.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/rsnv.dir/all] Error 2
make: *** [all] Error 2
feisty2
28th June 2021, 16:14
C++20 has been a valid option since clang10, you should update your compiler.
l33tmeatwad
28th June 2021, 16:23
Added to my to-do list right behind updating dependancies.
Added this, was crashing on my Sierra VM but was working on actual hardware with macOS 10.15.
feisty2
28th June 2021, 16:31
Odd, mine is fully up to date...in fact I actually updated it right before trying.
https://godbolt.org/z/Md71rK8dx
as you can see, C++20 has been there since 10.0.0
I heard that apple ships crippled clang with their IDE, not exactly sure if that's true
l33tmeatwad
28th June 2021, 16:47
https://godbolt.org/z/Md71rK8dx
as you can see, C++20 has been there since 10.0.0
I heard that apple ships crippled clang with their IDE, not exactly sure if that's trueYeah, they generally don't fully support things full clang does, but for compatibility without needing to ship extra libraries I try to get stuff working without adding as much as possible. That said, it needed to be -std=c++2a, but the implementation of semaphore appears to be not what macOS likes as well, so this particular plugin may need some work to be fully compatible with macOS.
Selur
28th June 2021, 17:33
Struggling with this on Ubuntu 20.04 too (https://github.com/HomeOfVapourSynthEvolution/VapourSynth-RIFE-ncnn-Vulkan/issues/4),..
building didn't work with clang++-10, clang++-11, but did work with gc++-11 (what a pain, but happy it worked; thx to IFeelBloated)
-> my guess is, that building it for MacOS might also require gcc++-11.
Selur
18th July 2021, 06:02
Please update https://vsdb.top/vapoursynth/mac/ it at least is missing TIVTC :(
ChaosKing
18th July 2021, 07:52
The mediafire sync script is not working anymore ( they changed something again )
Only TIVTC was missing.
Selur
18th July 2021, 08:35
Okay, thanks for the info. :)
shph
18th July 2021, 11:36
The mediafire sync script is not working anymore ( they changed something again )
Only TIVTC was missing.
DegrainMedian also was missing long long time ago https://www.mediafire.com/folder/wvdlnjapm1vvw#1buuzhtdhu066
ChaosKing
18th July 2021, 13:12
It was never listed because I filter by extensions to generate the list. It's the only one file with a .tgz extension. *fixed*
shph
18th July 2021, 13:48
l33tmeatwad, can you check libdecross.dylib and libdpid.dylib somehow? Seems there is a conflict between them. When both are installed and i click to libdecross.dylib or to libdpid.dylib - Finder relaunches. As i remember same problem was noticed due conflict somewhere in names.
If i remove libdpid.dylib - there is no more Finder crash when i click to libdecross.dylib
l33tmeatwad
23rd July 2021, 01:27
Installer for R54 is up, only the core files are updated, not dependencies.
Selur
31st July 2021, 07:27
Nice thanks!
Also I found another filter: https://github.com/AmusementClub/VapourSynth-EEDI2CUDA :)
Cu Selur
krsentai
2nd August 2021, 07:00
Hi! I'm not entirely sure how to install vsutil in a way VSEdit will recognize. If I install through my system's pip it ends up somewhere VSEdit still doesn't see. Any tips?
kedautinh12
2nd August 2021, 13:18
New filters from HolyWu
https://github.com/HolyWu/vs-ffdnet
https://github.com/HolyWu/vs-dpir
https://github.com/HolyWu/vs-rife
l33tmeatwad
2nd August 2021, 15:48
Hi! I'm not entirely sure how to install vsutil in a way VSEdit will recognize. If I install through my system's pip it ends up somewhere VSEdit still doesn't see. Any tips?
Sorry, I need to add some documentation to the first post. The installer is bottled framework with it's own copy of python. To access the VapourSynth specific python3 or pip3 in terminal you can use the commands vspython3 or vspip3.
Selur
2nd August 2021, 19:14
@kedautinh12: you are aware that thos require pytorch (5GB+) and installing them like mentioned in the git pages is probably the best way.
l33tmeatwad
2nd August 2021, 20:43
@kedautinh12: you are aware that thos require pytorch (5GB+) and installing them like mentioned in the git pages is probably the best way.
Just noticed that, once the dependancies are installed they can be easily installed with the vspip3 command:
vspip3 install --upgrade vsffdnet
vspip3 install --upgrade vsdpir
vspip3 install --upgrade vsrife
Edit: Just know the dependancies may need to be installed in a similar fashion.
Selur
17th August 2021, 17:33
btw. does Placebo work on MacOS?
I copied
"libvs_placebo.dylib" to "/Library/Frameworks/VapourSynth.framework/lib/vapoursynth"
"libplacebo.72.dylib" to "/Library/Frameworks/VapourSynth.framework/lib/"
and called
sudo xattr -r -d com.apple.quarantine /Library/Frameworks/VapourSynth.framework/*
but I still get:
Failed to evaluate the script:
Python exception: No attribute with the name placebo exists. Did you mistype a plugin namespace?
Traceback (most recent call last):
File "src/cython/vapoursynth.pyx", line 2242, in vapoursynth.vpy_evaluateScript
File "src/cython/vapoursynth.pyx", line 2243, in vapoursynth.vpy_evaluateScript
File "/Users/selur/temp/tempPreviewVapoursynthFile18_28_14_100.vpy", line 16, in <module>
clip = core.placebo.Deband(clip=clip, planes=1)
File "src/cython/vapoursynth.pyx", line 1891, in vapoursynth._CoreProxy.__getattr__
File "src/cython/vapoursynth.pyx", line 1754, in vapoursynth.Core.__getattr__
AttributeError: No attribute with the name placebo exists. Did you mistype a plugin namespace?
when calling:
# Imports
import vapoursynth as vs
# getting Vapoursynth core
core = vs.core
# source: '/Users/selur/Desktop/Test Patterns Resolve 4444 12-bit.mp4'
# current color space: YUV444P16, bit depth: 12, resolution: 1920x1080, fps: 25, color matrix: 709, yuv luminance scale: limited, scanorder: progressive
# Loading /Users/selur/Desktop/Test Patterns Resolve 4444 12-bit.mp4 using LibavSMASHSource
clip = core.lsmas.LibavSMASHSource(source="/Users/selur/Desktop/Test Patterns Resolve 4444 12-bit.mp4")
# making sure input color matrix is set as 709
clip = core.resize.Bicubic(clip, matrix_in_s="709",range_s="limited")
# making sure frame rate is set to 25
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
# applying debanding using vs-placebo.Deband
clip = core.placebo.Deband(clip=clip, planes=1)
# adjusting output color from: YUV444P16 to YUV420P10 for x264Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="limited")
# adjusted resizing to achieve PAR 1:1 for preview
# resizing for preview to square pixel to 2500x1080
clip = core.resize.Bicubic(clip=clip, width=2500, height=1080)
# set output frame rate to 25.000fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
# Output
clip.set_output()
Might be that I can't use it in my MacOS Vm due to lack of gpu support, but it would be nice to know whether somone tested the filter. :)
Cu Selur
l33tmeatwad
17th August 2021, 18:18
Only works on 10.15+ with Vulkan installed and does not work in a VM.
Selur
17th August 2021, 18:33
Okay, but it does work :) Thanks!
l33tmeatwad
17th August 2021, 18:38
Okay, but it does work :) Thanks!
I haven't done extensive tests, but it loads and previews.
l33tmeatwad
21st September 2021, 12:40
I apologize in advance for the delay, but I'm in the middle of another project so I'll get around to R55 as soon as I can.
l33tmeatwad
29th September 2021, 18:55
Working on this currently, the R55+ updates break VapourSynth Editor, so if only VapourSynth Editor 2 is updated it can change the dynamics of how far back is supported overall since it does not support macOS 10.12. I will need to get the latest version of VapourSynth Editor 2 compiled before I really push anything out as everything currently pre-compiled does not support previewing of scripts, which kind of defeats the purpose of this thread and the installer.
ChaosKing
29th September 2021, 19:05
vseditor "1" with api4 support https://github.com/YomikoR/VapourSynth-Editor
l33tmeatwad
29th September 2021, 19:13
vseditor "1" with api4 support https://github.com/YomikoR/VapourSynth-Editor
Thanks for that, looks like mod 3 doesn't work, but I'm testing the older ones on 10.12 to see what works.
Yomiko
29th September 2021, 20:55
Thanks for that, looks like mod 3 doesn't work, but I'm testing the older ones on 10.12 to see what works.
Would you take a minute to create an issue?
l33tmeatwad
29th September 2021, 20:56
Would you take a minute to create an issue?
I'll try to get around to it in the next few days, right now I'm just trying to get everything built for the R56 installer.
Yomiko
29th September 2021, 21:00
I'll try to get around to it in the next few days, right now I'm just trying to get everything built for the R56 installer.
Thanks
l33tmeatwad
30th September 2021, 03:51
Okay, sorry for the delay but the R55 & R56 installers are live. They both include Python 3.9, instead of 3.8 like the previous version, so make sure to backup your Scripts folder (aka sites-packages) to avoid losing scripts that you have added. In addition to those I have also added VapourSynth Editor r19 mod 1, which will be required for these new versions. Another note, the version of Image Reader/Writer is from R54 due to the fact that the API4 version would not autoload, I'll be looking into that and hopefully try to figure out why.
Selur
30th September 2021, 04:15
Are those API4 or API3 builds?
l33tmeatwad
30th September 2021, 04:26
Good question, vspipe lists both? I didn't see any way to specify so I assume it doesn't matter for VapourSynth itself since I saw it supported both types of plugins and I don't really know how to compile the plugins for API4 yet so they are all whatever the default is.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.