Log in

View Full Version : Writing Scripts in MEGUI also AVSPMod


Sagitarius1948
16th August 2011, 09:12
I have AVSPMod and I can write scripts in it. However when I open up MEGUI's script writer I get an error message. I obviously am doing something wrong in my script writing in MEGUI. Any help would be apprediated.
This is my script:
------------------------------------------------------------------
I tried this script below in MEGUI hoping that it would accept FluxSmooth:
:
:
Import("E:\A Matter of Life and Death.avs")
#deinterlace
#crop
#resize
LoadPlugin("C:\AVI Synth LoadEX\LoadPluginEx.dll")
LoadPlugin("C:\MEGUI\tools\avisynth_plugin\FluxSmooth.dll")
LoadPlugin("C:\MEGUI\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise
FluxSmooth()

I got the error message:
X AVISynth script error.
Script Error there is no function named "FluxSmooth"

I then tried the same script in AVSPMod by cut and paste and got the same error message.
However if I write the message myself in AVSPMod, it accepts it well.

So there is something in my writing of AVISynth where I am going wrong but what?

Gavino
16th August 2011, 09:32
I then tried the same script in AVSPMod by cut and paste and got the same error message.
However if I write the message myself in AVSPMod, it accepts it well.
What do you mean "write the message"?
There should obviously be no difference between cut and paste and simply typing the script in yourself.

A possible problem with your script is the use of LoadPluginEx.
This is used for loading old plugins (from v2.0 of Avisynth).
If you have the latest versions of Undot and FluxSmooth, you should not be using LoadPluginEx.

hello_hello
16th August 2011, 13:27
If I had to guess.....

History
1.1 Changed the averaging code so that the current pixel is excluded, which produces better noise reduction. Also split the code into two different filters, FluxSmoothT and FluxSmoothST. The former does temporal-only smoothing (equivalent to setting "spatial_threshold=-1" in FluxSmoothST) and is about 50% faster. Removed Avisynth 2.0x version to tidy up the code base.

Should it be FluxSmoothT() or FluxSmoothST()?

Sagitarius1948
18th August 2011, 06:40
Thank you for your replies:
What I mean by "write the message" is "write the script - ie when I type out the script myself using the key board. Sorry to confuse you.

haveufoundme
24th August 2011, 15:14
megui uses avisynth plugins if you havent the filters in avisynth "the ones you are using" you will get an error