View Full Version : Need a Toon filter for 64bit avisynth, is there any?
tokiwarthoot
17th December 2015, 15:33
So I'm trying to "migrate" to 64bit avisynth in order to get rid of the memory limit so I can use more threads and make my encodes faster.
I've got either 64bit compiled versions of all the plugins I normally use or of a similar plugin for the same purpose.
The only thing I lack is a Toon filter to enlarge edges.
Is there any filter that can do this that was ported to 64bit?
If not, is it possible to load a 32bit filter into a 64bit filter chain?
I tried just loading the plugin with LoadPlugin() but it told me "not a valid win32 application"
Reel.Deel
17th December 2015, 15:50
Toon is closed source, unless someone makes a similar plugin or the author releases the source code, there probably won't be a 64-bit version anytime soon. Maybe you can try the Toon script: http://avisynth.nl/index.php/Toon_v0.82
creaothceann
17th December 2015, 17:28
If not, is it possible to load a 32bit filter into a 64bit filter chain?
http://avisynth.nl/index.php/Category:Piping
Groucho2004
17th December 2015, 17:38
http://avisynth.nl/index.php/Category:Piping
Please elaborate. I can't see how this workflow would allow AVS64 to load 32 Bit filters.
Motenai Yoda
17th December 2015, 19:35
fastlinedarkenmod?
tokiwarthoot
17th December 2015, 23:28
http://avisynth.nl/index.php/Category:Piping
Please elaborate. I can't see how this workflow would allow AVS64 to load 32 Bit filters.
Yeah, it would be cool if you could explain that.
I mean, I understand that if I were able to do something like:
AviSynth64=>pipe=>AviSynth32=>pipe=>AviSynth64
when I wanted to use an 32bit filter in the middle of a 64 filter chain that would be useful.
but with the tools available this cannot be done... or yes it can?
Toon is closed source, unless someone makes a similar plugin or the author releases the source code, there probably won't be a 64-bit version anytime soon. Maybe you can try the Toon script: http://avisynth.nl/index.php/Toon_v0.82
Will try it and see how that 0.82 version compares to the 1.1 one I was using on 32bit... thx!
fastlinedarkenmod?
I usually used both fastlinedarkenmod and toon when I needed to do this on my 32bit filter chains.
For now I'm calling fastlinedarkenmod twice so the lines are darker and easier for other filters (like antialiasing) to pick up.
But toon didn't only darken them as fastlinedarkenmod does, it actually enlarges them, which I used to counteract thinning of the lines introduced by awarpsharp and antialiasing.
just in case to show you guys what I want to fix:
Original1:
http://i.imgur.com/YU1sD52.jpg
Filtered1:
http://i.imgur.com/DsbQJyT.jpg
Original2:
http://i.imgur.com/QjvLH77.jpg
Filtered2:
http://i.imgur.com/A0v40bM.jpg
The images were dirty, with some blockiness, mosquito noise and aliased lines.
My filtering fixed most of this while not destroying too much detail.
The worst parts in term of loss of detail are the basketball net in the first image, and the window frame next to the curtain in the second image. But this is because of the smoothing, and not really the point of the post.
So, back to the point of the post, if you see the outlines of the girl, and the lines of her uniform, and the lines from the windows in the first frame, they are noticeably thinner.
They have been thinned by the antialiasing and this is exactly what I want to enlarge them for a little before doing it.
Darkening them helps (and I will try darkening them even more) but is not enough, I got better results with Toon in the past.
Will try Toon 0.82 and get back to you guys.
creaothceann
18th December 2015, 01:03
Yeah, it would be cool if you could explain that.
I mean, I understand that if I were able to do something like:
AviSynth64=>pipe=>AviSynth32=>pipe=>AviSynth64
when I wanted to use an 32bit filter in the middle of a 64 filter chain that would be useful.
but with the tools available this cannot be done... or yes it can?
Sorry, was a bit sleepy when I read the OP's question, and mixed up things.
But in theory this should be possible if there's a plugin that can read from stdin, right?
Motenai Yoda
22nd December 2015, 06:39
how do you call faslinedarken? it has a strenght parameter to increase how much it'll darken and a thinning one to control how much thin lines...
IIRC toon didn't enlarge, neither toonlite, just darken.
`Orum
1st January 2016, 12:23
I just moved from 32 -> 64 bit workflow, and from what I've found you have to make some compromises. Basically it amounts to either piping to get the 32-bit filters, or finding alternatives that can often be as good as, if not better, than what you used to have.
Looking at your source, I have a few questions. How much of the noise is temporal vs spacial? Have you tried other filter combinations to combat the noise or artifacts? For example, what I've found actually works well on animated sources, but is a bit counter intuitive, is MDeGrain. Yes, it's slow as hell, and will produce banding, but at least the latter is solved by pairing it with f3kdb. Best of all, you can use both of them together for a 16-bit workflow, and either export in 16-bit or 10-bit directly to x264 10-bit. All have 64-bit support too, so you can avoid that hassle.
Here's an example of something I'm working on at the moment (though this is an "8-bit" version, what's actually fed to x264 is higher depth):
http://i.imgur.com/dwxp6iT.png
p.s. - If you're output from f3kdb is < 16-bit, use ordered dithering, as the end result is more likely to survive after encoding.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.