08.10.2025, 19:26
- The https://github.com/Selur/hybrid-vapoursynth-addon scripts are meant to be used if you install Vapoursynth and the plugins through them. First building vapoursynth, then the plugins. If you install either from different sources do not use these scripts.
Quote:Failed to initialize VapourSynth environment!
if you get this when using build-vapoursynth.sh, you forgot step 4 of https://github.com/Selur/hybrid-vapoursy.../README.md
Quote:vapoursynth.Error: Plugin /home/superboo07/opt/vapoursynth/vsplugins/libvslsmashsource.so already loaded (systems.innocent.lsmas) from /home/superboo07/opt/vapoursynth/vsplugins/libvslsmashsource.so
this should only happen if there is another source for plugins loaded somewhere,...
Okay, looking at the debug output:
is wrong,# Imports
import vapoursynth as vs
# getting Vapoursynth core
import sys
import os
core = vs.core
# Import scripts folder
scriptPath = '/home/superboo07/Applications/hybrid/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# loading plugins
core.std.LoadPlugin(path="/home/superboo07/opt/vapoursynth/vsplugins/Support/libakarin.so")
core.std.LoadPlugin(path="/home/superboo07/opt/vapoursynth/vsplugins/libaddgrain.so")
core.std.LoadPlugin(path="/home/superboo07/opt/vapoursynth/vsplugins/libvslsmashsource.so")
# Import scripts
import addGrain
import validate
# Source: '/home/superboo07/Videos/Screencasts/Screencast_20251007_165931.webm'
# Current color space: YUV420P8, bit depth: 8, resolution: 470x164, frame rate: 59fps, scanorder: progressive, yuv luminance scale: limited, matrix: 470bg, format: vp9
# Loading /home/superboo07/Videos/Screencasts/Screencast_20251007_165931.webm using LWLibavSource
clip = core.lsmas.LWLibavSource(source="/home/superboo07/Videos/Screencasts/Screencast_20251007_165931.webm", format="YUV420P8", stream_index=0, cache=0, prefer_hw=0)
frame = clip.get_frame(0)
# setting color matrix to 470bg.
clip = core.std.SetFrameProps(clip, _Matrix=vs.MATRIX_BT470_BG)
# setting color transfer (vs.TRANSFER_BT601), if it is not set.
if validate.transferIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Transfer=vs.TRANSFER_BT601)
# setting color primaries info (to vs.PRIMARIES_BT470_BG), if it is not set.
if validate.primariesIsInvalid(clip):
clip = core.std.SetFrameProps(clip=clip, _Primaries=vs.PRIMARIES_BT470_BG)
# setting color range to TV (limited) range.
clip = core.std.SetFrameProps(clip=clip, _ColorRange=vs.RANGE_LIMITED)
# making sure frame rate is set to 59fps
clip = core.std.AssumeFPS(clip=clip, fpsnum=59, fpsden=1)
# making sure the detected scan type is set (detected: progressive)
clip = core.std.SetFrameProps(clip=clip, _FieldBased=vs.FIELD_PROGRESSIVE) # progressive
# adding grain using GrainFactory3
clip = addGrain.GrainFactory3(clp=clip)
# set output frame rate to 59fps (progressive)
clip = core.std.AssumeFPS(clip=clip, fpsnum=59, fpsden=1)
# output
clip.set_output()
should not include by default.# loading plugins
core.std.LoadPlugin(path="/home/superboo07/opt/vapoursynth/vsplugins/Support/libakarin.so")
core.std.LoadPlugin(path="/home/superboo07/opt/vapoursynth/vsplugins/libaddgrain.so")
core.std.LoadPlugin(path="/home/superboo07/opt/vapoursynth/vsplugins/libvslsmashsource.so")
These lines should only appear one enables 'vsLoadLibrariesOnNonWindows' in a misc.ini, which Hybrid does not by default.
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.

