AddAudio
From Avisynth wiki
Since ResampleAudio no longer adds 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(audio_rate=44100,sixteen_bit=true,stereo=true,length=v1.FrameCount,fps=v1.FrameRate) v1 = AudioDub(v1,v2) return v1 }
To use the script, use:
AddAudio()
at the end of the script instead of the earlier ResampleAudio(44100).