Re: [ecasound] how to upmix mono audio to stereo?

From: Stuart Allie <Stuart.Allie@email-addr-hidden>
Date: Fri May 01 2009 - 04:00:15 EEST

> -----Original Message-----
> From: Jason Galyon [mailto:jgalyon@email-addr-hidden]
> Sent: Friday, 1 May 2009 9:57 AM
> To: ecasound-list@email-addr-hidden
> Subject: Re: [ecasound] how to upmix mono audio to stereo?
> Stuart Allie wrote:
> > At some point you need to copy the data in channel 1 to channel 2
> > the
> > -chcopy:1,2 command (was -erc:1,2).
> >
> > Stuart
> >
> >
> >
> aha, ok... cool
> However, does copy overwrite existing channel data? Since I don't
> until runtime what files will be mono or stereo, how can I do this?
> (short of obvious extra analyzing steps in my logic to change the
> command line)
> Thank you VERY much, I wasn't sure if I needed to use this option for
> the reason I stated above.

Yep, -chcopy will overwrite the existing channel data, so you need to
know whether you have a mono or stereo file before deciding whether or
not to use it. I can't think of any way within ecasound to achieve this
automatically. But you could use sox or sndfile-info from the command
line to tell you how many channels your file has and construct a command
line accordingly. It's a bit of a pain, but should be possible.

Good luck!


Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3.
Ecasound-list mailing list
Received on Fri May 1 04:15:02 2009

This archive was generated by hypermail 2.1.8 : Fri May 01 2009 - 04:15:02 EEST