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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd August 2011, 02:38   #1  |  Link
Blaze_Heatnix
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.
Blaze_Heatnix is offline   Reply With Quote
Old 23rd August 2011, 09:04   #2  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,373
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
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 23rd August 2011, 23:51   #3  |  Link
Blaze_Heatnix
Registered User
 
Join Date: Jun 2010
Posts: 41
Quote:
Originally Posted by Gavino View Post
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!
Blaze_Heatnix is offline   Reply With Quote
Old 24th August 2011, 17:44   #4  |  Link
swine
Registered User
 
Join Date: Aug 2011
Posts: 5
How would he lay one audio track over all of those clips?
thanks
swine is offline   Reply With Quote
Old 24th August 2011, 18:41   #5  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,373
Quote:
Originally Posted by swine View Post
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
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote
Old 24th August 2011, 21:46   #6  |  Link
swine
Registered User
 
Join Date: Aug 2011
Posts: 5
thanks Gavino! I stumbled upon that after searching for a while. At least I didn't make a thread about it before searching
swine is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 17:10.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.