|
From: Erich E. <er...@ec...> - 2015-07-06 07:04:58
|
On 06.07.2015 08:25, Chris Angelico wrote: > On Mon, Jul 6, 2015 at 3:53 PM, fmiser <fm...@gm...> wrote: >>>> keghn wrote: >>>> >>>> sox infile.wav outfile_left.wav remix 1 >>>> sox infile.wav outfile_right.wav remix 2 >> >>> Erich wrote: >>> >>> RT wants it the other way round. What he's looking for >>> isn't called merge "effect", but merge "combining >>> method" (-M): >>> >>> sox -M in_left.wav in_right.wav out_stereo.mp3 >> >> Except the input files are stereo. And he wants the output >> channel 1 from channel 1 from one input file and output >> channel 2 from channel 2 from the other input file. ok, then I misinterpreted "take left and right channel of two wav files". >> >> Two stereo files merged will create a four channel file which >> 'remix' can then take two of those channels to create the new >> two channel (stereo) output file. > > Or alternatively, fold the two input files down to mono, and then > merge into one output file. But I'm curious: Can this be done with a > single sox invocation? There are times when I'd like to do this too. > > ChrisA yes and afaik no: yes, if you count the number of commands you have to type into your command line: sox -M "|sox in_left.wav -p remix 1" "|sox in_right.wav -p remix 2" out_stereo.mp3 and no, if you count the number of sox-processes actually running (the above command will have 3, I can't think of one with less processes, which _first_ mixes down and then merges together). greetings, Erich |