davidlallen
7th February 2004, 17:50
Folks,
How do I kill the audio from one part of a clip? I am using
avisynth 2.5.4 on a Win98SE 700 MHz P3. Suppose I have a 300
frame clip, and I want to have silence from 100-199 and the
normal audio in the rest of the clip. I tried:
c = DirectShowSource("c:\my video\test.mpg")
Trim(c,0,99) + \
KillAudio(Trim(c,100,199)) + \
Trim(c,200,300)
This gives an error, "Splice: one clip has audio and the other
doesn't (not allowed)". Then I tried:
c = DirectShowSource("c:\my video\test.mpg")
v1 = Trim(c,100,199)
a1 = Tone(Audiolength(v1), 0, Audiorate(v1), Audiochannels(v1), "silence")
Trim(c,0,99) + \
AudioDub(v1,a1) + \
Trim(c,200,300)
This plays the correct video but the whole thing is silent, instead
of having normal sound at the beginning and end. Oddly, changing
the audio line to this still results in complete silence:
a1 = Tone(Audiolength(v1), 440, Audiorate(v1), Audiochannels(v1), "sine")
Is there some simple method which I have overlooked?
Thanks in advance,
- Dave Allen: dave@jendaveallen.com
How do I kill the audio from one part of a clip? I am using
avisynth 2.5.4 on a Win98SE 700 MHz P3. Suppose I have a 300
frame clip, and I want to have silence from 100-199 and the
normal audio in the rest of the clip. I tried:
c = DirectShowSource("c:\my video\test.mpg")
Trim(c,0,99) + \
KillAudio(Trim(c,100,199)) + \
Trim(c,200,300)
This gives an error, "Splice: one clip has audio and the other
doesn't (not allowed)". Then I tried:
c = DirectShowSource("c:\my video\test.mpg")
v1 = Trim(c,100,199)
a1 = Tone(Audiolength(v1), 0, Audiorate(v1), Audiochannels(v1), "silence")
Trim(c,0,99) + \
AudioDub(v1,a1) + \
Trim(c,200,300)
This plays the correct video but the whole thing is silent, instead
of having normal sound at the beginning and end. Oddly, changing
the audio line to this still results in complete silence:
a1 = Tone(Audiolength(v1), 440, Audiorate(v1), Audiochannels(v1), "sine")
Is there some simple method which I have overlooked?
Thanks in advance,
- Dave Allen: dave@jendaveallen.com