I think you are either missing the file:
DGDecode.dll
or AVISynth does not know where to find it.
The dll is contained in the
dgmpgdec plugin. I got mine from the file:
dgmpgdec149.zip
I think it's a recent version. I don't remember where I got it from. Try to Google it.
I always put my plugins in the AVISynth plugins folder. If you did a standard install, that should be
C:\Program Files\AviSynth 2.5\plugins
If you copy
DGDecode.dll to that folder, I think that should solve the problem. If you copy it to somewhere else, then you'll need to use the
LoadPlugin function to tell AVISynth where to find it.