View Full Version : How to Silence the audio of a clip within a range ?


philippas
10th December 2002, 08:14
I've got a video clip which a part of the audio is corrupted, so i want to silence that corrupt part.How can i do that with avisynth ?

I tried the following but avisynth cannot join the two segments.
vid.trim(0,a)+vid.trim(a,b).KillAudio+vid.trim(b,0)
where a,b the range in video frames, of the corrupted audio frames.
Any ideas ?

ErMaC
10th December 2002, 11:39
The problem is now one sample doesn't have audio at all.
Have you tried using Amplify() with a very high negative value? That would have the effect of Muting the audio stream.
Or you could add ResampleAudio(rate) after the KillAudio to add back in a silent audio stream.

philippas
11th December 2002, 02:34
Excellent ideas, i didn't think that the filters would behave like that.
Thanks very much :)

I used KillAudio.Resample(44100) and it works great !