VirtualDubMod,AviScript & mftoon error - Unsharpmask

The old Video Software Help forum, left visible as an archive.
Locked
User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

VirtualDubMod,AviScript & mftoon error - Unsharpmask

Post by Ayanefan » Tue Aug 29, 2006 3:45 pm

I've seen a few other posts with the same problem but mine is persitent, I have this AVS script:

------
LoadPlugin("C:\Program Files\AviSynth 2.5\WarpPlug\WarpSharp.dll")
Import("C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.52.avs")
AviSource("E:\Initial D AMV\Loga-Initiald-1.avi").ConvertToYV12
deen("a3d",2,5,7)
mftoon(strength=15)
-------

I load it from VirtualDubMod 1.5.10.2 ( with latest patch) and I get this error:
----
Avisynth open failure:
Script error: there is no function named "Unsharpmask"
(c:\program files\avisynth 2.5\plugins\mftoon=v-.52.avs, line 78)

Here's line 78: orig.Unsharpmask(300, 4, 0)

I just reloaded my laptop and downloaded the CCCP codecs, AviSynth 2.5.6, VirtualDubMod etc... so the system is fresh.
I installed the WarpSharp.dll in a separate directory as per Scintilla's reply on a previous thread with the same issue.

I know it has to be something silly I'm missing so grill me with questions, I really want my next vid to look good but I can't get past the starting gate.

:? Thanks in advance.

Ayanefan

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Tue Aug 29, 2006 5:06 pm

Make sure it's the WarpSharp.dll from <a href="http://www.avisynth.org/warpenterprises ... .zip">this package</a>. Also check your mfToon script to make sure it's not trying to load the filter as well, or anything like that.

If that doesn't work, see if moving the LoadPlugin line to below the Import line makes any difference.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Tue Aug 29, 2006 8:34 pm

Scintilla wrote:Make sure it's the WarpSharp.dll from <a href="http://www.avisynth.org/warpenterprises ... .zip">this package</a>. Also check your mfToon script to make sure it's not trying to load the filter as well, or anything like that.

If that doesn't work, see if moving the LoadPlugin line to below the Import line makes any difference.
Well, that part worked, but you know what happens, when you fix one problem you make 2 more. This time I have:
Script error: there is no funciton named MaskedMerge
from the same mftoon call.
Well I downloded the MaskTools and added a new Folder and copied all the files there and called the mt_masktools.dll file from the loadplugin command and it is still not working. Unless I need to copy all the files and folders somewhere else, I have the Masktools it's own home under the Avisynth folder, not in the plugins (like what I did for the WarpSharp).

Still plugging away at it.

Ayanefan

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Post by Scintilla » Tue Aug 29, 2006 10:00 pm

ayanefan wrote:Script error: there is no funciton named MaskedMerge
from the same mftoon call.
Well I downloded the MaskTools and added a new Folder and copied all the files there and called the mt_masktools.dll file from the loadplugin command and it is still not working. Unless I need to copy all the files and folders somewhere else, I have the Masktools it's own home under the Avisynth folder, not in the plugins (like what I did for the WarpSharp).
IIRC, mt_masktools.dll has all different filter names from earlier MaskTools versions. Therefore, mfToon 0.52 won't work with the new MaskTools; you need the old one. Version 1.5.8 should do the trick; you can find it <a href="http://manao4.free.fr/">here</a> or <a href="http://mf.creations.nl/avs/filters/">here</a>.

Dammit, what happened to Manao's other filedump and Didée's? Sheesh, you disappear from the scene for a few months and suddenly all your bookmarks are out of date...
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Wed Aug 30, 2006 4:55 am

Scintilla wrote: IIRC, mt_masktools.dll has all different filter names from earlier MaskTools versions. Therefore, mfToon 0.52 won't work with the new MaskTools; you need the old one. Version 1.5.8 should do the trick; you can find it <a href="http://manao4.free.fr/">here</a> or <a href="http://mf.creations.nl/avs/filters/">here</a>.

