View Full Version : VirtualDubMod, AVISynth and MPEG2DEC.dll
eswrite
25th March 2005, 23:17
I am trying to get VirtualDubMod 1.5.10.1 up and going with AVISynth. I first installed from VirtualDubMod_1_5_10_1_All_inclusive.zip, and then installed DVD2SVCD, which has AVISynth 2.5 and MPEG2DEC.DLL.
However, when I try to open an MPEG file using AViSynth template MPEG2Source (mpeg2dec.dll), I get an AviSynth open error pointing to line 2 of the following .avs file:
---
#ASYNTHER MPEG2Source (mpeg2dec.dll)
MPEG2Source("C:\Program Files\VDM\Videos\lion.mpg")
---
What am I missing?
stephanV
25th March 2005, 23:20
you need to load the plugin first
loadplugin("c:\...\mpeg2dec.dll")
MPEG2Source("C:\Program Files\VDM\Videos\lion.mpg")
eswrite
25th March 2005, 23:24
okay... but this .avs file is being auto-generated by VirtualDubMod. It's not mine. I take it I have to edit it, then load it somehow... How, exactly?
Update: I updated the script to read
---
#ASYNTHER MPEG2Source (mpeg2dec.dll)
loadplugin("C:\Program Files\VDM\AviSynth 2.5\plugins\mpeg2dec.dll")
MPEG2Source("C:\Program Files\VDM\Videos\lion.mpg")
---
Then I tried to open it... same error.
Wilbert
25th March 2005, 23:55
You have to open the mpg (assuming it's mpeg2) in dvd2avi 1.76, create a d2v file and open that with mpeg2source. If it's mpeg1 you have to open that with directshowsource (don't forget to specify the fps, see docs).
eswrite
26th March 2005, 00:08
So MPEG2Source/MPEG2DEC.DLL isn't really an MPEG2 decoder?
Leak
26th March 2005, 17:51
Originally posted by eswrite
So MPEG2Source/MPEG2DEC.DLL isn't really an MPEG2 decoder?
It is, but you need to create an index file (D2V file) from the MPEG2 file first with DVD2AVI/DGIndex. Just open the MPEG2 files in DVD2AVI/DGIndex and choose "Save project" from the file menu, then load the resulting (small) file using MPEG2Source - this file contains information needed to accurately seek to any position in the MPEG2 file.
Also, DVD2AVI 1.76 is hopelessly outdated; if you want something that decodes MPEG2 exactly use DGMpgDec (http://neuron2.net/dgmpgdec/dgmpgdec.html), which is a much newer, far more advanced and bugfixed version of DVD2AVI.
np: Markus Guentner - Hooked On Monkey Phonics (ft. Mario Thümmler) (Audio Island)
eswrite
28th March 2005, 02:12
Thanks, Leak! I'll give DGMpgDec a try.
eswrite
28th March 2005, 18:00
Well... that didn't work at all. I think I am pretty much at an impass when it comes to using AVISynth for loading and processing MPEG2 files in VirtualDubMod.
Daijoubu
2nd April 2005, 22:22
It shouldn't be hard...
Open the file in DGIndex, select the way you want to output the audio (demux if it's compressed and wav if it's uncompressed)
File: Save project
Then you do:
LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
MPEG2Source("C:\path\to\the\project\file.d2v")
eswrite
3rd April 2005, 01:02
Thanks. My mistake was loading MPEGDEC.DLL insteas of DGDecode.dll.
vcmohan
7th April 2005, 05:03
Originally posted by Daijoubu
Then you do:
LoadPlugin ("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
MPEG2Source("C:\path\to\the\project\file.d2v")
If the Avisynth plugin is already in the Avisynth 2.5/ plugin folder, then a loadplugin call is not required in Avisynth script. If such a call is included then it may not function correctly.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.