|
» AviSynth is a powerful video FrameServer for Win32. AviSynth Links: » You can add pages to this website
immediately. No login required.
|
WAV 5.1 ch:
Examples:
# Removes right channel information, and return as mono clip with only left channel:
video = AviSource("c:\filename.avi")
stereo = WavSource("c:\afx-ab3_t4.wav")
mono = GetLeftChannel(stereo)
return AudioDub(video, mono)
# Using v2.5 this becomes:
video = AviSource("c:\filename.avi")
stereo = WavSource("c:\afx-ab3_t4.wav")
mono = GetChannel(stereo, 1)
return AudioDub(video, mono)
# You could also obtain the channels from the avi file itself:
video = AviSource("c:\filename.avi")
return GetChannel(video, 1)
# Converts avi with "uncompressed 5.1 wav" audio to a stereo signal:
video = AviSource("c:\divx_wav.avi")
audio = WavSource(c:\divx_wav.avi)
stereo = GetChannel(audio, 1, 2)
return AudioDub(video, stereo)
Remark1: Every file format has a different channel ordening. The following table gives this ordening for some formats (useful for plugin writers :))
Remark2: At the time of writing, BeSweet still has the [2GB barrier]. So make sure that the size of the 5.1 WAV is below 2GB, otherwise encode to six separate wavs or use HeadAC3he. Remark3: GetChannels is an alias to GetChannel and they can be used interchangeably. The syntax is the same for both. |