Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd August 2011, 02:38 | #1 | Link |
Registered User
Join Date: Jun 2010
Posts: 41
|
Stacking video clips and importing wav files
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. |
23rd August 2011, 09:04 | #2 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
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 |
23rd August 2011, 23:51 | #3 | Link | |
Registered User
Join Date: Jun 2010
Posts: 41
|
Quote:
Thanks for the help! |
|
24th August 2011, 18:41 | #5 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|