Hi folks, 

After the devastating "No results" on an amazon search for books on Red5, I
decided to look for pointers to help on your mailing list. 

Problematic: Mixing multiple audio streams server side, i.e. combining
multiple audio streams into one stream I can broadcast.

Case scenario : Imagine 3 users. User1 connects to red5 creates a room and
starts publishing a n audio stream and continues to stream the audio from
flash. Now User2 connects to Red5 and discovers user1's stream. He can
listen to it and decides he would like to contribute. User2 wires up his
microphone jack and starts publishing a stream. 
At the server I need to combine these two streams into 1 stream. I.e Mix the
two streams additively. Nothing fancy just combine the two streams into one
FLV, which I need to be able to stream whilst the User1 and User2 are
streaming. 

User3 turns up and hears the combined stream, and requests to join too. Now
he two must be able to contribute to the stream, i.e publish a stream which
needs to be combined server side too. 

So that we would have 3 users publishing 3 streams which are being added
(the audio in the streams woudl be being added) to produce one audio stream
that  I can broadcast. 

In such a way any user who connects to the room would be able to hear the
combined sound of all three users.;

I had considered just streaming 3 streams to all the users but this would be
too heavy on bandwidth... What I need is to be able to limit my upstream
connections to only the contributors and to be able to broadcast the result
without having to stream multiple streams to each listener. So that I have
one downstream connection to all users except the contributors who have one
upstream and one downstream connection.

Questions 
1. Is this possible, feasible if you prefer.
2. If this involves constructing my own class: What classes of the API would
I have to subclass or implement in order to achieve said feat. Where can I
get info/examples etc.
3. Where can I find good docs/info/tutorials or maybe a book inoreder to
accomplish the above.

Help appreciated
Warmest regards 
Charles
-- 
View this message in context: 
http://www.nabble.com/Combine-Multiple-Audio-Streams-to-one-Broadcast-Stream-tf3682248.html#a10291536
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to