Audio trim playing as one long connected file.

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
lindylex
Joined: Sun Oct 11, 2009 2:39 am
Org Profile

Audio trim playing as one long connected file.

Post by lindylex » Sun Oct 11, 2009 2:45 am

audio_mvi_2289=AudioDub( BlankClip(a, audio_rate=44100, length=a.FrameCount()) , DirectShowSource ("C:\images\staff\audio\mvi_2289.wav"))
audio_mvi_2289_trim_1=audio_mvi_2289.trim (0,270).KillVideo()
audio_mvi_2289_trim_2=audio_mvi_2289.trim (290,629).KillVideo()
audio_mvi_2289_trim_3=audio_mvi_2289.trim (640,920).KillVideo()



video_mvi_2289_1= AudioDub(a.trim(296,650), audio_mvi_2289_trim_1)

video_mvi_2289_2= AudioDub(a.trim(860,2764), audio_mvi_2289_trim_2)
video_mvi_2289_3= AudioDub(a.trim(2765,3242), audio_mvi_2289_trim_3)

mvi_2289=video_mvi_2289_1+video_mvi_2289_2+video_mvi_2289_3


When I do the follow the audio that I trimmed plays together. It does not wait for the trimmed movie I associated it with to play. In other words audio_mvi_2289_trim_1, audio_mvi_2289_trim_2 and audio_mvi_2289_trim_3 will play like one long connected audio clip totally disregarding video_mvi_2289_1 has been AudioDub with that section of sound.

Thanks ~ Lex

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: Audio trim playing as one long connected file.

Post by Scintilla » Sun Oct 11, 2009 9:10 am

If I understand you correctly, the way to fix this is to use AlignedSplice rather than UnalignedSplice, or, with the shorthand you're using, change the last line to this:

mvi_2289=video_mvi_2289_1++video_mvi_2289_2++video_mvi_2289_3
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

lindylex
Joined: Sun Oct 11, 2009 2:39 am
Org Profile

Re: Audio trim playing as one long connected file.

Post by lindylex » Tue Oct 13, 2009 1:20 am

[SOLVED SOLUTION]
Scintilla, thanks that was perfect. It worked.

Locked

Return to “AviSynth Help”