Log in

View Full Version : Inserting New Audio into an avi


loubat
19th December 2007, 17:57
I've got an avi with a section of video that's completely silent. What I want to do is add some audio on top of that part of the video. I've got the audio in wav format. I've got an idea of how I could maybe do this, but I'm sure there's a more *correct* way of doing this.

Here's my plan though: Since the clip is an hour into the avi, I'm just going to add an hour of silence to the wav file with Audacity then add the wav to the stream list in VirtDubMod.

Would that work? What's the correct way of doing this?

Thanks!

tebasuna51
19th December 2007, 18:22
1) Demux your original audio track with VirtualDubMod.
2) Cut the track in three segments t1, t2 and t3, where t2 is the silence segment you want to replace.
3) Encode your new wav (same lenght than t2) with the same parameters than t1-t3
4) Join t1, t2_new and t3
5) Replace the whole audio track with VirtualDubMod

loubat
19th December 2007, 20:29
Thanks, tebasuna51. That did the trick!