View Full Version : Usage of AviSynth Scripts?
ditto_n
17th October 2003, 16:41
mfToon and all required dlls here: http://mf.creations.nl/avs/
mftoon thread here: http://forum.doom9.org/showthread.php?s=&threadid=53364
I came across mfToon recently, i got all the dlls and everything all set but then I realized that d2s does not use them, so searching around I looked in avisynth.ini and took the example from FACAR.
mfToon says usage is this:
Import("mfToon-v0.32.avs")
AVISource/MPEG2Source/WhateverSource("file")
mfToon()
Well to be safe I renamed mftoon-v0.32.avs to mftoon.avs and looked at facar, in facar it has this example.
12=# Import(!PostResize.avs)
!PostResize.avs=D:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\FACAR\PostResize.avs
The question is I have added "Import(!mftoon.avs)" with no error, but does this exicute the script or just load it like you do with dlls?
I have tried putting "mftoon()" into the script thinking I still needed to exicute it after loading it, again like you do with dlls, but it gives me an error when I do add it, am I missing something?
ditto
edit-edited to be more helpful
DDogg
17th October 2003, 17:32
... with another question that may never be answered.
I would imagine r6d2 might take this question on, but if you want people to help you it is a good idea to make it as easy as possible for them to do so.
Try taking the time to clearly write your question in an easily digestible manner and always place links to the reference material you mentioned. In this case all threads related to "mftoon".
Comments like the one I quoted are not very helpful and may indeed cause your question to be passed by. You might want to remember this is a volunteer effort and nobody owes you anything so it is wise to make an effort to make your question easy to understand and easy to answer without a lot of research having to be done.
ditto_n
17th October 2003, 18:38
I did not mean that serously. My post has been edited now to remove that line and to inlude the link to mfToon and its thread.
I did not mean to be unhelpful and I know it is a volunteer that is why I look 80 times harder to try to solve my own questions, even after I post.
I have been looking over how to get this to work 2 days befor I posted, I only post when I'm extremly despirate.
DDogg
17th October 2003, 19:47
No problem. One question for you, do you have this working right now? with just a simple:
mpeg2source("c:\PATH\source.d2v")
Import("C:\PATH\mfToon-v0.42.avs")
mfToon()
This lets us know if you have all the filters installed correctly for this script to operate. Also, where do you have warpsharp stored? I think this is the version that cannot be in your avisynth plugin folder. Could be wrong on that.
I am wondering if this post should be moved to the advanced section. I'll wait and let r6d2 make the call on that.
ditto_n
17th October 2003, 20:27
er you know what, because d2s is all i know I wouldnt know how to do what you are wanting me to do. As for where I have the dlls, they are in "Avisynth2.5 plugins/mfToon/" along with the avs. I know I'm not being helpful but like I said, I am a ubernoob and I would have no idea about anything except what ive messed around with.
DDogg
17th October 2003, 21:43
Not a problem with being a noob, but you may be trying to go a little fast. This is just my opinion, but I think complex scripts integrated in d2s directly, or facar for that matter, are slightly tricky anyway. That's even when you know they are working correctly to start with. Trying to do it with a complex script like this without knowing if everything is properly installed and pre checked makes it an exercise in futility.
You should try to get some help in the avisynth forum to get it up and operational playing in VDub or Media Player without any red error lines. After that, I am sure somebody here will help you integrate it, at least in D2S resizing scripts directly, and maybe in FACAR (r6d2's territory).
r6d2
18th October 2003, 15:14
Originally posted by ditto_n
The question is I have added "Import(!mftoon.avs)" with no error, but does this exicute the script or just load it like you do with dlls?
I have tried putting "mftoon()" into the script thinking I still needed to exicute it after loading it, again like you do with dlls, but it gives me an error when I do add it, am I missing something?
As far as I understand your question, you are not using FACAR, but only copying the syntax of an Import(). Your question seems more related to AviSynth usage than to DVD2SVCD, but let me answer what I understood.
An Import() is not like LoadPlugin, which just make available the code to the script. Import() includes the selected AVS script into the current one, much as if the code was typed on it.
I don't know mftoon(), but the import probably just declares the functions to be used and, as the usage says, the call to mftoon() does the job.
If you are getting an error, please post the message so see if we can help. But as I said, this is likely not to have to do with FACAR. It may have to do with the way DVD2SVCD translates variables into AviSynth scripts, or where things are installed.
Please post the script also.
ditto_n
18th October 2003, 18:42
Ok yesterday I got a much better understanding of AviSynth and what it does so now i actually kinda know what im doing.
I used this to see if the script was working at all.
avisource("d:\My Shared Folder\temp.avi")
Import("D:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\mftoon\mfToon.avs")
mfToon()
and I get this error message:
Script Error: There is no function named "EdgeMask"
(D:\Program Files\DVD2SVCD\Avisynth2.5 Plugins\mftoon\mfToon.avs, line 98)
Does this mean I have my dlls in the wrong place? I have all the dlls in the same folder as the script.
r6d2
18th October 2003, 19:30
Originally posted by ditto_n
Does this mean I have my dlls in the wrong place? I have all the dlls in the same folder as the script.
EdgeMask is a function contained in MaskTools.dll. The message means AviSynth is not finding the filter.
As a rule of thumb, you should place all DLLs in the Avisynth plugin folder, which in turn must be properly registered. You'll save lots of time and confusion by doing this.
Then your filter should work OK with DVD2SVCD.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.