MergeChannels
From Avisynth wiki
Revision as of 16:42, 6 March 2016 by Raffriff42 (Talk | contribs)
Merge the audio channels of two or more clips.
MergeChannels(clip clip1, clip clip2 [, clip clip3, ...] )
Output audio is converted to the sample type of clip1.
Don't confuse this with mixing of channels (MixAudio and ConvertToMono do this). The channels are added to the new clip unchanged.
For example, given the following source clips:
- A (mono)
- B (mono)
...and merging them:
MergeChannels(A, B)
...results in the following audio channel layout:
- channel 1 = A channel 1
- channel 2 = B channel 1
This is equivalent to using MonoToStereo.
For a more complex example, given the following source clips:
- A and B (stereo)
- C and D (mono)
...and merging them:
MergeChannels(A, B, C, D)
...results in the following audio channel layout:
- channel 1 = A channel 1
- channel 2 = A channel 2
- channel 5 = B channel 1
- channel 6 = B channel 2
- channel 3 = C channel 1
- channel 4 = D channel 1