PDA

View Full Version : Simplest way to convert VOB to AVI using VDub?


MaximRecoil
19th October 2004, 22:04
I would like to just be able to load a VOB into VdubMod and save it as a AVI. Most of the time when I do this, the audio is out of sync in the AVI (although I have done it on at least one VOB where it stayed in sync).

What is the easiest solution? I don't really want to use programs such as GKnot or DVX because they are a hassle. I'm guessing that DVD2AVI and/or AVI Synth are going to figure into this somehow. Can anyone give me a quick step-by-step or point me to a guide? The only guide I could find on this site was for GKnot.

The latest beta of FlaskMPEG manages to keep the audio in sync but I don't like its resizing and cropping filters.

movmasty
21st October 2004, 08:35
Try Virtualdub mpeg2

MaximRecoil
25th October 2004, 04:15
The same thing happens in Vdub-MPEG2

According to "FccHandler", this is a known problem:
A/V desync is a frequent problem with VirtualDub-MPEG2 and VOB files, because the program doesn't honor rff/tff flags and it can't read time stamps. If you can get your hands on Cool Edit Pro, you can probably stretch the audio with greater precision.

But I think your best bet is to try a different approach using DVD2AVI + Avisynth + Mpeg2Dec3 + VirtualDub. Doom9 has all the tools and guides you need. The process is tricky to set up, but it's worth the effort.

http://virtualdub.everwicked.com/index.php?act=ST&f=4&t=4978

So what I am wondering about is, how do I do the "DVD2AVI + Avisynth + Mpeg2Dec3 + VirtualDub" thing that he mentions here?

MaximRecoil
25th October 2004, 06:18
OK, I think I have it figured out. Load a VOB (or series of VOB's) into DVD2AVI and create a .D2V project file along with demuxing the AC3 audio. Then write an AVS script that looks like this:

LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mpeg2dec3.dll")
MPEG2Source("D:\test.d2v")
Then open the AVS file with VDub and proceed as normal from there. This gave me perfect audio sync and I didn't have to use programs like GKnot or DVX.

movmasty
25th October 2004, 10:28
and the audio?

MaximRecoil
25th October 2004, 12:02
Originally posted by movmasty
and the audio? Just mux the audio back in with VDubMod. When you create the D2V project file in DVD2AVI, by default it demuxes the AC3 audio stream. You can't load the D2V file directly into VDub so you have to make an AVS script that loads the mpeg2dec3 plugin and then the D2V file as an MPEG2 source. Now when you open that AVS file in VDub it is just like loading any other demuxed video stream and you go to Stream > Stream List and click "Add" and select the audio that DVD2AVI demuxed. At that point you can leave it as an AC3 stream or select full processing mode and compress it to an MP3 stream or whatever.

It works perfectly and for what I want to do; it is much simpler than Gknot or DVX; since I already know the ins and outs of VDub, and just looking at those big semi-automations of multiple programs (GKnot and DVX) gives me a headache.