Audio trim playing as one long connected file.

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Audio trim playing as one long connected file.

Postby 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
lindylex
 
Joined: 11 Oct 2009

Re: Audio trim playing as one long connected file.

Postby 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:
User avatar
Scintilla
(for EXTREME)
 
Joined: 31 Mar 2003
Location: New Jersey
Status: Quo

Re: Audio trim playing as one long connected file.

Postby lindylex » Tue Oct 13, 2009 1:20 am

[SOLVED SOLUTION]
Scintilla, thanks that was perfect. It worked.
lindylex
 
Joined: 11 Oct 2009


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 2 guests