PDA

View Full Version : No sound with VirtualDubMod


HyperSpad
8th January 2006, 09:14
I'm trying to encode an MPEG file to XVID AVI using VirtualDubMod, and when I load my AVIsynth script and try to preview the file, it does not have any sound. The MPEG has sound when played in an external media player, but previewing in VirtualDubMod simply will not yield sound.

I can use VirtualDubMod to open an MPEG file and preview that and there's sound. I just don't know why won't it work with loading an avisynth script.

Here is the code for my script:
DirectShowSource("V:\record\video.mpg", fps=29.97)

Please help

Thanks
-HYPERSPAD

foxyshadis
8th January 2006, 09:54
DirectShowSource only returns one stream at a time, it's in the manual. You want:


DirectShowSource("V:\record\video.mpg", fps=29.97,video=true)
\ .AudioDub(DirectShowSource("V:\record\video.mpg", fps=29.97,audio=true))


Of course DGdecode is a better and more stable choice for mpeg, but it's your choice.

Mug Funky
8th January 2006, 15:46
hmm. are the manuals outdated? or is my brain?

directshowsource IIRC returns both streams so long as it can negotiate a good filter graph for both. very very often this is not the case (directshow is so goddamn messy - even on a fresh install nothing works properly), and so directshowsource is probably only returning the video because it doesn't know how to decode the audio and thus ignores it.

Wilbert
8th January 2006, 16:20
hmm. are the manuals outdated? or is my brain?

directshowsource IIRC returns both streams so long as it can negotiate a good filter graph for both.
It's not in the manual, and of course you are right.