20.05.2022, 05:11
Title says the basic issue. I have some Filters missing. I when to use the Grain remove filter and it seems it's Missing. I decided to try the plugin compiling script and it didn't give me what i needed. I tried the official Binary release ofhybrid with all the VS plugins and whatnot and it wasn't there.
Note I'm on linux.
Note I'm on linux.
[color=#800000][font=Noto Sans]Failed to evaluate the script:
Python exception: Failed to load /home/fletcher/.hybrid/vsplugins/GrainFilter/RemoveGrain/RemoveGrainVS.so. Error given: /home/fletcher/.hybrid/vsplugins/GrainFilter/RemoveGrain/RemoveGrainVS.so: cannot open shared object file: No such file or directory```[/font][/color]
# Imports
import os
import sys
import vapoursynth as vs
# getting Vapoursynth core
import functools
core = vs.core
# Import scripts folder
scriptPath = '/opt/hybrid/vsscripts'
sys.path.insert(0, os.path.abspath(scriptPath))
# Loading Plugins
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libfmtconv.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libfluxsmooth.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libdeblock.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libremovegrain.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libmvtools.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/GrainFilter/RemoveGrain/RemoveGrainVS.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libdotkill.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libvivtc.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libmiscfilters.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libtdeintmod.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/vsznedi3.so")
core.std.LoadPlugin(path="/home/fletcher/.hybrid/vsplugins/libvslsmashsource.so")
# Import scripts
import havsfunc
import mvsfunc
import lostfunc
# source: '/home/fletcher/Documents/Pollyanna/Pollyanna 01.mkv'
# current color space: YUV420P8, bit depth: 8, resolution: 720x480, fps: 29.97, color matrix: 470bg, yuv luminance scale: limited, scanorder: top field first
# Loading /home/fletcher/Documents/Pollyanna/Pollyanna 01.mkv using LWLibavSource
clip = core.lsmas.LWLibavSource(source="/home/fletcher/Documents/Pollyanna/Pollyanna 01.mkv", format="YUV420P8", cache=0, prefer_hw=0)
# making sure input color matrix is set as 470bg
clip = core.resize.Bicubic(clip, matrix_in_s="470bg",range_s="limited")
# making sure frame rate is set to 29.970
clip = core.std.AssumeFPS(clip=clip, fpsnum=30000, fpsden=1001)
# Setting color range to TV (limited) range.
clip = core.std.SetFrameProp(clip=clip, prop="_ColorRange", intval=1)
original = clip
# cutting from frame 0 to 2731 - WARNING: This might cause synch issues
clip = core.std.Trim(clip=clip, first=0, last=2731)
# cutting from frame 0 to 2731 - WARNING: This might cause synch issues
original = core.std.Trim(clip=original, first=0, last=2731)
clip2clip = clip
clip2clip = core.tdm.TDeintMod(clip=clip2clip, field=0, edeint=core.znedi3.nnedi3(clip=clip, field=0),order=1)
clip = core.vivtc.VFM(clip=clip, order=0, mode=3)
# VDecimate helper function
def postprocess(n, f, clip, deinterlaced):
if f.props['_Combed'] > 0:
return deinterlaced
else:
return clip
clip = core.std.FrameEval(clip=clip, eval=functools.partial(postprocess, clip=clip, deinterlaced=clip2clip), prop_src=clip)
clip = core.vivtc.VDecimate(clip=clip)# new fps: 23.976
clip2original = original
clip2original = core.tdm.TDeintMod(clip=clip2original, field=0, edeint=core.znedi3.nnedi3(clip=original, field=0),order=1)
original = core.vivtc.VFM(clip=original, order=0, mode=3)
original = core.std.FrameEval(clip=original, eval=functools.partial(postprocess, clip=original, deinterlaced=clip2original), prop_src=original)
original = core.vivtc.VDecimate(clip=original)# new fps: 0
clip = core.dotkill.DotKillS(clip=clip, iterations=10)
clip = lostfunc.DeSpot(o=clip)
clip = lostfunc.DeSpot(o=clip)
clip = lostfunc.DeSpot(o=clip)
clip = lostfunc.DeSpot(o=clip)
clip = lostfunc.DeSpot(o=clip)
# applying delocking using Deblock
clip = core.deblock.Deblock(clip=clip)
# cropping the video to 708x478
clip = core.std.CropRel(clip=clip, left=6, right=6, top=2, bottom=0)
# cropping the video to 708x478
original = core.std.CropRel(clip=original, left=6, right=6, top=2, bottom=0)
# denoising using FluxSmooth
clip = core.flux.SmoothT(clip=clip)
clip = core.fmtc.resample(clip=clip, kernel="spline16", w=712, h=480, interlaced=False, interlacedd=False)
original = core.resize.Bicubic(clip=original, width=712, height=480)
# %3 - Forcing color sampling adjusting of original to match filtered version.
original = core.resize.Bicubic(clip=original, format=vs.YUV420P16, range_s="limited")
# Anti Aliasing using DAA
clip = havsfunc.daa(c=clip)
# adjusting output color from: YUV420P16 to YUV420P10 for x265Model
clip = core.resize.Bicubic(clip=clip, format=vs.YUV420P10, range_s="limited")
# adjusting for FilterView
if (original.format.id != clip.format.id):
if (original.format.color_family == vs.RGB and clip.format.color_family != vs.RGB):
original = core.resize.Bicubic(clip=original, format=clip.format.id, matrix_s="470bg", range_s="limited")
elif (original.format.color_family == clip.format.color_family):
original = core.resize.Bicubic(clip=original, format=clip.format.id, range_s="limited")
else:
original = core.resize.Bicubic(clip=original, format=clip.format.id, matrix_in_s="470bg", range_s="limited")
original = core.text.Text(clip=original,text="Original",scale=1)
clip = core.text.Text(clip=clip,text="Filtered",scale=1)
stacked = core.std.StackHorizontal([original,clip])
# set output frame rate to 23.976fps
stacked = core.std.AssumeFPS(clip=stacked, fpsnum=24000, fpsden=1001)