Shared functions/AddAudio
From Avisynth
Since ResampleAudio does no longer add empty sound to a clip when used, this workaround can no longer be used for avoiding crashes in CCE 2.50. Therefore a function has been made to add audio to a clip.
Save the following text in a file called "addaudio.avsi" and place it in the AviSynth plugin directory:
function AddAudio(clip v1)
{
v2 = Blankclip(v1, audio_rate=44100, sixteen_bit=true)
v1 = AudioDub(v1,v2)
return v1
}
To use the script, use:
AddAudio()
at the end of the script instead of the earlier ResampleAudio(44100).

