2021-07-30, 12:24 PM
(This post was last modified: 2021-07-30, 12:25 PM by Chewtobacca.)
@allldu
Even if CETK's 5.1 is a remix (that is, with stereo surrounds that are qualitatively different from the original mono surround), stereoizing them is probably the best that you can do if your intent is to base a restoration of the theatrical audio on the LD track and splice in the alternate material, which I guessed it might be when you mentioned CETK. Assuming that you do this, you might present your 4.1 as 5.1 with mono surrounds, to match how the track is presented on LD, and because it's often a good idea anyway. (In other words, 5.1→4.1→5.1-with-mono-surrounds.) If so, the script would look like this:
The call to Amplify() is to preserve the global volume level. After editing, encode as 5.1. In this case, there should be no need to set a channel-mask.
Even if CETK's 5.1 is a remix (that is, with stereo surrounds that are qualitatively different from the original mono surround), stereoizing them is probably the best that you can do if your intent is to base a restoration of the theatrical audio on the LD track and splice in the alternate material, which I guessed it might be when you mentioned CETK. Assuming that you do this, you might present your 4.1 as 5.1 with mono surrounds, to match how the track is presented on LD, and because it's often a good idea anyway. (In other words, 5.1→4.1→5.1-with-mono-surrounds.) If so, the script would look like this:
Code:
LoadPlugin("AudioLimiter.dll")#http://avisynth.nl/index.php/AudioLimiter
FL=WavSource("L.wav")
FR=WavSource("R.wav")
C=WavSource("C.wav")
LFE=WavSource("LFE.wav")
SL=WavSource("SL.wav").ConvertAudioToFloat()
SR=WavSource("SR.wav").ConvertAudioToFloat()
SUR=MixAudio(SL, SR, 1.0, 1.0).SoftClipperFromAudX(0.0).Amplify(0.707).ConvertAudioTo24bit()# or ConvertAudioTo16bit() if the source is 16-bit
Merge = MergeChannels(FL,FR,C,LFE,SUR,SUR)
return Merge# or to dub the audio to a clip:
#AudioDub(
#\BlankClip(Merge, height=720, width=480, fps=24000, fps_denominator=1001),
#\Merge
#\)
The call to Amplify() is to preserve the global volume level. After editing, encode as 5.1. In this case, there should be no need to set a channel-mask.