This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Load 64bit Avisynth filter in Vapoursynth
#1
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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)