Streaming music like a radio show

I'd like to be able to stream music, realtime, to a friend. Not in my LAN, but over the internet. I've done a lot of research on how to do this, one option was setting up a shoutcast server, but that isn't realtime as far as I know. VLC allows streaming, but again, this is not realtime.

I can't imagine this being so hard to do. I did a lot of research, and the "best" solution I could find was to use teamspeak with a music player plugin. It would be soo much more convenient though if I could just open rythmbox and start a stream, in which someone else could join and listen.


Solution 1:

The Music Player Daemon or short MPD is an excellent choice for streaming audio to other computers or even mobile devices, like phones/mp3-players, that are connected with the net.

MPD is designed around a client/server architecture, where the clients and server (MPD is the server) interact over a network. Thus, running MPD is only half of the equation. To use MPD, you need to install a MPD client (aka MPD interface). Command-line Clients

You can choose between a terminal or graphical based interface clients:

  • mpc - a solid, lightweight, simple mpd client, written in C. Console Clients

  • ncmpc - A curses client written in C.

  • ncmpcpp - A curses client written in C++ tailored after ncmpc. Graphical Clients

  • gmpc (Gnome Music Player Client) - A fully featured client.

  • ario - Another GTK based client.

  • More clients can be found on the Wiki


Ubuntu Install Procedure:

  1. First, edit /etc/apt/sources.list and enable the 'universe' repository. After you make this change, you will have to run apt-get update. You can use Synaptic. If for some reason this installation fails, this howto on the Ubuntu Forums may help, or the user-manual.
sudo apt-get update        
sudo apt-get install mpd

OR

  1. If you just need only MP3 and FLAC support through ALSA, then you can compile it from source:
download the latest sources  
extract them to some directory (for example 'mpd-x-x-x')  
go to this directory (for example 'cd mpd-x-x-x')  
install the dependencies, compile and install:   
 sudo apt-get update   
 sudo apt-get install libasound2-dev libmad0-dev libid3tag0-dev libflac-dev libflac++-dev libglib2.0-dev

./configure
make
sudo make install

Solution 2:

I don't know much about the subject but if you want to use rhythmbox, perhaps this might be interesting:
rhythmbox-ampache and ampache

Solution 3:

You can use MPD .It has capability to steam music.

If you want to stream audio from mpd to another computer , edit /etc/mpd.conf on the server running mpd to use the IP address of the target computer and /etc/pulse/default.pa or $XDG_CONFIG_HOME/default.pa(typically ~/.config/pulse/default.pa) on the target computer using the IP address of the server.

For more see here. wiki.archlinux.org