Forums [Archives] Forums [Archives] (
-   Avisynth Scripting (
-   -   Avisynth: Optimal Script Help (

Bigswaffo 05-29-2003 12:18 PM

Optimal Script Help
Hi all,

I just tried loading a movie with your script into ToK. It comes up with errors. First it says:

Script Error: Invalid arguments to function "STMedianFilter"

Then, I removed STMedianFilter to see what happens. Here's what it said then:

Script Error: Invalid arguments to function "TemporalSoften"

And once again, I remove TemporalSoften. Now this is what it shows:

Script Error: there is no function named "ScriptClip"

I'll stop there for now. Here's my original script (without all the deletes).


LoadPlugin("C:\Program Files\MovieStacker\Filters\MPEG2Dec.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\TemporalCleanerOld.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\STMedianFilter.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\UnFilter.dll")

AviSource("C:\Documents and Settings\Administrator\My Documents\Band1.avi")

UnFilter(50, 50)
BicubicResize(496, 334, 1/3, 1/3, 23, 8, 562, 320)
STMedianFilter(8, 32, 0, 0 )
ScriptClip("val=YDifferenceFromPrevious()/14.55" + "val > MaxThreshold ? MergeLuma(blur(MaxThreshold)) : MergeLuma(blur( val ))")
AddBorders(16, 73, 16, 73)

kwag 05-29-2003 12:35 PM

Hi Bigswaffo,

The script works ONLY with AviSynth version 2.51 :!:
You're loading the DLL's in MovieStacker, which are for versions 2.0x.


Bigswaffo 05-29-2003 12:47 PM

:oops: :oops: :oops: :oops: :oops:

Which script is better (so I can get the right version of AviSynth)?

kwag 05-29-2003 12:52 PM

Here's a reference script I posted:





UnFilter(50, 50)
BicubicResize(528, 368, 0, 0.6, 16, 0, 688, 480)
STMedianFilter(8, 32, 0, 0 )

### Dynamic Adaptive Filtering ###
val=0 # Initialize our motion variable.

FrameEvaluate("val=YDifferenceFromPrevious()/14.55") # Assign "val" with difference between current frame and last frame.
ScriptClip("val > MaxThreshold ? MergeLuma(blur(MaxThreshold)) : MergeLuma(blur( val )) ") # Adaptive mergeluma.
AddBorders(0, 56, 0, 56)
LetterBox(16, 16, 16, 16)


Bigswaffo 05-29-2003 02:01 PM

I have the new Avisynth version (2.51) and it says there's no such procedure as FrameEvaluate. :(

kwag 05-29-2003 02:13 PM


Originally Posted by Bigswaffo
I have the new Avisynth version (2.51) and it says there's no such procedure as FrameEvaluate. :(

Look at one of sh0dan's posts and follow his signature. There you'll find the latest build, which supports the latest functions.


Bigswaffo 05-29-2003 03:39 PM

I have a very weird occurence. If I load the AVS file into either WMP or into ToK (looking in the Video tab) it looks just fine. However, when ToK starts and puts it in TMPGEnc, there's only an error message that it's converting. I can't read the message since it's going too fast. What's going on?

kwag 05-29-2003 04:17 PM

Change the settings in ToK to point to "Sampler-2.5.dll" instead of "Sampler.dll"
You must use the version 2.5 of sampler :!:


All times are GMT -5. The time now is 12:37 AM  —  vBulletin Jelsoft Enterprises Ltd

Site design, images and content © 2002-2022 The Digital FAQ,
Forum Software by vBulletin · Copyright © 2022 Jelsoft Enterprises Ltd.