There is no function called....

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

There is no function called....

Postby Second Element » Tue Aug 21, 2007 5:30 am

After a recent hard drive crash, I recently re-installed a lot of programs for video editing, including the most current version of the AMVApp.

However, I am running into problems with my AVIsynth scripts. Whether I try to open it in Premiere, or open my d2v file as a script in Virtual Dub Mod, I keep getting the following error:

"there is no function called 'MPEG2source'.
User avatar
Second Element
 
Joined: 13 May 2003
Location: City of Trees

Postby Purge » Tue Aug 21, 2007 10:57 pm

post your script! - are you loading the required plugin or at least have it in the plugin folder?
User avatar
Purge
 
Joined: 10 Oct 2005
Location: Under Aus

Postby Kariudo » Tue Aug 21, 2007 11:34 pm

try getting the latest mpeg2dec3.dll or dgdecode.dll (depends on whether you use dvd2avi or dgindex. I don't remember if it's mpeg2dec3 or decomb that has mpeg2source() )

then make sure that the .dll files are in the avisynth plugin directory
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby RDphantom » Mon Sep 03, 2007 4:19 pm

Hello, I am having the same problem and I hope that someone can help me.

I am editing in Premiere by importing a .avs file and editing with that. Over this weekend I installed several programs to capture and then edit flash video from the web. Today when I opened my editing project in premiere, none of my footage showed up and I got this message:
Script Error: there is no function named "mpeg2source"
(C:\Documents and Settings\My Computer\My Documents\Rebecca|IfEveryoneCared\D2V Files\Campfire 1.avs, line 1)

The programs that I installed were:
WM Recorder 11.3
FLV Player
Replay Converter
#1 Video Converter
Video Edit Magic 4.3
Blaze Media Pro.

My Script in VirtualDubMod is:
AssumeFPS(24)
ConvertToRGB32()
Crop(4,60,-4,-60)
LanczosResize(720,368)

I'd like to try to reinstall the latest mpeg2dec3.dll but I don't know where to get it. Can anyone link me to the place?

Thanks so much for your help, I appreciate it so much.
RD
RDphantom
 
Joined: 18 Jan 2007

Postby Kariudo » Mon Sep 03, 2007 4:41 pm

http://avisynth.org/warpenterprises/#other
it's the fifth from the top
ImageImage
Image
User avatar
Kariudo
Twilight prince
 
Joined: 15 Jul 2005
Location: Los taquitos unidos
Status: 1924 bots banned and counting!

Postby Scintilla » Mon Sep 03, 2007 4:42 pm

If you need MPEG2Dec3DG.dll (the last version of MPEG2Dec3 before Donald Graft changed it to DGDecode), you can get it here:
http://www.aquilinestudios.org/scripts
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Postby Scintilla » Mon Sep 03, 2007 4:44 pm

Append:

MPEG2Dec3DG.dll, from what I understand, is also the last version of the MPEG-2 decoder plugin that will accept .D2V files created with DVD2AVI 1.76. If you get DGDecode.dll instead, you will have to remake your .D2V files with DGIndex.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Postby RDphantom » Mon Sep 03, 2007 5:17 pm

Kariudo and Scintilla, thanks for replying so quickly. I tried both of the plugins you recommended and neither worked. But I'm wondering if they were the right ones. I already use DGIndex to index my VOB files, and then open them via avisynth in VDMod. Do I need something different than what you recommended? Where do I get it?
RD
RDphantom
 
Joined: 18 Jan 2007

Postby Scintilla » Mon Sep 03, 2007 5:30 pm

When you say they didn't work, do you mean that they still produced the "There is no function called MPEG2Source" error, or something different? If the error is still the same, then that means you didn't put the DLLs in your AVISynth plugins directory (and only one of them should have been in there at a time).

If you already used DGIndex to create the D2V files, then you should be using the version of DGDecode.dll that came with DGIndex as your MPEG-2 decoder plugin.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Postby RDphantom » Thu Sep 06, 2007 7:35 pm

Scintilla, sorry I've taken so long to get back to you. I did check my AVISynth plugins folder and the DGDecode.dll was there, but I was still getting the same error message as before. However, I uninstalled those programs and restored my computer back to a week ago and that did the trick. I don't know what the problem was exactly, but it all seems to be working now. Thanks so much for your prompt help!

RD
RDphantom
 
Joined: 18 Jan 2007

Postby Corran » Fri Sep 07, 2007 3:50 am

If I had to guess, I would say that the registry key that points to the plugin folder was somehow pointing in the wrong location...
User avatar
Corran
 
Joined: 14 Oct 2002

Postby RDphantom » Fri Sep 07, 2007 6:26 pm

Corran, any idea why the registry key would suddenly not function correctly? I'd like to avoid this problem in the future if I can.

RD
RDphantom
 
Joined: 18 Jan 2007

Postby Corran » Fri Sep 07, 2007 8:51 pm

If the new version of avisynth was installed to a different location than the original install it would change the pointer.

Say for example if used to be installed C:/Program Files/AviSynth 2.5 but is now installed in D:/Program Files/AviSynth 2.5 the pointer in the registry would point to D:/Program Files/AviSynth 2.5/plugins. No matter how much you verified that you had the correct plugins in C:/Program Files/AviSynth 2.5/plugins, you would always get the mpeg2source function does not exist error.

To fix it without resorting to a system restore, you could go to Start -> Run And type regedit.exe and hit enter.

The key is located at:
HKEY_LOCAL_MACHINE\SOFTWARE\AviSynth

Either copy the plugins you need to the location pointed to by the plugindir2_5 key or modify the key to point where you want it. Keep in mind though if the old plugin directory has outdated plugins, it would probably easier to just copy the few plugins that you need to the new plugin directory rather than changing the registry key or copying all of the old plugins to the new location.


This has personally happened to me once. I used to keep avisynth installed on my D drive and when I installed a newer version to the C drive, changes to my plugin directory on the D drive were not doing anything. I don't know really how your registry key may have been changed, this is just a guess based on what caused it for me. If you installed avisynth via the amvapp, it should have copied the plugins to the correct folder for you. If so then I'm a little confused as to why you had a problem like this.
User avatar
Corran
 
Joined: 14 Oct 2002

Postby RDphantom » Sun Sep 09, 2007 7:40 pm

Corran, I did install avisynth via the amvapp, and have not changed my drives at all. I don't know if that was the issue or not, but I will most certianly keep your fix in mind if this problem happens again. Thanks so much for your input.

RD
RDphantom
 
Joined: 18 Jan 2007


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest