Selur's Little Message Board

Full Version: Load 64bit Avisynth filter in Vapoursynth
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
Code:
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:
Code:
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.
Code:
# 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.
Code:
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'.
Code:
return clip
returns the clip.

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

Cu Selur