AddAudio
From Avisynth wiki
(Difference between revisions)
m (1 revision) |
|||
Line 1: | Line 1: | ||
+ | {{FilterCat|External_filters|Audio_filters|Audio_filters}} | ||
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. | 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. | ||
Line 15: | Line 16: | ||
at the end of the script instead of the earlier ResampleAudio(44100). | at the end of the script instead of the earlier ResampleAudio(44100). | ||
− | |||
− |
Revision as of 23:01, 19 May 2013
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).