Log in

View Full Version : Stacking video clips and importing wav files


Blaze_Heatnix
23rd August 2011, 02:38
Ok I have absolutely no clue what to call this, nor do I know if a topic about what I'm looking for exists because I have no clue what to even look for.
I'll keep this short.
Basically, I have a script like this.
cap1=Trim(AVISource("1.avi",audio=false),15,3098)
cap2=Trim(AVISource("2.avi",audio=false),7020,10532)
cap3=Trim(AVISource("3.avi",audio=false),7131,12755)
cap4=Trim(AVISource("4.avi",audio=false),18073,21765)
cap5=Trim(AVISource("5.avi",audio=false),8789,12182)
cap6=Trim(AVISource("6.avi",audio=false),6136,12754)
cap7=Trim(AVISource("7.avi",audio=false),2876,7876)
cap8=Trim(AVISource("8.avi",audio=false),1816,6447)
cap9=Trim(AVISource("9.avi",audio=false),8709,13110)
cap10=Trim(AVISource("10.avi",audio=false),4910,8241)
cap11=Trim(AVISource("11.avi",audio=false),9767,13119)
cap12=Trim(AVISource("12.avi",audio=false),15707,19183)
cap13=Trim(AVISource("13.avi",audio=false),131,8472)
cap14=Trim(AVISource("14.avi",audio=false),2077,9513)
AlignedSplice(cap1,cap2,cap3,cap4,cap5,cap6,cap7,cap8,cap9,cap10,cap11,cap12,cap13,cap14)
lanczosresize(320,240)

What I want to do is take separate WAV files and drop them off one file at a time in the trimmed area of those individual AVI files.

I do hope that isn't too vague.

Gavino
23rd August 2011, 09:04
Do the audio lengths match each of the trimmed avi sections?
If so, all you need is to replace the first 14 lines by
cap1=Trim(AVISource("1.avi",audio=false),15,3098).AudioDub(WavSource("1.wav"))
etc

Blaze_Heatnix
23rd August 2011, 23:51
Do the audio lengths match each of the trimmed avi sections?
If so, all you need is to replace the first 14 lines by
cap1=Trim(AVISource("1.avi",audio=false),15,3098).AudioDub(WavSource("1.wav"))
etc

Using Audacity, I have timed the WAV files properly.
Thanks for the help!

swine
24th August 2011, 17:44
How would he lay one audio track over all of those clips?
thanks

Gavino
24th August 2011, 18:41
How would he lay one audio track over all of those clips?
To add a single audio track to the complete set of clips, just add this line to the end of the script:
AudioDub(WavSource("whatever.wav"))

See http://avisynth.org/mediawiki/AudioDub

swine
24th August 2011, 21:46
thanks Gavino! I stumbled upon that after searching for a while. At least I didn't make a thread about it before searching :search: