View Full Version : How do I get audio from MPEG2 files
rfmmars
17th February 2004, 04:48
I use the mpeg2decoder.dll, not MPEG2DEC2, or 3. I want to know what to add to the script below so it framesevers both audio and video to Virtualdubmod.
plugin=mpeg2decorder.dll
mpeg2source("sample.mpg")
ComplementParity
separatefields
Richard
aklendathu
17th February 2004, 11:12
You need to demux audio from the MPG file (say, to audio.wav)
Then, change your script to
plugin=mpeg2decorder.dll
#--------------------------
v=mpeg2source("sample.mpg")
a=WAVSource("audio.wav")
AudioDub(v,a)
#--------------------------
ComplementParity
separatefields
Check file properties in VDUBMOD to see if Audio is now loaded properly. If you need to resample audio to 48 kHz then it gets a bit trickier.
I recommend processing audio separately from MPEG-2 video stream, if you can.
rfmmars
17th February 2004, 17:36
I want to thank you so much for your help. I will do redo the script and will get back to you on the results.
Richard
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.