View Full Version : VirtualDub and mpeg2
Holomatrix
13th June 2002, 23:40
cofferscuffs had stated in a thread a while back on this subject listing some other discusions (http://forum.doom9.org/showthread.php?s=&threadid=16658&highlight=mpeg2) but are not available anymore so was just wondering if there was a filter, plug-in, frameserver or workaround (don't want to convert them to divx first) yet, that I could use to get VirtualDub to read mpeg2 files. I really like the frame by frame cutting and joining of it but do alot of SVCD movies and would like to use VirtualDub to edit them.
Thanks
cofferscuffs
13th June 2002, 23:54
the only way to read them is to use a avs script... do a search for avsgen and use that to quickly make a script ;)
jggimi
14th June 2002, 04:48
Or, after installing avisynth, just create a two line .avs file in notepad:LoadPlugin("C:\<wherever>\mpeg2dec.dll")
mpeg2source("C:\<wherever>\file.mpg")
Holomatrix
14th June 2002, 13:01
Ok, thanks for the help :) but this is my avs script,
LoadPlugin("C:\Downloads\AVSGEN\bin\MPEG2DEC.dll")
LoadPlugin("C:\Downloads\AVSGEN\bin\AVISynth_Spatial.dll")
mpeg2source("C:\universal.mpg")
MediaPlayer and VDub complain about line 3, and won't go any further.
I've got avisynth.dll in my winnt\system32 directory it's v1.0 beta7d, what am I doing wrong?
EDIT: actually if I use this;
LoadPlugin("C:\Downloads\AVSGEN\bin\MPEG2DEC.dll")
LoadPlugin("C:\Downloads\AVSGEN\bin\AVISynth_Spatial.dll")
DirectShowSource("C:\universal.mpg")
it works. Is there a reason why mpeg2source would not work?
Thanks again.
hakko504
14th June 2002, 13:53
I think mpeg2source can only open .d2v project files created by DVD2AVI. Load the vobs in DVD2AVI and use the save project option. You have to process audio separately though, but if you set DVD2AVI to 'decode' audio you get a .wav that can be loaded into the .avs like this:Loadplugin("mpeg2dec.dll")
video=Mpeg2source("yourdvd.d2v")
audio=Wavsource("yourdvd.wav")
Audiodub(video,audio)
Holomatrix
14th June 2002, 14:05
Oh, I was wondering why I had no sound :) I loaded the mpeg2 into DVD2AVI saved project and ended up with a mpa not a wav. (I think it only extracts to a wav if you use VOB's) If I use TMPEG to demux then the audio is a mp2. What can I use to extract directly to a wav from my mpeg2 source?
Holomatrix
14th June 2002, 14:53
Ok, I've demuxed my mpeg2 stream with TMPEG, converted the mp2 to wav with this other program, I have then created the avs script with Avsgen using the directshow source m2v(adding the audio) and I am now finally able to load video and audio together into VDub in one script. Whew :) I hope it's worth it. hehehe
Final Script;
LoadPlugin("C:\Downloads\AVSGEN\bin\MPEG2DEC.dll")
LoadPlugin("C:\Downloads\AVSGEN\bin\AVISynth_Spatial.dll")
vid = DirectShowSource("C:\universal.m2v")
sound_track = WAVSource("C:\universal.wav")
AudioDub(vid, sound_track)
cofferscuffs - you might want to add this thread into your FAQ so I don't have to go through this again :) :)
gunnimabi
23rd June 2002, 11:22
:o DVDCutter can help you solve it, you can find the solution in Help file, just read it carefully. And the registered one has more complete functions, you can find it in www.jummpa.com
Holomatrix
24th June 2002, 17:14
Thanks. I'll check it out :)
theReal
27th June 2002, 00:51
btw. if you set DVD2AVI to "decode" instead of "demux" audio, you'll get a wav file directly....
Holomatrix
27th June 2002, 16:55
Maybe when loading VOB's but not when loading an mpg (mpeg2 stream). I just tested saving project with both options in the Dolby Digital location 'Decode' then 'Demux' and both times I ended up with an mpa audio file.
theReal
27th June 2002, 17:01
Sorry, you're right, I just saw there is only a demux option for mpeg audio, no decode.
The decode option is only available for Dolby Digital, unfortunately.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.