View Full Version : New anime filter: mfToon
Chainmax
25th September 2003, 00:34
Oh well, never mind. mfToon is awesome anyway, so I'll get my head out of my ass and learn how to use it.
Chainmax
25th September 2003, 22:24
A couple of questions:
1) If the video needs denoising, are the C3D calls in mfToon good enough or should I use something extra?
2) Does it perform better before or after IVTC/Deinterlace filters?
mf
26th September 2003, 11:33
Originally posted by Chainmax
A couple of questions:
1) If the video needs denoising, are the C3D calls in mfToon good enough or should I use something extra?
2) Does it perform better before or after IVTC/Deinterlace filters?
1) C3D? Where? I don't see it anywhere.
2) After.
Chainmax
26th September 2003, 20:06
from the 8th post in the second page of the other mfToon thread:
semifinal = darkyv12.BicubicResize(2560, 1920, 0, 0.75).XSharpen(255, 255) \
.BicubicResize(640, 480, 0, 0.75).aWarpSharp().Convolution3D(preset="AnimeLQ")
final = orig.MergeLuma(semifinal)
return final
(emphasis mine).
One more question: since mfToon works better after IVTC/Deinterlace filters, I assume it works better after filters like Dust and GuavaComb too?
digitize
27th September 2003, 15:34
well one would not want to amplify noise now would they ;) (i.e. cleaning the source is reccomended before using mftoon).
mf
27th September 2003, 17:42
Originally posted by Chainmax
from the 8th post in the second page of the other mfToon thread:
semifinal = darkyv12.BicubicResize(2560, 1920, 0, 0.75).XSharpen(255, 255) \
.BicubicResize(640, 480, 0, 0.75).aWarpSharp().Convolution3D(preset="AnimeLQ")
final = orig.MergeLuma(semifinal)
return final
(emphasis mine).
One more question: since mfToon works better after IVTC/Deinterlace filters, I assume it works better after filters like Dust and GuavaComb too?
That's an old version I no longer support. Why would you even ask a question about something that I removed in later versions?
Chainmax
28th September 2003, 19:42
That was removed? Sorry, my bad :o.
clima
30th September 2003, 13:47
I have tried to use this filter but I can't succeed to make it work :/
[code]
with mfToon-v0.42.avs and the 3 dlls provided on mf's website
Avisynth open failure:
Evaluate: Unrecognized exception!
(C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.42.avs, line 115) <--- line 115 : .XSharpen(xstren, xthresh).BicubicResize(twidth, theight, 0, 0.75)
(I:\DVD\anime.avs, line 135) <--- line 135 : mfToon()
with mfToon-v0.32.avs and the 3 dlls provided on mf's website
Avisynth open failure:
Evaluate: Unrecognized exception!
(C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.32.avs, line 86) <--- line 115 : .XSharpen(xstren, xthresh).BicubicResize(twidth, theight, 0, 0.75)
(I:\DVD\anime.avs, line 135) <--- line 135 : mfToon()
[\code]
Here is my "configuration" :
I am using the last avisynth (version 2.52, build: Sep 17 2003) and the last version of MPEG2Dec3.
anime.avs :
[code]
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Warpsharp\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.32.avs")
function replace(clip c, int beg, int end, int by)
{
c.trim(0,beg-1)++loop(c.trim(by,by),end-beg+1,0,0)++c.trim(end+1,0)
}
mpeg2source("I:\DVD\anime.d2v",idct=5)
Telecide(guide=1)
replace(2440,2440,2439)
replace(3045,3046,3047)
replace(3091,3091,3090)
# [...] manuel dup in order to clean scene changes (very bad telecine anime (like in Eva's DVDs...)
Decimate(5,ovr="I:\DVD\anime.dec")
Top=0
Left=8
Right=10
Bottom=0
crop(Left,Top,-Right,-Bottom)
deen("c3d", rad=1)
mfToon()
ColorYUV(levels="TV->PC")
BicubicResize(640,480,0,0.5)
undot()
limiter()
[\code]
I have been playing with avisynth but no way, I can't make it work.
Thanks for the help :)
TNM
30th September 2003, 19:24
Hi, I tried to load mfToon 0.42 but vdm just pop up "invalid arguments to function EdgeMask". Here is the script I use
loadplugin("C:\Program Files\AviSynth 2.5\plugins\mfToon\awarpsharp.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\mfToon\warpsharp.dll")
loadplugin("C:\Program Files\AviSynth 2.5\plugins\mfToon\masktools.dll")
avisource("avi path").killaudio()
undot()
fluxsmooth()
converttoyuy2()
peachsmoother()
textsub("subtitle path")
import("C:\Program Files\AviSynth 2.5\plugins\mfToon\mftoon_042.avs")
mftoon()
Did I do anything wrong? :confused:
EDIT: I'm sorry, this problem has been mentioned in previous pages of this thread...
mf
30th September 2003, 22:01
Originally posted by clima
with mfToon-v0.32.avs and the 3 dlls provided on mf's website
Avisynth open failure:
Evaluate: Unrecognized exception!
(C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.32.avs, line 86) <--- line 115 : .XSharpen(xstren, xthresh).BicubicResize(twidth, theight, 0, 0.75)
(I:\DVD\anime.avs, line 135) <--- line 135 : mfToon()
Wrong :D. mfToon v0.32 has .BicubicResize(orig.width, orig.height, 0, 0.75) on line 86, and not .XSharpen(xstren, xthresh).BicubicResize(twidth, theight, 0, 0.75) :p. But sorry, the problem is out of my hands. This is AVISynth behaving instably on mfToon. I have problems with it all the time too, and others as well.
Originally posted by TNM
Hi, I tried to load mfToon 0.42 but vdm just pop up "invalid arguments to function EdgeMask".
Too new version of MaskTools :D.
BBQmyNUTZ
7th October 2003, 18:44
@mf: I ran into an issue when trying out your script here (GREAT WORK by the way!).
Using Avisynth 2.5, this script worked fine:
import("D:\Program Files\AviSynth 2.5\plugins\mftoon_032.avs")
mpeg2source("c:\file.d2v")
telecide(order=1,guide=1,post=0)
decimate()
MfToon()
This script crashes Vdub completely, the avi had already been IVTC'd:
import("D:\Program Files\AviSynth 2.5\plugins\mftoon_032.avs")
OpenDMLSource("c:\file.avi")
MfToon()
I'm using the latest AVS 2.5 compatible plugins & the special package linked to in the first message of this thread.
Kai
MajinMarc
12th October 2003, 03:22
I have been doing some serious encoding testing and have found some very interesting things, Deen Rocks in Removing Video Noise, I think personally it is better than Convolution3D. Secondly I have had no Success in Making Mfoon Work with d2v files. Originally The Problem was with Decomb.dll. It would always Cause a Access Violation when used before or after mftoon. Second I fixed that error by Switching over to toms Deinterlacer and that solved the Access Violation problem. Now I seem to Be Having a Problem with it erroring out after 38% of the First Pass. This is my Script, I know it's alot of filters but the source is really bad.
SetWorkingDir("C:\filters\")
LoadPlugin("mpeg2dec3.dll")
LoadPlugin("TomsMoComp.dll")
LoadPlugin("Deen.dll")
LoadPlugin("TemporalCleaner.dll")
LoadPlugin("Msmooth.dll")
LoadPlugin("vsfilter.dll")
Import("mfToon-v0.42.avs")
mpeg2source("C:\Encode\English.d2v")
TomsMoComp(1,5,1)
mftoon()
deen("a3d",4,9,1,9).TemporalCleaner(3,3).Temporalsoften(4,8,8,mode=2,scenechange=10)
MSmooth(strength=8,highq=true)
crop(14,2,694,472)
LanczosResize(640,480)
textsub("C:\Encode\Overlay.ssa")
I did alot of testing and took out each of the filters individually trying to isolate the problem but was unsuccessful, if there is anything anyone can suggest your comments will be greatly appreciated.
mf
12th October 2003, 14:38
Sorry guys. I really don't know. Lately I don't really have that much problems with mfToon. And really, I have no idea how to fix such problems. Afaik, they're AVISynth, and not anything wrong in my filter. It's scripted, so I really can't provide much support for things like this.
NightMare
14th October 2003, 23:15
Originally posted by mf
Sorry guys. I really don't know. Lately I don't really have that much problems with mfToon. And really, I have no idea how to fix such problems. Afaik, they're AVISynth, and not anything wrong in my filter. It's scripted, so I really can't provide much support for things like this.
just a thought
maybe u should change back to Deen
mf
15th October 2003, 16:00
Originally posted by NightMare
just a thought
maybe u should change back to Deen
Change what back to Deen?
NightMare
15th October 2003, 16:13
arnt u using masktools now
back in 0.32 u used deen warpsharp and awarpsharp
in 0.42 masktools warpsharp and awarpsharp
i think masktools is the cause of all the problems
mf
15th October 2003, 19:31
Originally posted by NightMare
arnt u using masktools now
back in 0.32 u used deen warpsharp and awarpsharp
in 0.42 masktools warpsharp and awarpsharp
i think masktools is the cause of all the problems
I use masktools in ALL versions, from 0.1 onwards. :sly:
NightMare
15th October 2003, 20:59
Originally posted by mf
I use masktools in ALL versions, from 0.1 onwards. :sly:
sorry abouy that :p i didnt use the past ver ;)
so u removed deen from the new ver
mf
15th October 2003, 21:56
Originally posted by NightMare
so u removed deen from the new ver
Yah, it was pretty useless.
LB
16th October 2003, 08:14
I love your script. It really does wonders for my anime, but... I am having the same issue someone earlier in this thread had (and am curious if anyone else is having the problem too). After using the mf function, my anime now has a flicker to it. It gets lighter then darker and this repeates. The source is pretty clean. I've also tried this on other shows and get the same effect. Dark, light, dark, like. The best way I can describe it is a strobe-like effect in the distance. Any thoughts on this and ideas on how to fix it?
Malevolent
18th October 2003, 02:43
To OBcecado
...And others with troubles getting aWarpSharp:
Don't use DL managers, and the link works.
On another note, the Masktools link is broken :P
Stil available at the Warpenterprises Avisynth filter collection site.
To mf:
Nice tool, just having some quick testruns with it, since i got me some toons to encode. Keep 'em coming.
mf
18th October 2003, 06:28
Originally posted by Malevolent
To mf:
Nice tool, just having some quick testruns with it, since i got me some toons to encode. Keep 'em coming.
Coming up soon: mfToon v0.5. :)
Velsk
26th October 2003, 03:13
Originally posted by mf
Too new version of MaskTools :D.
I get the same error Script error: there is no function named EdgeMask.
Where do you get the right version of MaskTools? I got mine off of http://mf.creations.nl/avs/ and got the error, then I googled Warpenterprises AviSynth filter collection but they have the same version of the plugin.
mf
26th October 2003, 14:00
Originally posted by Velsk
I get the same error Script error: there is no function named EdgeMask.
Where do you get the right version of MaskTools? I got mine off of http://mf.creations.nl/avs/ and got the error, then I googled Warpenterprises AviSynth filter collection but they have the same version of the plugin.
Hm. Maybe your filter path is wrong and you need to use LoadPlugin.
mf
7th December 2003, 18:12
Status report on mfToon v0.5 development:
The change to YV12 was smooth, but I am totally defeated with the linemask and sharp2. I can choose between haloed proper darkening, or non-haloed weak darkening. Inflate() doesn't do anything even when chained 8 times, and enhancing the lines in the mask just seems an impossible task. Sorry guys, if anyone still wants 0.5, it'll take a while longer.
Manao
7th December 2003, 18:30
Inflate() indeed doesn't work in the latest masktools. But if your are in a binary mode ( i.e. only 0 and 255 values, working on a mask for example ), then the following will do the trick :binary.blur(0.5,0.5).Binarize(1,false,Y=3,U=3,V=3)If you are not with binary values, you can do nothing about it ( except correct the masktools, of course ). I think, if I manage to find some time, that I'll try to correct them after Christmas, because when it comes to complex scripting, there are almost unavoidable.
mf
7th December 2003, 19:09
Originally posted by Manao
If you are not with binary values, you can do nothing about it ( except correct the masktools, of course ). I think, if I manage to find some time, that I'll try to correct them after Christmas, because when it comes to complex scripting, there are almost unavoidable.
Well I don't want binary values (they're evil with masks), so it can't be helped. Of course, it could be easy to compile the old masktools with only the inflate function, and rename it to "Dilate()", so the two won't conflict. If anyone would be willing I'd be very thankful.
mf
9th December 2003, 14:11
New version: mfToon-v0.44 (http://mf.creations.nl/avs/functions/mfToon-v0.44.avs)
This is a preview version for v0.5. This release has bugs, and some filter parameters have stopped working. There should be a speed increase and the flickering bug should have been fixed. Also, hsharp and vsharp have been disabled due to the fact that it caused strange effects. Also, hsharp and vsharp have been disabled.
The version number is because v0.43 was an internal version.
I don't consider this version to be suited for normal use, but please test it to see if the flickering bug is indeed resolved. Thanks.
Chainmax
9th December 2003, 15:09
Is this based off v0.32 or 0.42? I remember reading some posts that mentioned that they experienced flickering with the latter and not with the former...
mf
9th December 2003, 15:19
Originally posted by Chainmax
Is this based off v0.32 or 0.42? I remember reading some posts that mentioned that they experienced flickering with the latter and not with the former...
It's based on 0.45, which in turn is based on 0.43, which in turn is based on 0.42 :D. I'd never go back to 0.32's inferior linemask. Currently 0.45 is a big kludge that doesn't work right. 0.45 should be the bastard child that will grow into 0.5.
Human_USB
12th December 2003, 16:41
Any updates on the new version?
mf
12th December 2003, 16:49
Originally posted by Human_USB
Any updates on the new version?
Been to busy with getting clones on IRC, making SSTMC, and doing real fansubbing :D. But still, I need that Dilate (or Inflate, whatever ya wanna call it ;)) thing to work until anyone's gonna see mfToon-v0.5.
Human_USB
12th December 2003, 18:27
Ahhh.....
Thanks for the update. I hope you do GITS SAC Season 2 :D
clima
21st December 2003, 14:06
@mf : your mailbox is full :rolleyes:
mf
21st December 2003, 16:37
I know. That's you guys' faults :D. /me will clean it in a moment
Edit: Cleaned. You can now spam me with your questions again :p.
mrfil13
21st December 2003, 20:58
Hi, ive got mftoon .44 and using virtualdub, on the first pass the fps is 2-3, is this normal, i have a amd 2200xp. Just wondering if it could be sopmething i have done.
Cheers
Manao
21st December 2003, 21:01
mf : have a look here (http://forum.doom9.org/showthread.php?s=&threadid=67232). Now you have no excuses for not working on mfToon-v0.5 :D
mrfil13 : it's normal : quality has a price...
mf
21st December 2003, 23:28
Manao, I saw, very nice work. I'll release v0.5 tomorrow, but don't take my word for it. I have to clean the script and add YV12Layer, but for the rest it's done afaics.
mf
22nd December 2003, 17:04
And here it is!
http://mf.creations.nl/avs/mftoon-box.png (http://mf.creations.nl/avs/functions/mfToon-v0.5.avs)
Go test it! :)
Dark-Cracker
22nd December 2003, 17:46
naruto rulezzzz :)
what news in this version ? (speed increase ?)
++
mf
22nd December 2003, 17:54
Originally posted by Dark-Cracker
naruto rulezzzz :)
what news in this version ? (speed increase ?)
++
From the script:
####
##
## Allow me to quote MarcFD: Warning! YV12 Inside ^^
## mfToon is now completely YV12. New unsharp mask technique, and an upgrade to MaskTools
## 1.4.2. Flickering bug should be 100% resolved.
##
mrfil13
22nd December 2003, 18:21
Ive just tried tried the new version, but in virtual dub it has a error
invalid arguments to function "edgemask"
line 56
i have avisynth 2.5 and the newest versions of
MaskTools, aWarpSharp and WarpSharp
mf
22nd December 2003, 18:25
Originally posted by mrfil13
Ive just tried tried the new version, but in virtual dub it has a error
invalid arguments to function "edgemask"
line 56
i have avisynth 2.5 and the newest versions of
MaskTools, aWarpSharp and WarpSharp
Get MaskTools v1.4.2 (http://mf.craetions.nl/avs/filters/MaskTools142.dll).
ssjkakaroto
22nd December 2003, 20:34
hey mf you misspelled "creations" on the link you just gave here's the correct one
Mask Tools v1.4.2 (http://mf.creations.nl/avs/filters/MaskTools142.dll)
and thx a lot for the update :)
mf
22nd December 2003, 21:00
Originally posted by ssjkakaroto
hey mf you misspelled "creations" on the link you just gave here's the correct one
Mask Tools v1.4.2 (http://mf.creations.nl/avs/filters/MaskTools142.dll)
and thx a lot for the update :)
Well I type the word "creations" at least thrice a day so I'm surprised this is my first typo at it.
Dali Lama
22nd December 2003, 22:26
@mf
I am getting an unrecognized exception when I run the script on line 112?
I am using the recommended MaskTools, aWarpSharp, etc.
If others are not getting it then its probably my fault?
Thanks,
Dali
mf
22nd December 2003, 22:33
Originally posted by Dali Lama
@mf
I am getting an unrecognized exception when I run the script on line 112?
I am using the recommended MaskTools, aWarpSharp, etc.
If others are not getting it then its probably my fault?
Thanks,
Dali
I really wouldn't know. It works on two different AVIsynth versions, both 2.5.1 alpha and 2.5.3 release.
Dali Lama
22nd December 2003, 23:25
Ok thanks mf. I'll try to figure it out. If not the older version works well for me. If I can fix it I'll post.
Thanks,
Dali
skizm
22nd December 2003, 23:56
The problem I'm having is...
Script error: there is no function named "Unsharpmask"
(mfToon-v0.5.avs, line 83)
:/
I'm using the MaskTools from the link above, I have avisynth 2.5.3, and the newest WarpSharp package from warpenterprises... Hmmm... :\
mf
23rd December 2003, 00:10
Originally posted by skizm
I'm using the MaskTools from the link above, I have avisynth 2.5.3, and the newest WarpSharp package from warpenterprises... Hmmm... :\
There's your problem, wrong WarpSharp. Get this one (http://mf.creations.nl/avs/filters/WarpSharp.dll).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.