Yeah sorry, i should have mentioned:
1) you should start the WF by submitting only the video file. E.g. if you test in a watchfolder, exclude *.txt... the WF calculates the text files name from the video file name and waits 1 hour until it exists. Sure you could easily exchange this and submit the text file, then calculate the video's file name (if the extension of the video is always the same, e.g. *.mxf)
2) currently i assume that opener and closer have one audio track with stereo. If they have any other audio configuration it would fail.
The audio configuration of the "main" clip does not matter.
If you want to use opener and closer with mono tracks, e.g. XDCAMHD style, you can use this script in the "custom avisynth" processor:
Code: Select all
ffidxfile = "%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=ffidxfile)
_audio_42 = FFAudioSource("%s_outro_locatoin%",2,cachefile=ffidxfile)
_audio_4 = MergeChannels(_audio_41, _audio_42)
_audio_4 = MergeChannels(_audio_4, audio_null)
_video_4 = FFVideoSource("%s_outro_locatoin%",cachefile=ffidxfile,seekmode=0)
clip4 = AudioDub(_video_4,_audio_4)
m_clip = clip1 + clip2 + clip3 + clip4
Return m_clip