Dammit, what happened to Manao's other filedump and Didée's? Sheesh, you disappear from the scene for a few months and suddenly all your bookmarks are out of date...
*Hits head on table repeatedly*

Did that, worked, now I have:

LoadPlugin("C:\Program Files\AviSynth 2.5\WarpPlug\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\aWarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\masktools_v158\masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\deen.dll")
# Load Video clip location
AviSource("C:\Documents and Settings\Ayanefan\Desktop\Loga-Initiald-1.avi").ConvertToYV12
# Import functions and AVS Scripts
Import("C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.52.avs")
#
deen("a3d",2,5,7)
mftoon(strength=15)
fastlinedarken(thinning=0)
Tweak(cont=1.0,sat=1.18,bright=0,hue=0)

----
And again, I have another problem:
Script Error: There is no fuction named "YV12layer"

Now I have the YUV codec installed and I'm sure it's just a fuction call within the external Masktools plugin directory but I'm not sure. I've tried using other AVI files and still get the same problem.

There's a dependency somewhere or I'm using the wrong version of something.

- Ayanefan (still plugging away at it)

PS: Thank you Scintilla for your help!

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Wed Aug 30, 2006 5:03 am

Or maybe the function was removed in the newer version of AviSynth? I think that may be it.

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Wed Aug 30, 2006 8:55 am

And finally got it going! After lots of Dooming and Scintilla's pointers ( and I can't forget silver_moon who showed me her trade secrets ;) ) I ended up with this cause things just didn't want to work otherwise:
(pardon the extra remmed lines)


### Load Plugins Location
LoadPlugin("C:\Program Files\AviSynth 2.5\WarpPlug\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\aWarpSharp.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\masktools_v149\masktools149.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\masktools_v151\masktools151.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\masktools_v158\masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\deen.dll")
#########
#
### Load Video clip location
#AviSource("E:\Initial D AMV\InitialD_4th_Stage\1.avi")
AviSource("C:\Documents and Settings\Ayanefan\Desktop\Loga-Initiald-1.avi").ConvertToYV12
#
#
###Video Conversion section
###
### Import functions and AVS Scripts
Import("C:\Program Files\AviSynth 2.5\plugins\mfToon-v0.52.avs")
#Import("C:\Program Files\AviSynth 2.5\Masktools_v158\MaskTools\mfToon-v0.32.avs")
#Import("C:\Program Files\AviSynth 2.5\plugins\SharpTools-v0.3.avs")
Import("C:\Program Files\AviSynth 2.5\plugins\fastlinedarken_1.3.avs")
#
### Pass Parameters
#
deen("a3d",2,5,7)
mftoon(strength=15)
fastlinedarken(thinning=0)
Tweak(cont=1.0,sat=1.18,bright=0,hue=0)


Now, don't mind the last 4 lines right now, that was to get things going... and there she goes! More tweaking to come next to get the quality right.

Here's what I did:
Removed AviSynth 2.5.6, loaded 2.5.5 (don't know if it helped)
Added mftoon v.52 in the plugins
Added the DLLs that are on the first few lines of the script into the plugins and in their own folders.
Created the Fastlinedarken avs script and imported.

The big issue was with the version of MaskTools, everything gave errors until I got to version 1.51.

I'll see if I can get before and after pics online.

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Fri Sep 01, 2006 10:34 am

Here's a before and after (hopefully this works):
Image

Daytime image, looks fine.

Image

Nighttime, I need to work on this, still too dark. I suspect a Tweak (brightness, contract) and saturate the colors slightly.
Thanks Katie for the beforeafterline() script, and I won't tell you how I fixed it, I don't want to be told "I told you so!" ... LOL.

User avatar
Ayanefan
Joined: Mon Oct 24, 2005 10:17 am
Org Profile

Post by Ayanefan » Wed Sep 06, 2006 9:34 am

I'm getting there.


Image

Locked

Return to “Video Software Help Archive”