Subject: Re: [ecasound] ogg / streaming / ecasound
From: Smoerk (smoerk_AT_gmx.de)
Date: Sun Oct 13 2002 - 14:07:14 EEST
Thanks, I really forgot that there are named pipes on Unix.
I would asume that I have to resample every stream to the same sample
rate (because it's possible, that sample rate will change for one
stream/channel). I'm not sure how to do this and what ogg123 do, when
the sample rate changes in the ogg stream (which is possible). But there
is surely one solution for this.
But I really don't have any idea how to write silence to fifos. If there
is net congestion ogg123 I have automatically write silence to the fifo.
this means I need a programm between ogg123 which counts the bits and if
there are to few it should add silence. I don't have any idea how to do
janne halttunen wrote:
>>>>I want to mix several ogg network streams together. so there is mainly
>>>>one thing to solve:
>>the last time I asked, Kai told me that it's not possible to do this
>>with streams from the net, like:
>>ecasound -i http://musiikki.fi/livestream.ogg
> Oh yes. You need to use named pipes (fifos).
> $ mkfifo myfifo.raw
> $ ogg123 -d raw -f - http://musiikki.fi/livestream.ogg > myfifo.raw
> $ ecasound -i myfifo.raw
> Ofcourse you have to make sure that the formats match in stream and ecasound.
>>also I need to open and close streams without restarting ecasound.
> For this you need to make a script:
> 1. make as many fifos as max number of streams
> 2. initialize and start ecasound on the fifos
> 3. loop over:
> - open and close streams
> - read data from streams
> - write data to fifos
> - write silence to fifos that are not receiving data (*
> 4. exit cleanly
> *) Ecasound blocks if there is no data available from input.
This archive was generated by hypermail 2b28 : Sun Oct 13 2002 - 14:05:14 EEST