Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
14th May 2003, 12:57 | #1 | Link |
·
Join Date: Jan 2002
Posts: 1,729
|
New anime filter: mfToon
Ok, so some of you might have heard of this by reading the AVISynth development forum, however not all of you do, so I'm posting here, now that I reckon I won't be doing much about it anymore.
I have mfToon v0.32 ready, and I think it's good enough for normal usage now. You can follow development from v0.1 onward here. The script (it's a function, not a real filter dll) can be found here. What does it do: in default operation, it performs line darkening, Xsharpening, and warp sharpening. Sharpening is slow, and because of that I've made it optional. Because of colorspace conversions, most of the operations are done on luma only. Warp sharpening can be done either on luma only or on luma and chroma (chroma linked to luma). Input requires to be YV12, this is not checked, it's probably safe to use other colorspaces but the output will always be YV12. I'm not responsible for what happens if you use something other than YV12 . Usage and parameters: Code:
Import("mfToon-v0.32.avs") AVISource/MPEG2Source/WhateverSource("file") mfToon() Normal parameters:
Advanced parameters, you're not likely to be tweaking these:
Explanation of advanced parameters: mfToon uses masks, and these parameters influence them. Strength means opacity of the effect, range means the value compression, boost means an opaque/transparency boost, where a value below 1.0 is negative, and limiter means the final range compression. Yeah, these are quite some parameters, but I love configurability . Initially I wanted to hide the drawbacks, and let you figure them out (they're hardly noticable), but nahh . Drawbacks: Sometimes a strange "dark edge" effect on seemingly low-detail surfaces, and a VERY slight darkening along non-line edges (this is the effect you get from sharpeners ala MSharpen and aSharp, so you probably won't notice it). Dependencies are: Special(!) Warp Sharp package MaskTools aWarpSharp Thanks go to: Anonymous author of the new WarpSharp package neuron2 (for the original XSharpen) Kurosu Marc FD The whole forum and its users Have fun! PS: Just for fun, here's a nice challenge. I just noticed I accidentally made one obsolete parameter. See if you can spot it . Last edited by mf; 14th May 2003 at 13:03. |
14th May 2003, 13:12 | #2 | Link |
Registered User
Join Date: Aug 2002
Posts: 142
|
For all of those who have not tried this filter.... well you're missing out ^^. It is directed towards anime... not sure how and if it'd really work with live action stuff. Anyway, it is able to darken lines and sharpen the picture very well. The one drawback atm is the speed, but speed isn't of the largest concern, quality is, and that's where this filter does well. Well done mf
|
15th May 2003, 07:27 | #4 | Link |
Registered User
Join Date: Apr 2002
Posts: 134
|
(OK, I just re-read some of the txt files and it appears that I need to install 2.51). I'll try that tomorrow and get back to you.
Does this work with 2.08? I'm trying to use it and it errors out every time I pull it into CCE. It doesn't say an error, just a picture with an exclamation error. I just tried to open the script in VDub and it states there is a script error: There is no function named Edge Mask.I took all the downloadable files from this page and just can't seem to get them set up right. I must be doing something wrong. My sample script is below. Import("C:\Program Files\AviSynth2\plugins\mfToon-v0.32.avs") AVISource("F:\anime\naruto episodes\naruto test.avi") mfToon() BicubicResize(704,440) AddBorders(8,20,8,20) ResampleAudio(44100) I can't wait to try this. It looks cool. Especially since I've been converting Naruto fansubs to DVD! Last edited by zeus163; 15th May 2003 at 08:40. |
15th May 2003, 13:39 | #6 | Link |
Moderator
Join Date: Oct 2001
Location: On top of the world!
Posts: 1,837
|
Here's a funny thing. If you put the 3 above plugins into the Avisynth 2.51 Plugin folder, dvd2svcd fails when using the native VFW routines of Windows (used by preview and frameselection). I haven't gone into depth with the issue, but if anybody cares I can investigate further.
__________________
Cheers, dvd2svcd |
15th May 2003, 14:10 | #7 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Quote:
|
|
15th May 2003, 14:11 | #8 | Link |
Moderator
Join Date: Oct 2001
Location: On top of the world!
Posts: 1,837
|
Sorry, my bad. Note to self "use the freaking search button"
However, I find it funny that mf apparently doesn't need to load warpsharp manually. (if you look in the mfToon function it isn't loaded anywhere and therefore mf should get the same problem when previewing an avs in MediaPlayer 6.4)
__________________
Cheers, dvd2svcd Last edited by dvd2svcd; 15th May 2003 at 14:16. |
15th May 2003, 15:27 | #9 | Link | |
·
Join Date: Jan 2002
Posts: 1,729
|
Quote:
|
|
15th May 2003, 16:00 | #10 | Link |
Asker of Questions
Join Date: Oct 2001
Location: Florida
Posts: 433
|
I didn't need to explicitly load any plugins to make this work. Thanks for the script.
I'm encoding a 90 minute anime to one CD right now. I'll reply with my results if they are interesting. I'm also using the latest XviD features, like Trellis, etc.. so it will be a while. Heh.
__________________
"The real trick to optimizing color space conversions is of course to not do them." --trbarry, April 2002 |
15th May 2003, 19:36 | #15 | Link |
Asker of Questions
Join Date: Oct 2001
Location: Florida
Posts: 433
|
I give up. I just read through the script like 10 times, and every defined parameter seems like it is used in a function that actually passes data to one of the three clips that is used for the final output. 18 "independent" parameters, 18 are defined, 18 are documented.
Can we get a hint?
__________________
"The real trick to optimizing color space conversions is of course to not do them." --trbarry, April 2002 |
15th May 2003, 20:01 | #16 | Link |
Registered User
Join Date: Apr 2002
Posts: 134
|
I loaded all the plug-in's into my script and that did not solve the problem. Although the error it reported was something like screen size not accepted. I'm at work so don't remember what it says. I think I have to install avisynth 2.51, but whenever I do that I seem to have problems modifying my working scripts for fielddeinterlace (i think it's something to do with mpeg2dec that I'm trying to use). When I get home, I'll try this again and upgrade to 2.51 and see if I can get it to work.
|
15th May 2003, 20:11 | #17 | Link | |
Asker of Questions
Join Date: Oct 2001
Location: Florida
Posts: 433
|
zeus: You did read this, right?
Quote:
__________________
"The real trick to optimizing color space conversions is of course to not do them." --trbarry, April 2002 |
|
15th May 2003, 20:14 | #18 | Link |
Member
Join Date: Nov 2002
Posts: 203
|
zeus163: Try the new MPEG2Dec3 v1.04 and AviSynth 2.5.1 RC 3.1
|
15th May 2003, 20:41 | #20 | Link | ||
·
Join Date: Jan 2002
Posts: 1,729
|
Quote:
Quote:
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|