wertherman
28th July 2003, 11:59
If the video clips when doing an aligned splice are too long in avisynth 2.08 (probably applies to avisynth 2.5) then the audio disappears from the video (0 samples of audio is outputted in the video stream)
Length at which it breaks is not absolute and dependent on other factors as I originally encountered the problem while align splicing about 230 video clips together and it broke around the 13 minute, 31 second mark (rather than the 14 minute mark like the example code below).
# Code that has audio
BlankClip(length=1212322,width=720,height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid1 = audioDub(last, audio)
BlankClip(length=50000, width=720, height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid2 = audioDub(last, audio)
AlignedSplice(vid1, vid2)
# Code that doesn't
BlankClip(length=1212323,width=720,height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid1 = audioDub(last, audio)
BlankClip(length=50000, width=720, height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid2 = audioDub(last, audio)
AlignedSplice(vid1, vid2)
Only difference between two code segments is the length of the blank clip.
Length at which it breaks is not absolute and dependent on other factors as I originally encountered the problem while align splicing about 230 video clips together and it broke around the 13 minute, 31 second mark (rather than the 14 minute mark like the example code below).
# Code that has audio
BlankClip(length=1212322,width=720,height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid1 = audioDub(last, audio)
BlankClip(length=50000, width=720, height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid2 = audioDub(last, audio)
AlignedSplice(vid1, vid2)
# Code that doesn't
BlankClip(length=1212323,width=720,height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid1 = audioDub(last, audio)
BlankClip(length=50000, width=720, height=200,fps=25, color=255)
audio = WAVSource("K:\avs\Monty Python - Lumberjack song.wav")
vid2 = audioDub(last, audio)
AlignedSplice(vid1, vid2)
Only difference between two code segments is the length of the blank clip.