Music Streaming Server

The idea is to have a streaming music server, capable to handle streaming throught DLNA, UPNP, to be controlled remotely.

Raspberry Pi(Edit)

For such a small task, the Raspberry Pi 3 is an overkill. With a dedicated DAC of proper quality, the sound output can be really pleasant.

Raspbian(Edit)

The linux distribution will be used, so this project is focusing on GMediaRender, that has provided a great start as a solution, but the project is not being maintained anymore, and the software itself is not running well, quality is also altered. The new way is provided as a nice tutorial here, that sums it up[1]. Using the new project GMRender-Resurrect.

The software uses GStreamer, that is only available in version 0.10 from official repositories. So we will add the ones from the project compiled for Raspberry Pi[2]. That is why this initial step.

Install the keys for the repository, and install some dependencies along with the renderer:

sudo wget -O - http://www.chiark.greenend.org.uk/~christi/debian/christi@coraline.org.gpg.key | sudo apt-key add -
sudo vi /etc/apt/sources.list.d/upnprender.list
sudo apt-get update
sudo apt-get install libupnp-dev libgstreamer1.0-dev gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-alsa

Second, download from github, compile and install from source:

cd
git clone https://github.com/hzeller/gmrender-resurrect.git
cd gmrender-resurrect
sudo apt-get install autoconf
./autogen.sh
./configure
sudo make install

Then, set up the parameters for the starting script, and deploy it as a service:

sudo cp scripts/init.d/gmediarenderer /etc/init.d
sudo vi /etc/init.d/gmediarenderer
sudo update-rc.d gmediarenderer defaults

In the gmediarenderer file, a few things, such as the name to give the renderer.

You can check everything is in place, reboot, and check the process is started.

ls -l /etc/rc*.d/*gmed*
sudo shutdown -r now
ps aux|grep gmed

Done, the renderer should soon appear on capable devices.

References(Edit)

  1. Stephen C Phillips's guide : http://blog.scphillips.com/posts/2014/05/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-v3/
  2. Christi Scarborough provides a compiled gstreamer 1.0 package for the Raspberry Pi: http://www.coraline.org/non-fiction/raspi-upnp-renderer