Quantcast Avisynth: Optimal Script Help - digitalFAQ.com Forums [Archives]
  #1  
05-29-2003, 12:18 PM
Bigswaffo Bigswaffo is offline
Free Member
 
Join Date: Apr 2002
Location: Tejas
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
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()
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
05-29-2003, 12:35 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #3  
05-29-2003, 12:47 PM
Bigswaffo Bigswaffo is offline
Free Member
 
Join Date: Apr 2002
Location: Tejas
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts


Which script is better (so I can get the right version of AviSynth)?
Reply With Quote
  #4  
05-29-2003, 12:52 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #5  
05-29-2003, 02:01 PM
Bigswaffo Bigswaffo is offline
Free Member
 
Join Date: Apr 2002
Location: Tejas
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
@kwag
I have the new Avisynth version (2.51) and it says there's no such procedure as FrameEvaluate.
Reply With Quote
  #6  
05-29-2003, 02:13 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
05-29-2003, 03:39 PM
Bigswaffo Bigswaffo is offline
Free Member
 
Join Date: Apr 2002
Location: Tejas
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
@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?
Reply With Quote
  #8  
05-29-2003, 04:17 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Optimal Script? Shibblet Avisynth Scripting 29 01-05-2005 04:57 AM
Avisynth: Difference between MA script and optimal script? mistermickster Avisynth Scripting 2 08-01-2003 09:36 AM
Avisynth: Next changes to optimal script. kwag Avisynth Scripting 21 06-27-2003 12:31 PM
Avisynth: New optimal script for AVS 2.52 Dialhot Avisynth Scripting 3 06-14-2003 12:17 PM
Avisynth: Optimal Script for D2S? telemike Avisynth Scripting 3 06-11-2003 08:33 AM

Thread Tools



 
All times are GMT -5. The time now is 06:43 AM  —  vBulletin © Jelsoft Enterprises Ltd