digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Optimal Script Help (http://www.digitalfaq.com/archives/avisynth/3793-avisynth-optimal-script.html)

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).

Code:

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")
MaxThreshold=1.58

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


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.

-kwag

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:

Code:

LoadPlugin("C:\Filters25\MPEG2Dec3.dll")
LoadPlugin("C:\Filters25\STMedianFilter.dll")
LoadPlugin("C:\Filters25\UnFilter.dll")
LoadPlugin("C:\Filters25\BlockBuster.dll")

Mpeg2Source("K:\VIDEO_TS\project.d2v")

MaxThreshold=1.58

UnFilter(50, 50)
BicubicResize(528, 368, 0, 0.6, 16, 0, 688, 480)
STMedianFilter(8, 32, 0, 0 )
TemporalSoften(2,7,7,3,2)
mergechroma(blur(1.50))

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

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)
Limiter()

-kwag

Bigswaffo 05-29-2003 02:01 PM

@kwag
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

Quote:

Originally Posted by Bigswaffo
@kwag
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.

-kwag

Bigswaffo 05-29-2003 03:39 PM

@kwag
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 :!:

-kwag


All times are GMT -5. The time now is 10:42 PM  —  vBulletin © Jelsoft Enterprises Ltd

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