Log in

View Full Version : avs problem


centaur
28th January 2002, 23:37
When I load my .avs in virtualdub, the video is OK but I have no sound.

The .avs file is as follows:

DirectShowSource("d:\cosmos.00.avi")+DirectShowSource("d:\cosmos.01.avi")+...DirectShowSource("d:\cosmos.06.avi")

The individual avi segments play with sound in windows media player.

TelemachusMH
30th January 2002, 07:36
Avisynth doesn't support direct sound out of a video. You have to extract the audio into a wav file and use the WavSource("PATH")command to add the sound to the avs.

centaur
31st January 2002, 02:21
Are you sure about this? The Avisynth site does not mention this limitation.

western shinma
31st January 2002, 09:29
I think you're talking about the old reference guide. The guide on videotools.net goes into more detail about newer functions, although the old site also mentions this limitation on the beta page.

centaur
31st January 2002, 21:18
On videotools.net I found a reference to AVISource. Would this allow frameserving video+audio?

If so would it be sufficient for me to replace DirectShowSource in the avs script with AVISource?

western shinma
1st February 2002, 03:34
That will only work if your AVI file has uncompressed audio.

You could simplify your script by using SegmentedAVISource instead of AVISource:

SegmentedAVISource("cosmos.avi")

That should load up all your files. As long as your AVS is in the same folder as the AVI, you don't need paths either.

centaur
1st February 2002, 15:20
I followed your suggestion and used SegmentedAVISource and everything is working fine now.

Thanks very much for your help.