Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2527  / 3 Years ago, sat, november 6, 2021, 9:57:13

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.


More From » music

 Answers
2

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

[#26713] Sunday, November 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
serveeel

Total Points: 347
Total Questions: 106
Total Answers: 117

Location: American Samoa
Member since Fri, Aug 26, 2022
2 Years ago
serveeel questions
;