Page 2 of 2

Re: Raspberry Pi streaming internet radio to bluetooth

Posted: 5. Oct 2018, 10:13
by mimosa
Thanks very much for these! It's a work in progress ... I'm on the road at the moment but will definitely check those out with a view to refining my setup.

Re: Raspberry Pi streaming internet radio to bluetooth

Posted: 12. Oct 2020, 19:54
by mimosa
I'm just re-doing this with a fresh install of Raspbian (which is no longer called Raspbian). It's easier than before - there is less to fix - the main thing seems to be this, in /lib/systemd/system/bluetooth.service:

Code: Select all

[Unit]
Description=Bluetooth service
Documentation=man:bluetoothd(8)
ConditionPathIsDirectory=/sys/class/bluetooth

[Service]
Type=dbus
BusName=org.bluez
ExecStart=/usr/lib/bluetooth/bluetoothd --compat --noplugin=sap -E
NotifyAccess=main
#WatchdogSec=10
#Restart=on-failure
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
LimitNPROC=1
ProtectHome=true
ProtectSystem=full

[Install]
WantedBy=bluetooth.target
Alias=dbus-org.bluez.service
with the change needed on the line beginning ExecStart, from https://www.sigmdel.ca/michel/ha/rpi/bl ... 03_en.html

But my question is about the player. I have been using mpv, but on this old Pi, it takes ten or fifteen seconds to open the stream. Can anyone recommend a lighter player, which still has the ability to play streams? I mean ones that look like this:

Code: Select all

 mpv --volume=50 'mms://mediau.yle.fi/liveyleradio1'
The pi is headless, and the stream called in a script, so nothing requiring a GUI is any good.