Hi everyone,
UPDATE 28 Dec 2019: added package for ARM architecture (Raspberry Pis)
Here’s an EXPERIMENTAL build of MPD v0.21.16 for Volumio. It’s not official and I’m sure it will not be supported by the Volumio team in anyway. So use at your own risk and don’t hold me responsible if it breaks your existing Volumio If you want to test it, I suggest you do it on a separate Volumio installation or at least back up your data first. It’s not as scary as it sounds, but you never know…
I did it partly because I could use the YouTube plugin without having the 2/3 playback cutoff problem (there’s actually a lighter approach which I will try when I have time), but also because I wanted to .
I have made three builds for the architectures supported by Volumio. Download the one appropriate for your device and follow the instructions below to activate it:
- For Raspberry Pis, download the one for the arm architecture - Note that I have not tested this myself apart from seeing if it executes on a rPi
- For x86 (Intel / AMD PCs): download the x86 version
- For other ARM devices: download the armv7 version
Your device should have at least 1GB RAM. This is because the MPD build loads its own system libraries instead of those provided by the OS, so memory consumption would be higher than using Volumio’s MPD. To my understanding, Volumio kind of strains under 512MB, so I am not sure if these low-memory devices can afford an extra memory cost. You can still test, of course…
Note that I have not tested playing files on network shares (NFS and Samba) - so if any of you could test this aspect that would be great. **UPDATE: tested Samba for the x86 version (works ok)
Without further ado, here are the files to download:
x86: mpd-0.21.16.x86-20191227-3se7n.tar.gz
armv7: mpd-0.21.16.armv7-20191227-ogvma.tar.gz
arm (Raspberry Pi): mpd-0.21.16.arm-20191228-3v3jy.tar.gz
Here are the instructions to activate it, after you have copied the file to your Volumio device (I assume you copied it to /home/volumio). The instructions are the same for either architecture.
SSH into Volumio, then:
$ cd /
$ sudo tar xzf /home/volumio/<name of downloaded file>
This will unpack the files to /opt/mpd-0.21.16_20191227 . Depending on the speed of your device, this could take some time, so please be patient.
We should test if the new mpd is executable, just to make sure it is at least compatible with your system’s architecture:
$ cd /opt/mpd-0.21.16_20191227/bin
$ ./mpd --version
Note the ‘./’ before ‘mpd’; do not leave it out!
If mpd is executable, you should see something like this:
Music Player Daemon 0.21.16 (0.21.16)
Copyright 2003-2007 Warren Dukes <warren.dukes@gmail.com>
Copyright 2008-2018 Max Kellermann <max.kellermann@gmail.com>
This is free software; see the source for copying conditions. There is NO
warranty; not even MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Database plugins:
simple proxy upnp
...
...
If you see an error here, you should not proceed further!
Finally, activate our mpd. Inside the same directory:
$ sudo ./systemd-switch-mpd.sh
That’s it! To confirm that the new MPD is loaded, do this:
$ sudo systemctl status mpd
You should see something like this:
Active: active (running) since ....
...
└─... /opt/mpd-0.21.16_20191227/bin/mpd --no-daemon
Now you can try playing some files with Volumio.
Have fun, and if possible share your results here (your device + whether it works or any errors encountered).
If you are interested in seeing how I made the build, check out my github here:
https://github.com/patrickkfkan/volumio-build-mpd
If you are a script expert, be easy on me. This is my first bash script that’s over 10 lines long
- Patrick