Code: Select all
#Script for "opener and closer" have 2(or more) tracks, each 1 mono channel:
ffidxfile = "%s_job_work%\idx.idx"
ffidxfile2 = "%s_job_work%\idx.idx"
#trim existing source, creating 2 clips: one up to the point of insert, the other one from the point of insert
clip1=Trim(m_clip, 0,%i_insertion_point_frames%)
clip3=Trim(m_clip, %i_insertion_point_frames%,0)
#generate silent audio for insertion clip
audio_null = BlankClip( length=251 ,width=1920, height=1080, color=$000000, channels=30, audio_rate=48000, fps=25)
#load Clip to insert
_audio_21 = FFAudioSource("%s_clip_to_insert%",1,cachefile=ffidxfile)
_audio_22 = FFAudioSource("%s_clip_to_insert%",2,cachefile=ffidxfile)
_audio_2 = MergeChannels(_audio_21,_audio_22)
_audio_2 = MergeChannels(_audio_2, audio_null)
_video_2 = FFVideoSource("%s_clip_to_insert%",cachefile=ffidxfile,seekmode=0)
clip2 = AudioDub(_video_2,_audio_2)
#load outro
audio_null = BlankClip( length=251 ,width=1920, height=1080, color=$000000, channels=30, audio_rate=48000, fps=25)
_audio_41 = FFAudioSource("%s_outro_locatoin%",1,cachefile=ffidxfile2)
_audio_42 = FFAudioSource("%s_outro_locatoin%",2,cachefile=ffidxfile2)
_audio_4 = MergeChannels(_audio_41, _audio_42)
_audio_4 = MergeChannels(_audio_4, audio_null)
_video_4 = FFVideoSource("%s_outro_locatoin%",cachefile=ffidxfile2,seekmode=0)
clip4 = AudioDub(_video_4,_audio_4)
m_clip = clip1 + clip2 + clip3 + clip4
Return m_clip
I think it is something to do with: ffidxfile2
But I am not sure!