On Thu, May 22, 2008 at 2:56 AM, Terence Macdonald
<
terencemacdonald@...> wrote:
> Pascal,
>
> Thankyou for your response - very helpful
>
> couple of follow on questions, again, forgive my ignorance...
>
> what is the difference between Mixing and Merging?
>
> Can sox mix/merge to an mp3 result?
>
> and extrapolating your example is....
>
> sox -M in1.ogg in2.ogg in3.ogg in4.ogg result.ogg
>
> valid and would it result in 4 channel audio being 'merged' into a mono
> single file suitable for playback?
Hello Terence,
You've confused mix and merge...
from sox manpage:
If the `mix' combining method is selected (with -m) then two or more
input files must be given and will be mixed together to form the output
file. The number of channels in each input file need not be the same,
however, SoX will issue a warning if they are not and some channels in
the output file will not contain audio from every input file. A mixed
audio file cannot be un-mixed.
If the `merge' combining method is selected (with -M), then two or more
input files must be given and will be merged together to form the
output file. The number of channels in each input file need not be the
same. A merged audio file comprises all of the channels from all of
the input files; un-merging is possible using multiple invocations of
SoX with the mixer effect. For example, two mono files could be merged
to form one stereo file; the first and second mono files would become
the left and right channels of the stereo file.
If you actually want a mono file as a result, you want to mix all four
channels together.
In the example I gave you, I mixed 2 pairs of channels then merged
them to obtain a stereo file.
Hope this clarifies.
-Pascal
PS: I my example I choose the OGG Vorbis format as an output, of
course this is an arbitrary choice.
--
Homepage (
http://organact.mine.nu)
Debian GNU/Linux (
http://www.debian.org)
LACIME: École de technologie supérieure (
http://lacime.etsmtl.ca)
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Sox-users mailing list
Sox-users@...
https://lists.sourceforge.net/lists/listinfo/sox-users