[pulseaudio-discuss] Shoutcast/Icecast sink for pulseaudio

Colin Guthrie gmane at colin.guthr.ie
Thu May 8 16:26:52 PDT 2008

Matthew Patterson wrote:
> Hey everyone,
> In my quest to further expand my whole home audio solution I was 
> thinking about the options for piping the music to non pulse supporting 
> devices like my internet tablet and cell phones. Right now I stream to 
> these devices simply by giving them playlists that target my webserver, 
> but I have tried in the past icecast2. This has the added benefit of 
> normalizing the stream bitrate for the lower bandwidth of the cell phone 
> (and is essential now that I am moving to flac as my primary format).
> Has anybody worked on a solution for pulseaudio -> shoutcast/icecast? I 
> realize icecast only takes mp3/ogg streams, so the raw pcm data would 
> have to be piped through an encoder on the fly, then shipped to the 
> icecast server. I also realize synchronization would be lost, but 
> wouldn't this be a cool addition!

gst-launch-0.10 pulsesrc 
device=alsa_output.pci_8086_27d8_alsa_playback_0.monitor ! audioconvert 
  ! vorbisenc ! oggmux ! shout2send ip=example.com port=8000 
password=hackme mount=stream.ogg

Have fun :)

(NB change the device name to suit the monitor stream of the device you 
want to broadcast)


More information about the pulseaudio-discuss mailing list