Selur's Little Message Board
Load 64bit Avisynth filter in Vapoursynth - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Step-by-Step (https://forum.selur.net/forum-8.html)
+--- Thread: Load 64bit Avisynth filter in Vapoursynth (/thread-3839.html)



Load 64bit Avisynth filter in Vapoursynth - Selur - 30.08.2024

On Windows, it's possible to load and use Avisynth filters (!not scripts!) inside Vapoursynth.
You can do this in Hybrid inside 'Filtering->Vapoursynth->Custom' sections.
Here's an example how to load and use DeSpot:
core.avs.LoadPlugin("F:/Hybrid/64bit/Avisynth/avisynthPlugins/despot.dll")
# requires colorformat YUV420P8
clip = core.avs.DeSpot(clip, median=False,p1=24,p2=12,pwidth=6,pheight=5,ranked=True,sign=0,minpts=0,maxpts=0,p1percent=10,dilate=1,fitluma=True,blur=1,tsmooth=0,motpn=True,seg=2,color=False,mscene=0,mthres=16,mwidth=7,mheight=5,show=0,show_chroma=False,interlaced=False)

return clip
Explanation:
core.avs.LoadPlugin("F:/Hybrid/64bit/Avisynth/avisynthPlugins/despot.dll")
Loads the DeSpot filter from "F:/Hybrid/64bit/Avisynth/avisynthPlugins/despot.dll".
Note that I use slashes (/) instead of backslashes (\) and you need to adjust this path to wherever the filter you want to use is located.
# requires colorformat YUV420P8
Lets Hybrid know that the filter only supports YUV420P8 (<> 8bit YV12). This should be adjusted according to your needs and the capability of the filter.
clip = core.avs.DeSpot(clip, median=False,p1=24,p2=12,pwidth=6,pheight=5,ranked=True,sign=0,minpts=0,maxpts=0,p1percent=10,dilate=1,fitluma=True,blur=1,tsmooth=0,motpn=True,seg=2,color=False,mscene=0,mthres=16,mwidth=7,mheight=5,show=0,show_chroma=False,interlaced=False)
calls the filter with the signature from theĀ  DeSpot-Avisynth Page.
Note that Vapoursynth uses 'True' and 'False' instead of Avisynths 'true' and 'false'.
return clip
returns the clip.

Hope, this helps to load 64bit Avisynth filters in Hybrid if need be.

Cu Selur