TCmullet
23rd November 2020, 18:57
I have a special situation where I want to play two videos in two separate VDub windows. For each video, I need to mix the stereo sound to mono, then play the mono mix on ONLY one of the channels. This is so I can hear the audio of each program in a different speaker. The code for my left video works correctly. I see and hear the audio in the left channel only, as well as video in the Vdub video panes:
ConvertToMono # mix to mono
MergeChannels(last,last) # dup the mono to dual mono
left=GetLeftChannel
right=GetRightChannel.BlankClip # silence right channel
MergeChannels(left,right)
last
However, my corresponding code for the right channel video does not work correctly. Audio is correct (is in the right channel only), but the video is blank.
ConvertToMono # mix to mono
MergeChannels(last,last) # dup the mono to dual mono
left=GetLeftChannel.BlankClip # silence left channel
right=GetRightChannel
MergeChannels(left,right)
last
What have I missed? (Both videos play fine when neither of these code fragments are present in their respective scripts.)
ConvertToMono # mix to mono
MergeChannels(last,last) # dup the mono to dual mono
left=GetLeftChannel
right=GetRightChannel.BlankClip # silence right channel
MergeChannels(left,right)
last
However, my corresponding code for the right channel video does not work correctly. Audio is correct (is in the right channel only), but the video is blank.
ConvertToMono # mix to mono
MergeChannels(last,last) # dup the mono to dual mono
left=GetLeftChannel.BlankClip # silence left channel
right=GetRightChannel
MergeChannels(left,right)
last
What have I missed? (Both videos play fine when neither of these code fragments are present in their respective scripts.)