2021-01-08, 05:45 PM
(2021-01-08, 04:51 PM)Chewtobacca Wrote:(2021-01-08, 01:38 PM)allldu Wrote: So I copied your code to AvsPmod and made a script. So what should I do next?
Open the script in VirtualDub2 or BeHappy. Render the audio to FLAC (or whatever).
EDIT: You might find it useful to dub the audio to a blank video clip. I had assumed that you were working on a project of some kind; otherwise, I don't know where you'd have across seven mono wav files.
Code:#AviSynth
fl=WavSource("L.wav")
fr=WavSource("R.wav")
c=WavSource("C.wav")
lfe=WavSource("LFE.wav")
bc=WavSource("BC.wav")
sl=WavSource("SL.wav")
sr=WavSource("SR.wav")
MergeChannels(fl,fr,c,lfe,bc,sl,sr)
#Assuming 23.976fps input -- change "fps" and "fps_denominator" if necessary
AudioDub(
\BlankClip(c, fps=24000,fps_denominator=1001,width=720, height=480),
\MergeChannels(fl,fr,c,lfe,bl,br,sl,sr)
\)
Oh, I didn't see your edited post... Well, I was working from a 6.1 DTS file, which I converted to 7 separate wav files, then edited them, and now I want to merge them back to a 6.1 pcm so that later I could mux it in with the video in .mkv container.