Log in

View Full Version : Newbie Audio question


coaa
9th June 2004, 18:48
I've been lurking this forum and reading all the guides for quite some time now. I never knew I had a passion for editing video until I visited this site and saw how much fun it could be! But that's not why I'm posting. Here's my problem: (it's my first post so be gentle :D )

Summary of what I'm trying to do:

I am making a gaming video using the avi's that fraps generates. I want to include different scenes on the video from a movie I own on dvd. I've followed the guide to a T and have been successful at ripping it and converting the file to an AVI. I have all the gaming AVI files that are going in the video and have made a few nice intro screens to put into it.

My Problem:

The trouble began with trying to get the audio working correctly. I have an overall theme song for the video that I want to last the entire clip. But when the DVD clips of the movie play, I want to hear the sound they generate and I want the soundtrack volume to decrease. I am using AVISynth to write the video and am pretty proficient with the basic functions.

Some things I have tried:

I thought I found the answer with the DelayAudio function in avisynth. Here is a sample of what I tried to do:

I tried splitting up the wav files into segments. I figured out how to use AVISynth to play 2 audio files at the same time (using MixAudio) so that's not a problem. I figured I could split them up and just add them to the video segments I want. But when i tried to join the wav files I had split there was a noticeable glitch in the sound.

I tried to use the delay audio feature to work but the audio I add to the clips doesn't start playing till the first one is finished.

Now I'm pullin out my hair. :(

Any ideas?

EDIT: Also, what tools should I use to loop a portion of the audio? For example, during the time I interrupt the main soundtrack I want the chorus to loop until the vid clip I have shown with the separate audio is over.

coaa
10th June 2004, 03:01
Lemme sum the problem up for those that don't wanna read all that above:

I need the ability to have 2 separate audio streams. One stream will be playing constantly (soundtrack) and the other will be audio from a separate video and will only be playing in 5-10 seconds at a time. When the second stream is playing, I want to lower the volume of the soundtrack.

hartford
10th June 2004, 04:12
I'm only guessing.

I suspect that you will need to make the second stream equal in length to the first stream.

Just guessing.

coaa
10th June 2004, 04:50
It doesn't matter how long the second audio stream is. It is only used when I play an external clip from a separate movie. I figured out a way in avisynth to make it work using mixaudio and amplify but it's really cumbersome and I was hoping there was a better way.