Selur's Little Message Board

Full Version: Plugin Filters missing and I'm not sure how to get them
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
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.




Code:
[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]




Code:
# 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)
Hmm,... that said, I just noticed seems like the subscript which should contian the removegrain build instructions https://github.com/Selur/hybrid-vapoursy...vegrain.sh mistakenly contains:
Code:
mkgh vapoursynth/vivtc libvivtc
but should contains
Code:
mkgh vapoursynth/vs-removegrain libremovegrain
(fixed that just now)

But there seems to be something wrong besides that, since the path is wrong 'GrainFilter/RemoveGrain' should only be used on Windows systems.
=> I have no real clue how you setup the Vapoursynth-part of your Hybrid installation and thus have no clue what's happening.
Try updating and running the plugin installation script again.

Cu Selur
While i did appreciate the plugin fix, that didn't solve the issue sadly. 

I tried using the default Plugin location inside the VS folder as well and it still gave me the same error. I recall at some point i did manage to generate that folder, but they were empty so i didn't pay them any mind, I just can't recall how i did it. I'mm current'y running the  deploy script in hops that'll somehow do it.

Code:
fletcher@fletcher: ~ $ vspipe -v

VapourSynth Video Processing Library

Copyright (c) 2012-2021 Fredrik Mellbin

Core R58

API R4.0

API R3.6
So Removing Grain Filter Lines from that VS script does allow it to load properly. So if you can work out Why it's trying to load that in the first place that would probably fix the issue
Since you didn't share any details, not even what Hybrid version you are using, I had to search a bit to find where 'GrainFilter/RemoveGrain' was used on non-Windows systems.
-> it's a bug in DeSpot, don't use DeSpot and you should be fine.
Took me some effort, but I was able to get the Dev biuld you sent me working, but I can't really test it because of a new crash I get.

Code:
Couldn't find vsCCDAddFilterPushButton(1)
Couldn't find vsCCDRemoveFilterPushButton(1)
Then it clean shutsdown.

I've working it out to some issue with vsscripts. Deleting those allows it to load. However i have no VS at that point.
Sorry, I overlooked CCD, will fix next week, since I'm away till mid of the week only on mobile till then.
Side note: the shutdown is not caused by the CCD buttons, that is caused by something else.
I went back through the old releases and the newest once to not give me this issue now is 2021.12.21. Which is strange because before this i was using 2022.03.20 with no issue.
via pm you wrote that you got:
Quote:qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb.
is either related to using some vnc which isn't compatible with the Qt version used or the Qt version on your system not being compatible with the version Hybrid uses.

Cu Selur

Ps.: send you a link to a dev verison where the CCD button issue is fixed.
The Qt issue I solved. I just deleted the included QT libs and it worked.

I wasn't able to get the dev version you sent me. I wasn't' on for a couple days and the link expired before I could grab it.
Pages: 1 2