Log in

View Full Version : Loading VOBs (video+audio at once)


hbx2006
5th February 2006, 11:30
Hi there,

I've just "discovered" AviSynth, so be patient with me. Yes, I've read manuals/forums, but there's a lot of stuff... and my brains just can't filter out the answers I'm searching for.

If using VirtualDubMod, I can only open one VOB file and audio stream is loaded as well. So, it is quite easy to convert VOB to avi (DivX+mp3). If there are more VOB files, I convert each VOB to avi and then join them to single file. It works fine, but is not very practical workflow (especially when 2-pass converting).

Using AviSynth (it IS a great tool) and Nick's MPEGdecoder (the best AFAIK) it is possible to open many VOB files at once -but there's no audio stream loaded. The only solution seems to be, to extract audio stream(s) from VOB(s) into wav file (using tool like DGdecode) -then I could load that into VdubMod as audio stream. But wav files are huge!

So, the question:
Is there any tool for AviSynth, which can be used in script like:

video=mpegSource("VTS_03_1.vob+VTS_03_2.vob")
audio=xxxxSource("VTS_03_1.vob+VTS_03_2.vob", track1)
AudioDub(video,audio)

-this would do the same thing as loading single VOB file directly into VdubMod.

If there isn't such tool for AviSynth (is that possible?), what tool do I need for converting audio tracks from VOB(s) into single mp3 file at once?

Thank you for answering,
Bogdan

PS: excuse my typos -I'm still learning.

Wilbert
5th February 2006, 14:49
Use DGIndex/DGDecode for video (and to demux audio) and use NicAudio/MPASource IF you want to import audio in AviSynth.

hbx2006
5th February 2006, 17:06
Hum... doesn't help much -maybe I haven't explained my problem well :)

Using DGIndex I can get wav file from VOB -but wav file is quite huge (about 1.2Gigs from 2hour movie). So, I was thinking if there were either:

1. Something like DGIndex, but with option to get mp3 file (not wav only)
or IMHO better and easier to use
2. Getting audio directly from VOB(s), using script like "audio=xxxSource(*.VOB+*.VOB)"

As said, VdubMod can open VOB, where video and audio stream(s) are present and ready for conversion (to DivX for example) -the problem is, VdubMod is limited to single VOB file. Using AviSynth I can open many VOBs, but separate audio files are needed.

Any further suggestions?

mg262
5th February 2006, 17:16
In DGIndex, look under audio/output method. Try the Demux options rather than decode to wav.

Guest
5th February 2006, 17:24
As mg262 said, demux the audio using DGIndex (not decode to WAV).

Then use an appropriate audio source call to decode it and dub it.

E.g., if you demux an MPEG audio track, use this:

vid=MPEG2Source(...)
aud=NicMPASource(...)
AudioDub(vid,aud)

Get the NicAudio DLL here:

http://www.avisynth.org/warpenterprises/

hbx2006
5th February 2006, 18:43
At last I understood how it works -thanks to you!

Have a nice day,
Bogdan