Topic: undefined\plugins bad script problem

I installed SVP Lite. The manager loads to toolbar in Win xP.
I try to run video in MPC Home Cinema but get error from SVP.
Script error: LoadPlugin: unable to load "undefined\plugins\svpflow1.dll"
then reference to file ffdshow.avs in appdata\SPV 3.1
It appears that SVP is creating a script on the fly without the proper location directory.
How can this be fixed?

Pertinent log entry from SVP:
---------------------------
13:10:01.917; ===== Detected playback with ffdShow
13:10:01.917; GetDimensionAndFPS_Grab start. Duration: 125 ms
13:10:01.042; GetDimensionAndFPS_Grab result: 576 432 23.976
13:10:01.059; T1T: begin
13:10:01.059; T1T: GetAllMediaParams. Duration: 15 ms
13:10:01.074; T1T: SettingsPrepare. Duration: 16 ms
13:10:01.090; T1T: Preparing smooth playback...
13:10:01.090; T1T: WriteAllMediaParamsToIni
13:10:01.090; SVPMgr: main "C:\Documents and Settings\M6300\Application Data\SVP 3.1\" 576 432 23.976 576 432 5 2. Duration: 422 ms
13:10:02.511; ===== Playback
23.976 * (5 : 2) = 59.94 fps
13:10:02.511; SetPriorityPlayer: 0. Duration: 390 ms
13:10:02.901; Error: Error preparing smooth playback! Script error:
LoadPlugin: unable to load "undefined\plugins\svpflow1.dll"
(C:\Documents and Settings\M6300\Application Data\SVP 3.1\AVS\ffdshow.avs, line 4)
(ffdshow_filter_avisynth_script, line 4)
-----------------------------------
END LOG snippet

Contents of ffdshow.avs below
--------------------------
svp_scheduler=true
SetMemoryMax(1024)

LoadPlugin("undefined\plugins\svpflow1.dll")
LoadPlugin("undefined\plugins\svpflow2.dll")

threads=4
SetMTMode(3,threads)
ffdShow_source()
assert(width==576 && height==432,"Frame size "+string(width)+"x"+string(height)+" instead of 576x432")
SetMTMode(2)

super_params="{scale:{up:0},gpu:1,rc:true}"
analyse_params="{main:{search:{coarse:{distance:-10},bad:{sad:2000,range:24}}}}"
smoothfps_params="{rate:{num:5,den:2},algo:13,cubic:1,scene:{}}"
smooth_video
distributor()
--------------------------------END FILE

Re: undefined\plugins bad script problem

iamjohngalt
Thank you for the bug report.

unable to load "undefined\plugins\svpflow1.dll"

It can't get folder name where SVP installed. "undefined" returns.
If we look into SVPMgr.wsf then we get line:

avs.WriteLine('LoadPlugin("'+SVP.currentDir+'plugins\\svpflow1.dll")');

SVP.currentDir is undefined.
If we look into svpcore.js then we get line:

SVP.currentDir=SVP.shell.CurrentDirectory+"\\";

Why function CurrentDirectory returns undefined? I don't know. It is the first time.

1. What version of windows do you use? Is it original version?
2. What is the installed SVP path? This path contains only english symbols?

Re: undefined\plugins bad script problem

1. Windows XP Professional SP3
2. Program is installed at: C:\Program Files\SVP
and plugins are in:  C:\Program Files\SVP\Plugins

Re: undefined\plugins bad script problem

iamjohngalt
All seems to be normal: WinXP SP3 is supported, path is correct. Hmm...

Place this file TestSVP.wsf into SVP folder and run.
File TestSVP.txt must be created.

Please show here what is inside this file.

Post's attachments

TestSVP.wsf 441 b, 567 downloads since 2012-10-25 

5 (edited by iamjohngalt 26-10-2012 02:17:02)

Re: undefined\plugins bad script problem

Here is contents of TestSVP.txt after run:
-----------------
SVP.appDataDir=C:\Documents and Settings\M6300\Application Data\SVP 3.1\
SVP.currentDir=undefined\
SVP.avsDir=undefined\AVS\
SVP.logDir=C:\Documents and Settings\M6300\Application Data\SVP 3.1\Logs\
SVP.iniDir=C:\Documents and Settings\M6300\Application Data\SVP 3.1\Settings\
SVP.extIniDir=C:\Documents and Settings\M6300\Application Data\SVP 3.1\Profiles\
-------------------------

SVP manager icon is shown in tray when I ran TestSVP.wsf

Re: undefined\plugins bad script problem

iamjohngalt
Ok
Fast resolution: You can write right path in svpcore.js. It is like some personal hack wink
open svpcore.js and find line:

SVP.currentDir=SVP.shell.CurrentDirectory+"\\";

change it like this, close and save file:

SVP.currentDir="C:\\Program Files\\SVP\\";

After that SVP must start work for you.

But it is not good solution. I will think how to resolve this issue and how to repair work of funсtion CurrentDirectory.

Re: undefined\plugins bad script problem

Granted that I am guessing, but it appears that SVP is getting the path from some other software.
Since I only installed the lite version, perhaps the other software that I already had is not providing
the path as it might have if installed along with SVP?

Re: undefined\plugins bad script problem

I need to read some manuals to answer about work of funсtion CurrentDirectory wink

Re: undefined\plugins bad script problem

I applied the hack you suggested, and it works now. Thanks.

The video is slightly behind the audio, starts just a fraction of a second and gets worse the longer it runs.
(Happens with xvid (576x432) and h264 (720x404) video files.)
I'm only using a laptop with core2duo 2.4Ghz and 2Gb memory, vidcard Nvidia Quadro FX 1600M similar to 9600M.

Re: undefined\plugins bad script problem

Sorry, forum was down for all this time. Now it fixed.

Please, run this script TestSVP2.wsf from SVP Folder and show your output from file TestSVP2.txt.
My output is:

WScript version: 5.8
From FSO: C:\Program Files (x86)\SVP
From WScript.Shell: C:\Program Files (x86)\SVP
From ScriptFullName: C:\Program Files (x86)\SVP

Post's attachments

TestSVP2.wsf 669 b, 553 downloads since 2012-10-26 

11 (edited by iamjohngalt 26-10-2012 21:41:00)

Re: undefined\plugins bad script problem

Thanks. Here is the output TestSVP2.txt

WScript version: 5.7
From FSO: C:\Program Files\SVP
From WScript.Shell: undefined
From ScriptFullName: C:\Program Files\SVP


Sorry for delay. Could not get any reply from SVP forum website since yesterday

Re: undefined\plugins bad script problem

iamjohngalt
Could not get any reply from SVP forum website since yesterday
sh*t happens...

Re: undefined\plugins bad script problem

I understand<grin>
I had to spend one day this week fixing hacker incursions on a friend's website.
(Probably from slack permissions in that case.)

Re: undefined\plugins bad script problem

Chainik, although I was able to get SVP working with the hack from MAG79,
I still can't use it because of the audio sync problem.
Do you have any idea on what that problem is?
Thanks.

Re: undefined\plugins bad script problem

iamjohngalt
I still can't use it because of the audio sync problem
Are you still using SVP Lite?
If yes, tell about versions of required an additional packages installed on your system?

Re: undefined\plugins bad script problem

iamjohngalt
What player/render did you use?
Please, show list of used filters