View Full Version : Script error: There is no function named 'Imagesource'
Persona
11th February 2020, 11:08
Hello, this is my first message and I apologize if this is the wrong section of the forum to ask for help.
I'm using MeGUI + Avisynth and all my scripts worked when I was on Windows XP but now I'm on Windows 10 and the same scripts no longer work.
I get the error of "Script error: There is no function named 'Imagesource'" and have searched everywhere for info and cannot find the problem. This is my script:
video=directshowsource("setup-01.mp4", audio=false).BilinearResize(1280,720)
credits=Imagesource("credits.png").BilinearResize(1280,720)
title=ImageSource("title.png").BilinearResize(1280,720)
credits=credits.AssumeFPS(video)
credits=overlay( video, credits, mode="Blend", opacity=1).Fadein(140).trim(0,348).Fadeout(70)
title=title.AssumeFPS(video)
Title=Overlay( video, title, mode="Blend", opacity=1).trim(0,300).Fadein(140).Fadeout(30)
title++video++credits
#crop
ConvertToYV12()
Someone helped built the script for me about a decade ago and I can no longer find him and I'm not very skilled at making my own scripts. I have all the correct video/image files in the script. I does not get passed line 2. Any help to what I am missing on my Windows 10 would be greatly appreciated. Thanks.
Groucho2004
11th February 2020, 11:43
I think this (https://forum.doom9.org/showthread.php?p=1877751#post1877751) might help.
Persona
11th February 2020, 12:04
Thanks. I read through it and while as I said earlier that I'm not too knowledgeable with it, from what I read I assume I need to find a place to download ImageSeq.dll, put it into the correct folder and manually load it in the script since the newer versions don't automatically load it?
Groucho2004
11th February 2020, 12:17
Thanks. I read through it and while as I said earlier that I'm not too knowledgeable with it, from what I read I assume I need to find a place to download ImageSeq.dll, put it into the correct folder and manually load it in the script since the newer versions don't automatically load it?I don't use megui but as far as I remember you should not use the "portable" Avisynth.
Someone with megui knowledge please chip in.
Persona
11th February 2020, 12:31
Hmm in this case maybe I should redownload Avisynth or something. Any link to know that I am not downloading the "portable" version?
A few friends have asked me why don't I just trying another editing program but for all my videos I use the same structure of editing therefore a script is the most convenient way but I think this is an Avisynth problem rather than a MeGUI problem right?
Groucho2004
11th February 2020, 12:43
Hmm in this case maybe I should redownload Avisynth or something. Any link to know that I am not downloading the "portable" version?That "portable" mode is a megui gimmick. Use the Universal Avisynth Installer and install AVS+. Look for portable mode (or whatever this is called) in megui settings and disable it.
A few friends have asked me why don't I just trying another editing program but for all my videos I use the same structure of editing therefore a script is the most convenient way but I think this is an Avisynth problem rather than a MeGUI problem right?It's a megui problem.
Persona
11th February 2020, 14:34
I downloaded the Universal Avisynth and AVS+ and now I get the error of, "I don't know what credits mean". That is the name of the picture file (credits.png).
I also tried opening the script in VirtualDub and it's the same error. I get the feeling something is wrong or I'm missing something for Avisynth.
Groucho2004
11th February 2020, 14:51
..."I don't know what credits mean". That is the name of the picture file (credits.png).No, it's not. The error points to the name of the variable you assigned. Post your complete script and the exact error message (including the line # in which the error occurred.)
Persona
11th February 2020, 15:48
Okay right now I decided to uninstall all Avisynth related installations on my PC and then decided to install Avisynth 2.6 in order to go back to the original error of 'Imagesource'. After that I uninstalled 2.6 and then reinstalled AVS+ and now the script somehow magically works now.
But there is a new problem. While this script works now, the script before it now has problems (I use two scripts for each step). When I load it up, I get an error of "Could not read AVS frame" and then it crashes my MeGUI. I also tried it in VirtualDub and it crashes now as well.
This is the script which now has problems:
directshowsource("kula-zarina.mp4").trim(1623,2250).Fadein(30).Fadeout(30)
\++\
directshowsource("kula-alice.mp4").trim(521,1189).Fadein(30).Fadeout(30)
\++\
directshowsource("kula-meitenkun.mp4").trim(1195,2105).Fadein(30).Fadeout(30)
#crop
ConvertToYV12()
Persona
11th February 2020, 16:10
Okay it seems I finally got both scripts to work. I didn't do anything other than decide to redownload MeGUI again and try the script on that one. Funny thing is that when it works on that one and then when I went back to the former MeGUI that had problems, it magically works too.
From what I seem to have learned for this was to just uninstall all the current versions and reinstall everything fresh. Not sure if that was the reason it now works but it did seem to do the trick.
Anyway thanks a lot for trying to help. If there's any new problems, I'll be sure to ask around here. :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.