Log in

View Full Version : Any way to link audio to video in m2v file using DGIndex?


bryanc
20th October 2005, 23:16
I'm using DGIndex to encode a VOB file into a m2v, but when i do, it saves the audio as a separate file. is there anyway to set it to save the audio in the m2v file? or is that not possible?

ultimately all i really want is an AVI file from the VOB file that i can re-encode and compress, should i be doing this a different way?

foxyshadis
21st October 2005, 00:11
m2v is a video stream only and cannot contain audio; if you want one file you have to use the vob (or convert the vob to mpg via another tool). You might try dvd2avi (older version of dgindex) if that's all you need, or a short avisynth script that points to the vob instead of the m2v (ie, don't demux anything); since an avi can't hold the vob data directly it'd have to be recompressed one way or another.

setarip_old
21st October 2005, 02:58
Hi!

all i really want is an AVI file from the VOB file that i can re-encode and compress

Two of many possibilities - Load the .VOB into either VirtualDubMod or MPEGMediator...

Guest
21st October 2005, 14:22
Just read the Quick Start guide that comes with DGMPGDec. It explains how to serve the video and audio together to VirtualDub.

Here's the basic Avisynth script you'd need (this one assumes you have AC3 audio):

video=MPEG2Source("myvob.d2v")
audio=AC3Source("myvob.ac3")
AudioDub(video,audio)

VirtualDub can open that script and have the video and audio.

bryanc
23rd October 2005, 21:48
virtual dub mod won't open up mpeg 2 streams. i tried mpeg mediator, but it wouldn't allow me to configure an AVI plugin, the drop down box was just empty. maybe because i'm running xp64, and when i tried to do a 5min vob file to mpeg using mpeg mediator, it told me it was going to take 27hours.

any other program reccommendations? like i said, all i really want to do is open the vob file and re-encode it to a different codec, i.e. avi, wmv, and quicktime.

Boulder
25th October 2005, 07:19
Donald just pointed you to the Quick Start guide, did you take a look at it?

mgh
25th October 2005, 17:46
Copy following in notepad and save as template.avs in the same folder as DGIndex

setmemorymax=64
loadplugin("C:\Program Files\dgindex\DGDecode.dll")
mpeg2source("__vid__",cpu=6).removedirt(athreshold=400)
aud="__aud__"
a=rightstr(aud,3)
b=rightstr(aud,10)
c=leftstr(b,4)
d=value(c)
e=d/1000
#My rips are either mpa or ac3
a=="ac3" ?audiodub(last,nicac3source(aud,2)).delayaudio(e):NOP
a=="mpa" ?audiodub(last,nicmpasource(aud)).delayaudio(e):NOP
return last

Suppose the video you have loaded into DGIndex is xxx.yyy from the folder C:\video, DGIndex will save a file called xxx.avs in C:\video.
Load it in virtualdub, it will load correctly with audio and video in sync.

Zep
25th October 2005, 19:07
virtual dub mod won't open up mpeg 2 streams. .

Maybe he meant fcchandlers version of VDub which does open MPEG2 just fine.

go here


http://fcchandler.home.comcast.net/

bryanc
25th October 2005, 22:42
rad, fcchandlers vdub worked well.

as for the other posts, yes, i read the readme file after someone pointed it out. however, i need an actual avi file, not an avs.

Guest
25th October 2005, 22:48
as for the other posts, yes, i read the readme file after someone pointed it out. however, i need an actual avi file, not an avs. LOL. That's why VirtualDub has the "Save as AVI..." function.

bryanc
26th October 2005, 02:01
right, but the original VirtualDub doesn't open mp2.....

but now i'm running fcchandler's version. which does.