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.

[HELP] Adding a new filter to Avisynth
#11
I use the Protoon from the Custom panel, everything was normal and stable except for the "thing". Is it possible to include Protoon in the GUI?
Reply
#12
Yes, it could be added bei writing a "Custom script/filter additon". Smile
I'll write an xml file for it,..
Reply
#13
Quote:By the way, if I'm not using the wrong version of MaskTools, I'm getting an error with the mt_lutxy parameter in ProToon.avsi.
here too, using:
ClearAutoloadDirs()
SetFilterMTMode("DEFAULT_MT_MODE", MT_MULTI_INSTANCE)
LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\LSMASHSource.dll")
LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\RgTools.dll")
LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\masktools2.dll")
LoadPlugin("F:\Hybrid\64bit\Avisynth\avisynthPlugins\warpsharp.dll")
Import("F:\Hybrid\64bit\Avisynth\avisynthPlugins\mtmodes.avsi")
# loading source: G:\TestClips&Co\files\test.avi
# color sampling YV12@8, matrix: bt601, scantyp: progressive, luminance scale: limited
LWLibavVideoSource("G:\TestClips&Co\files\test.avi",cache=false,dr=true,format="YUV420P8", prefer_hw=0)
# current resolution: 640x352
Import("F:\Hybrid\CustomSynthScripts\proToon-v0.75.avsi")
# calling custom script 'ProToon'
proToon(strength=48, luma_cap=191, thinning=24, mask=true, show=false, sharpen=true, ssw=4, ssh=4, xstren=255, xthresh=255)
# Converting from 8 to 10bit for encoder
ConvertBits(10)
# setting output fps to 25.000fps
AssumeFPS(25,1)
PreFetch(16)
#  output: color sampling YV12@10, matrix: bt601, scantyp: progressive, luminance scale: limited
return last

What masktools2 version is needed for this to work?
(atm. it seems like there is a bug when thinning is used)

Cu Selur
Reply
#14
With this, proToon should work in both Avisynth and Vapoursynth.

Cu Selur
Reply
#15
I noticed there was a problem in protoon.avsi, and it wasn't related to MaskTools. While I was trying to figure out how to fix it, I saw that you had already taken care of it. I'm really happy about that. Thanks for your help!
Reply
#16
The bug I fixed was related to when thinning was used.
In this case, a mt_lutxyz-call was used while missing a parameter. Wink
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)