Raspberry Pi streaming internet radio to bluetooth

Introduce yourself, create test postings or talk nonsense
User avatar
mimosa
Salix Warrior
Posts: 3145
Joined: 25. May 2010, 17:02
Contact:

Re: Raspberry Pi streaming internet radio to bluetooth

Post by mimosa » 5. Oct 2018, 10:13

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.

User avatar
mimosa
Salix Warrior
Posts: 3145
Joined: 25. May 2010, 17:02
Contact:

Re: Raspberry Pi streaming internet radio to bluetooth

Post by mimosa » 12. Oct 2020, 19:54

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.

Post Reply