Csound Csound-dev Csound-tekno Search About

Realtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?

Date2007-08-09 12:17
FromJonas Nyström
SubjectRealtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?
AttachmentsNone  None  

Date2007-08-09 18:30
FromAndres Cabrera
SubjectRe: Realtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?
Hi,
I think the best way to do it is to stream csounds output to jack and 
then use icecast to stream the jack stream. I haven't tried it but I 
think it should work.

Cheers,
Andrés


Jonas Nyström escribió:
> Hi!
>
> Let's say
>
>    1. A client Flash mixer with sliders for separate wav/mp3 channels
>    2. This mixer controlling the Csound server reatime mixing of the
>       audio channels (wav)
>    3. The result pushed back to the Flash client via Flash Media
>       Server or (preferrably) Red 5
>
> One problem might be the lack of mp3 format in Csound, and the lack of 
> mp3-alternatives in Flash...
>
> Experiences? Ideas?
>
> Best regards / Jonas Nyström
>

Date2007-08-10 12:39
FromJonas Nyström
SubjectRe: Realtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?
AttachmentsNone  None  

Date2007-08-10 15:05
FromJeff Harrington
SubjectRe: Realtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?
Either FMS or Red can stream audio that's being input through the
hardware that allows for their live broadcasting abilities. 
NetStream.attachAudio(microphone:Microphone) would be the call to attach
your stream and begin broadcasting.  Spoofing a microphone, would be the
only problem.  The Microphone can be any audio device.  I haven't done
this, but I assume you could attach any audio device, including one that
is a Csound out.  I'm running FMS at work right this moment...  You
would need a SWF to grab the audio and assign it as the broadcasting
source.  Right-clicking on any SWF lets you pick and permission the
Microphone device.  Then you'd write code to do the uplink  through a
NetStream object attached to your broadcasting FMS server where it would
be replicated to all the listening SWF.  It would take almost no code. 

I think you're right to stick with Flash for audio playback.  It's
ubiquitous and just works.

Jeff
http://jeffharrington.org

Jonas Nyström wrote:
> Hi Andres!
>
> Icecast is a new fellow for me. Thank you for introducing me!
> The point is that
> 1. I need the client live interaction...
> 2. The recieving client must be have a web standard interface,
> preferably Flash...
>
> Icecast seems to stream to applications only, not any web-players...
> Also Icecast streams mp3, and Csound still doesn't output mp3...
>
> Best regards / Jonas
>
>
> 2007/8/9, Andres Cabrera < mantaraya36@gmail.com
> >:
>
>     Hi,
>     I think the best way to do it is to stream csounds output to jack and
>     then use icecast to stream the jack stream. I haven't tried it but I
>     think it should work.
>
>     Cheers,
>     Andrés
>
>
>     Jonas Nyström escribió:
>     > Hi!
>     >
>     > Let's say
>     >
>     >    1. A client Flash mixer with sliders for separate wav/mp3
>     channels
>     >    2. This mixer controlling the Csound server reatime mixing of the
>     >       audio channels (wav)
>     >    3. The result pushed back to the Flash client via Flash Media
>     >       Server or (preferrably) Red 5
>     >
>     > One problem might be the lack of mp3 format in Csound, and the
>     lack of
>     > mp3-alternatives in Flash...
>     >
>     > Experiences? Ideas?
>     >
>     > Best regards / Jonas Nyström
>     >
>     --
>     Send bugs reports to this list.
>     To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>     
>
>

Date2007-08-10 15:08
FromJeff Harrington
SubjectRe: Realtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?
Also, an FMS developer license is free for any application for up to 10
streams.  It installs on Linux or PC.  Might be fine for a 10 person
audience.  Haven't worked with Red recently as our stream hosting
service we work with is third party and runs FMS. 

Jeff
http://jeffharrington.org

Jonas Nyström wrote:
> Hi Andres!
>
> Icecast is a new fellow for me. Thank you for introducing me!
> The point is that
> 1. I need the client live interaction...
> 2. The recieving client must be have a web standard interface,
> preferably Flash...
>
> Icecast seems to stream to applications only, not any web-players...
> Also Icecast streams mp3, and Csound still doesn't output mp3...
>
> Best regards / Jonas
>
>
> 2007/8/9, Andres Cabrera < mantaraya36@gmail.com
> >:
>
>     Hi,
>     I think the best way to do it is to stream csounds output to jack and
>     then use icecast to stream the jack stream. I haven't tried it but I
>     think it should work.
>
>     Cheers,
>     Andrés
>
>
>     Jonas Nyström escribió:
>     > Hi!
>     >
>     > Let's say
>     >
>     >    1. A client Flash mixer with sliders for separate wav/mp3
>     channels
>     >    2. This mixer controlling the Csound server reatime mixing of the
>     >       audio channels (wav)
>     >    3. The result pushed back to the Flash client via Flash Media
>     >       Server or (preferrably) Red 5
>     >
>     > One problem might be the lack of mp3 format in Csound, and the
>     lack of
>     > mp3-alternatives in Flash...
>     >
>     > Experiences? Ideas?
>     >
>     > Best regards / Jonas Nyström
>     >
>     --
>     Send bugs reports to this list.
>     To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>     
>
>

Date2007-08-10 21:08
FromAndres Cabrera
SubjectRe: Realtime streaming of Csound-stuff to client via Flash MS/Red 5/alt. - possible?
Hi,

Jonas Nyström escribió:
> Hi Andres!
>
> Icecast is a new fellow for me. Thank you for introducing me!
> The point is that
> 1. I need the client live interaction...
> 2. The recieving client must be have a web standard interface, 
> preferably Flash...
Icecast streams using standard protocols that can be received in most 
media players ( Flash would need a pre-built player), but it does the 
mp3 encoding on the fly.
>
> Icecast seems to stream to applications only, not any web-players...
> Also Icecast streams mp3, and Csound still doesn't output mp3...
If you're on Linux (or probably Mac as well) you can output csound via 
jack, and stream csound's jack output using icecast (like I said, I 
haven't tried this, but I'm under the impression it should work...)

Cheers,
Andrés
>
> Best regards / Jonas
>
>
> 2007/8/9, Andres Cabrera < mantaraya36@gmail.com 
> >:
>
>     Hi,
>     I think the best way to do it is to stream csounds output to jack and
>     then use icecast to stream the jack stream. I haven't tried it but I
>     think it should work.
>
>     Cheers,
>     Andrés
>
>
>     Jonas Nyström escribió:
>     > Hi!
>     >
>     > Let's say
>     >
>     >    1. A client Flash mixer with sliders for separate wav/mp3
>     channels
>     >    2. This mixer controlling the Csound server reatime mixing of the
>     >       audio channels (wav)
>     >    3. The result pushed back to the Flash client via Flash Media
>     >       Server or (preferrably) Red 5
>     >
>     > One problem might be the lack of mp3 format in Csound, and the
>     lack of
>     > mp3-alternatives in Flash...
>     >
>     > Experiences? Ideas?
>     >
>     > Best regards / Jonas Nyström
>     >
>     --
>     Send bugs reports to this list.
>     To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
>     
>
>