Made a quick account to anyone that finds this thread!
The solution by Johan is a great workaround for the issue, thought I’d write this up for any beginners to follow:
- Copy the script Johan has posted:
#!/bin/bash
while :
do
OUT=$(tail -n 1 /var/log/mpd.log)
if [[ $OUT == *"Decoder is too slow"* ]]; then
/usr/bin/mpc stop
fi
sleep 1
done
- Login to your Volumio server via ssh (I’m assuming you still have the standard volumio user)
- Type and enter into console:
nano ~/mpd_radio_fix.sh
- Paste the script into this file then save it
- Type and enter into console:
sudo chmod u+x ~/mpd_radio_fix.sh
- Type and enter into console:
sudo nano /etc/systemd/system/mpd_radio_fix.service
- Paste the below:
Description=Fix For MPD Radio Play With Volumio
[Service]
ExecStart=/home/volumio/mpd_radio_fix.sh
[Install]
WantedBy=multi-user.target
- Save the file and run:
sudo systemctl start mpd_radio_fix
- It should be working! To enable it to start automatically on boot enter:
sudo systemctl enable mpd_radio_fix
The cron method would also work but I find this a bit cleaner personally.
Thanks again to Johan!