You can load the audio with the script as well.
- Code: Select all
video = AVISource("yourvideo.avi").yaddayaddayaddavideoprocessing
audio = WAVSource("youraudio.wav")
AudioDub(video,audio)
If applicable, you could also add
SSRC() to the audio line to resample the frequency before giving it to TMPGEnc. You just need to set the frequency. 44100 or 48000 would be what most use - check the profile first to see what one it uses. If there's already audio in the AVI file, then there's no need to load it with the script or as a WAV file, since AviSynth will autoload it with the AVI (but you knew that).
Other than that, do you have
A) Something to decode XviD through VFW, either the standalone decoder or ffdshow? Do you also have the ability to decode it through DirectShow, again with either the standalone decoder or ffdshow?
B) What version of TMPGEnc is it? Is it one of the new versions that are sold through Pegasys' site, or is it the last one available for download from tmpgenc.net? I don't know if this would have anything to do with it, but whatever. I am assuming that whatever version it is, that you also have the AviSynth plugin for it so it can use scripts.