Re: [ecasound] streaming with ecasound

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Fri Oct 02 2009 - 00:28:22 EEST


> But when i want to pipe it to lame and then into a streaming program
> like that i get white noise:

like Sergei noted, you need to make sure all apps use the same audio
format: sample format (int/float, signed/unsigned, bits, endianess, etc),
channels, sampling rate.

> ecasound -i alsa -o stdout | lame -b 64 - - | ezstream -c config.xml

So that would be (with lame 3.98 and newer) for instance something

ecasound -f:s16_le,2,44100 -i alsa -o stdout | lame -b 64 -r -S
--signed --bitwidth 16 --little-endian -s 44.1 - - | ezstream ...

... and similar options for ezstream.

Older versions of lame are missing some of the options and you just have
to figure out what it is expected and adjust ecasound accordingly. There's
still no nice option to specify how many channels the input PCM stream has
(you just specify the channel encoding mode with '-m'), but in most cases
the default (stereo) is fine.

All in all, finding the right params might be a bit of a hassle, but
e.g. for white-noise, just adding "-x" to lame options will
probably fix the problem for you (swaps endianess).

Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
Ecasound-list mailing list
Received on Fri Oct 2 04:15:02 2009

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