The following warnings occurred:
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.3.12-nmm1 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/printthread.php(287) : eval()'d code 2 errorHandler->error_callback
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



Selur's Little Message Board
[HELP] Adding a new filter to Avisynth - Printable Version

+- Selur's Little Message Board (https://forum.selur.net)
+-- Forum: Hybrid - Support (https://forum.selur.net/forum-1.html)
+--- Forum: Problems & Questions (https://forum.selur.net/forum-3.html)
+--- Thread: [HELP] Adding a new filter to Avisynth (/thread-3791.html)

Pages: 1 2


Adding a new filter to Avisynth - renarchi - 27.07.2024

Would you consider adding vmtoon for AviSynth? Or, if I can do it myself, how can I add it?


RE: Adding a new filter to Avisynth - Selur - 27.07.2024

I never used VMToon,...
Assuming you know your way around Avisynth, you can call it in a custom section.
You could also write a Custom script/filter additon to include it in the GUI.
(Hybrid\CustomSynthScripts, contains some examples.)

Cu Selur


RE: Adding a new filter to Avisynth - renarchi - 27.07.2024

I thought I could do it, but I didn't have the knowledge. Can you help me add this filter? To be honest, I would really like you to do this. I looked at the examples, but I couldn't even understand the DLL names; they all seemed to be abbreviated


RE: Adding a new filter to Avisynth - Selur - 27.07.2024

I can look at it tomorrow (on my way to bed).
From a quick look, that script is really old and I'm not sure all the dependencies work with Avisynth+ nowadays (preferably 64bit):
  • XSharpen (no clue where to get a download for that)
  • MaskTools (no clue whether a current mask tool version will work)

Why do you ask for support for such an old script if you haven't used it before?
According to https://forum.doom9.org/showthread.php?p=1060081 it does not sound like vmtoon is that good,...

Cu Selur

Ps.: also using Vapoursynth you probably can get easier (maybe better) results for cartoon content.


RE: Adding a new filter to Avisynth - renarchi - 27.07.2024

Actually, I was using Supertoon, but sometimes it confuses shadows with line art. When I tried the same frames with VMToon on avisynth, the issue was resolved. I don't know, maybe it's as you said and it's bad, but for now, I'm seeing better results. The choice is yours. Good night. 🙂


RE: Adding a new filter to Avisynth - Selur - 28.07.2024

Can you share the dlls and scripts you used when using vmToon?
btw. seems like vmToon is old too:
Quote:proToon is a line darkening script, used to be known as vmToon and before that mfToon.
see: http://avisynth.nl/index.php/ProToon


RE: Adding a new filter to Avisynth - renarchi - 28.07.2024

Oh, sorry about that! tried ProToon and it looks so much better. Let's skip VMToon and go with ProToon instead 🙂 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.


RE: Adding a new filter to Avisynth - Selur - 28.07.2024

Okay, ProToon doesn't work for me since I have no 64bit XSharpen dll.
So, I'm not adding that to Hybrid.
Assuming you got all the libraries, you can create a "Filtering->Avisynth->Custom" and enter:
LoadPlugin("PATH TO \64bit\Avisynth\avisynthPlugins\RgTools.dll")
LoadPlugin("PATH TO  \64bit\Avisynth\avisynthPlugins\masktools2.dll")
LoadPlugin("PATH TO  the XSharpen dll")
Import("PATH TO proToon.avsi") # this path need to be adjusted
proToon()
to use it.
I'll write a port for Vapoursynth.

Cu Selur


RE: Adding a new filter to Avisynth - renarchi - 28.07.2024

Required Plugins
The latest versions of the following filters are recommended unless stated otherwise:

MaskTools2
RemoveGrain (part of the RemoveGrain v1.0b package)
RgTools (recommended drop-in replacement for RemoveGrain!)
WarpSharp
Isn't it enough to install these three? Why are you mentioning XSharpen?
works for me with these three installed


RE: Adding a new filter to Avisynth - Selur - 28.07.2024

WarpSharp probably offers XSharpen Smile
=> yes: http://www.avisynth.nl/index.php/WarpSharp, but
Quote: NOTE: the 64-bit WarpSharp plugin has a bug, the output of the Warpsharp() filter on x64 is different then the x32 version [1].
So instead of:
LoadPlugin("PATH TO  the XSharpen dll")
add
LoadPlugin("PATH TO  the warpsharp.dll")