Log in

View Full Version : Avisynth audio support / bug


WarpEnterprises
4th August 2002, 00:58
I encountered a problem with following script, which takes video and (wav-extracted) audio from 3 mpgs, corrects A/V-sync and adds them:

V1=Audiodub(mpeg2Source("d:\rip\sm1.d2v"), WavSource("d:\rip\sm1.wav") )
V2=Audiodub(mpeg2Source("d:\rip\sm2.d2v"), WavSource("d:\rip\sm2.wav") ).DelayAudio(+0.4)
V3=Audiodub(mpeg2Source("d:\rip\sm3.d2v"), WavSource("d:\rip\sm3.wav") ).DelayAudio(+0.5)

UnalignedSplice(v1,v2)
ResampleAudio(44100)
Amplify(1.0)

UnalignedSplice(v3)
ResampleAudio(44100)
Amplify(1.0)

If I use the straightforward

V1+V2+V3

the audio playback and the SaveAsWave from VirtualDub will stop at the onset of the 2nd and 3rd audio (meaning there is an exception!)

Adding ResampleAudio and/or Amplify changes that behaviour, and the above solution works for SaveWave.
What's the error?
It seems like there is a illegal starting of the audio track when DelayAudio is involved. Btw The audio already is 44100.

And regarding another thread:
To me some basic audio support in avisynth is very important!!
Ok, sometimes you need a dedicated audio editor, but often only some clipping/joining/volume is required to be happy along with the great video filters of avisynth.

Richard Berg
4th August 2002, 01:21
It's coming, and faster than you may expect (http://forum.doom9.org/showthread.php?s=&threadid=30484)...