Log in

View Full Version : Script Error


Red Raven
11th September 2005, 05:56
I'm receiving the following error message through win. media player. Any ideas what the problem is?

Script error: there is no function named "iip"
(C:\Program Files\AviSynth 2.5\plugins\IIP.AVS, line 14)
(C:\NEWFOL~1\VF.AVS, line 10)


Here's the script.


SetMemoryMax(768)

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Undot.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\WarpSharp.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\LoadPluginEx.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\dustv5.dll")

Import("C:\Program Files\AviSynth 2.5\plugins\IIP.AVS")

mpeg2source("C:\New Folder\VF.d2v")

clip = iip( clip, dest_x = 720, dest_y = 576,
\ duststr = 4, dustweight = 1.0,
\ ss1_x = 1.33, ss1_y = 1.66,
\ detailcontr1 = 127, detailcontr2 = 208,
\ contr_radius = 3, PixSharp = 0.3,
\ ss2_x = 2.5, ss2_y = 3.5,
\ Xstren = 208, Xlimit = 255,
\ subpelstren = 0.0, flatweight = 0,
\ antiflicker1 = true, antiflicker2 = true,
\ protect_floor= 0, protect_bias = 12,
\ dering = -100, dering_weight= 1.0,
\ dering_floor = 8, dering_bias = 12,
\ detail_floor = 24,
\ EQ = 2, exborder = false,
\ warp_Y = true, warp_UV = true,
\ debug="dering | protect | detail | compareH | compareV | compareT | showall",
\ cropx = 40, cropy = 20
\ )
clip = convertToYUY2(clip)
clip = LimitedSharpen(clip)


=================================================================================

#Here's IIP script#

iip( dest_x= 720, dest_y= 576,
\ ss1_x = 1.414, ss1_y = 1.414,
\ duststr = 2, dustweight = 1.0, antiflicker1= true, antiflicker2= true,
\ detailcontr1= 104, detailcontr2 = 208, contr_radius = 2, PixSharp=0.38,
\ ss2_x = 3.5, ss2_y = 3.5,
\ Xstren = 255, Xlimit = 255,
\ subpelstren= 1.58, flatweight = 0,
\ protect_floor = 0, protect_bias = 16,
\ dering = -80, dering_weight= 1.0, dering_floor = 8, dering_bias=12,
\ detail_floor = 10, EQ = 2,
\ warp_Y = false, warp_UV = false, exborder = false,
\ debug= "protect | dering | compareH|V | showall",
\ cropx=64, cropy=32
\ )

steptoe
11th September 2005, 08:23
You could try renaming the function script to IIP.avsi, this way it will autoload it without having to do it manually

This has solved problems I've had before with scripts calling functions it can't find


I've also read that setting the script memory to high can cause more problems than it will solve, unless you have a huge script that calls loads of functions and plugins

stickboy
11th September 2005, 08:54
#Here's IIP script#You mean that's the contents of iip.avs? If so, I think you copied and pasted the example instead of the correct script (http://forum.doom9.org/showthread.php?s=&postid=517100#post517100).

Red Raven
12th September 2005, 02:04
Still no joy.

I'm receiving same error when loading through Virtualdubmod too.

AviSynth open failure:
Script error: there is no function named "iip"
(C:\Program Files\AviSynth 2.5\plugins\iip.avs, line 14
(C:\New Folder\VF.avs, line 3

First time using iip,maybe i'm missing something? :confused:


Here's the code within iip.avs

iip( dest_x= 720, dest_y= 576,
\ ss1_x = 1.414, ss1_y = 1.414,
\ duststr = 2, dustweight = 1.0, antiflicker1= true, antiflicker2= true,
\ detailcontr1= 104, detailcontr2 = 208, contr_radius = 2, PixSharp=0.38,
\ ss2_x = 3.5, ss2_y = 3.5,
\ Xstren = 255, Xlimit = 255,
\ subpelstren= 1.58, flatweight = 0,
\ protect_floor = 0, protect_bias = 16,
\ dering = -80, dering_weight= 1.0, dering_floor = 8, dering_bias=12,
\ detail_floor = 10, EQ = 2,
\ warp_Y = false, warp_UV = false, exborder = false,
\ debug= "protect | dering | compareH|V | showall",
\ cropx=64, cropy=32
\ )

movax
12th September 2005, 02:32
You need to copy the code from the second textbox, the one titles "The Script:"

You have the example in your .avs.