View Full Version : AVSP newbie - Error loading script
jan.t
24th July 2008, 22:35
I have used AVSP as .mov to .avs converter but after down and upgrading my system the program doesnt work. I have reinstalled the program. I tried this script just to get a picture but all the time I get error loading script:
# Generates colorbar image at the size 512x384
Colorbars(960,768)
# Resizes the image using the lanczos3 algorithm
LanczosResize(640,480)
# Now the image is 640x480
# Now crop 16 pixels off the entire image all the way around.
Crop(16, 16, -16, -16)
# Convert to greyscale
#Greyscale()
Maybe I got some settings wrong in AVSP? I am a newbie so...
Jan
mikeytown2
25th July 2008, 00:38
Is AviSynth (http://sourceforge.net/project/showfiles.php?group_id=57023) Installed? AvsP is a front end for AviSynth, thus is requires AviSynth to be installed.
It usually is installed to this dir
C:\Program Files\AviSynth 2.5
jan.t
25th July 2008, 10:14
Yes Avisynth is installed. My program settings:
Avisynth directory:
C:\Program Files\AviSynth 2.5
External player:
C:\Program Files\Media Player Classic\mplayerc.exe
Documentation search paths:
%avisynthdir%\plugins; %avisynthdir%\docs\english\corefilters; %avisynthdir%\docs\english\externalfilters;
Everything else is empty. Which pixel format is it?
When I press the toggle button with no text at all I also get the little box with the same message.
Do I have to reinstall Avisynth? I had trouble before to find the right .dll files for the conversion of my qt alternative .mov files to .avs
mikeytown2
25th July 2008, 11:06
in AvsP there is a video preview button; it's in the lower left corner of the AvsP window. What error shows up when you go to preview the script? You can press F5 to get the preview to show up as well.
jan.t
25th July 2008, 13:13
I get "Error loading script". Doesnt matter whether I use toggle button or F5 (or any script of my .mov files instead of this color bar script).
jan.t
25th July 2008, 15:42
I will download Avisynth and AVSP again if you dont have any suggestion?
krisq
25th July 2008, 16:13
Which version of avisynth are you using? I remember having some problems with 2.5.8 RC installed.
jan.t
25th July 2008, 17:36
Avisynth_257. I have used it for a year in the same workflow with no problem, but it took some time to find the correct dll file and load it, so I dont want to reinstall it unless necessary.
mikeytown2
25th July 2008, 21:01
Just to make sure, you get the error "Error loading script" with this script in AvsP
Return ColorBars()
or this
Return Version()
BTW, I use this to find the plugin's I need.
http://avisynth.org/mediawiki/External_filters
jan.t
25th July 2008, 22:32
Yes. Tomorrow I will reinstall quicktime alternative, avsp and avisynth, try the test scripts and then my movies. I will come back to edit this if I cant sort things out.
Best Wishes!
jan
talen9
25th July 2008, 23:31
Could you please post a screenshot (link to a hosted image is preferable) of AvsP with the preview toggled on, just to show us the exact error message?
jan.t
26th July 2008, 00:22
First time since ages I did this.. Here we go!
Leak, I have been using my workflow for a year so either I need to reinstall or it has to be some settings that is wrong. I will just do a test script to get the program going and then go on with my .mov files. I am a newbie so I will stay in my area..
Leak
26th July 2008, 00:24
Do your scripts return YV12 video?
Or rather, do they perhaps work when you put a ConvertToYUY2() or ConvertToRGB32() at the end?
If so, you probably need a YV12 decoder, like the Helix YV12 codecs (http://www.free-codecs.com/download/Helix_YUV_Codecs.htm).
(If AvsP uses VfW, that is - otherwise the above might be useless...)
np: Tangerine Dream - Towards The Evening Star (Mandarin Cream Mix) (Auntie Aubrey's Excursions Beyond The Call Of Duty Part 2 (Disc 2))
jan.t
26th July 2008, 13:06
Noone is stopping me from reinstalling anymore?
talen9
26th July 2008, 15:30
Sorry for not answering before (it was night here :p).
Have tried to do like Leak said? It would not take you long, and sure it's preferable to reinstalling ...
jan.t
26th July 2008, 15:42
I thougnt you were from Italy? -I prefer to reinstall since I have an idea how it should be done and I dont know any other scripts except the one I use and for the testfile.
talen9
26th July 2008, 20:28
Yes, I am from Italy and I went to bed not very long after my yesterday post, my last one I posted just after noon (I had just come online :) ).
I was referring to this:
If so, you probably need a YV12 decoder, like the Helix YV12 codecs (http://www.free-codecs.com/download/Helix_YUV_Codecs.htm).
Did you try that one?
jan.t
26th July 2008, 23:33
Now it is my turn to be late. But I have really tried to come forward..
I dont want to do it another way because I know that my workflow works. I have used it for dozens of movies with satisfactory results.
I reinstalled avisynth257 and the test scripts now work in avsp, but my .mov files, my movies, that I want to convert to .avs does not. This is my script for a movie called "stchris":
QTInput("F:\Mov,Wav filer\stchris.mov", color = 2, quality = 100, audio = false, mode = 0, raw = "yuyv", info = 0, dither = 0)
Spline36resize(720,576)
I get the following error message:
Script error: there is no function named "QTInput" (F:\Mov,Wav filer\preview12.avs, line1)
jan.t
26th July 2008, 23:47
I solved it!!
This testscript which shows a text with changing background somehow worked:
loadplugin("Qtsource.dll")
A=QTInput("px.mov", color = 2, quality = 100, audio = false, mode = 0, raw = "yuyv", info = 0, dither = 0)
Combined=A
Return Combined.Spline36resize(720,352).addborders(0,64,0,64)
So I just added the first row on top of my script. The new script is now:
loadplugin("Qtsource.dll")
QTInput("F:\Mov,Wav filer\stchris.mov", color = 2, quality = 100, audio = false, mode = 0, raw = "yuyv", info = 0, dither = 0)
Spline36resize(720,576)
I never had to do this for my other scripts, but apparantly is something different now, something that has to do with Qtsource.dll. If someone has an answer I would be glad to know. Right now I am pretty glad anyway!
Take care mr Italy and leak, I just love Rome, to me it is the capital of the world.
Gavino
26th July 2008, 23:48
QTSource is not built into Avisynth - it is an external plugin. Looks like you have not re-installed it into your plugins folder when reinstalling Avisynth, and so have to load it explicitly with LoadPlugin.
jan.t
27th July 2008, 12:36
Yes I did install it into this folder, but then moved it to the same folder as my .mov file, avs-script and other .dll files. I wanted them all to be at one place, this was also recommended to me. Do you mean that if I put it back into the avisynth plugin folder, I can skip the loadplugin row in my scripts? Right now I dont dare to do anything since it works..
Gavino
27th July 2008, 13:20
Yes, you should be able to put it back and skip the LoadPlugin. It can't do any harm - if for some reason it doesn't work, you can just delete it and go back to where you are now.
It occurs to me now that your original problem might have been caused by some other plugin in your plugins folder that was misbehaving. Do you have any other plugins that you have removed from there? If you're still interested, you could test this theory by copying them back one at a time until Avisynth no longer works.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.