Really want to use it on my raspberry pi 4. Has anyone tried ******* to solve this problem? I found some reviews of it but not sure if it really works.
Which problem?
Really want to use it on my raspberry pi 4. Has anyone tried ******* to solve this problem? I found some reviews of it but not sure if it really works.
Which problem?
Display MoreHi awiouy,
sorry not coming back on that for a while. Howewer, now that my system got broken again (likely doue to an update again). I am eager to trace the root cause.
As a starting point I:
1. deinstalled librespot addon
2. deleted the zip archive from .kodi/addons/packages/
3. rebootet the machine
4. reinstalled addon
5. rebootet the machine
6. journalctl -u service.librespot returns the previously reported error log
So find the requested information below
1.) LibreELEC (official): 9.2.0 (Generic.x86_64)
2.) no, disabled
3.) no, disabled
4.) yes, have premium
5.) yes, tried but when the service is crashed, but prefer not to use, because we have mutiple accounts in my home, that want to use the service
6.) ldd /storage/.kodi/addons/service.librespot/bin/librespot
linux-vdso.so.1 (0x00007fff5d5fd000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00007fccab1a7000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x00007fccab1a0000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x00007fccab0de000)
libdns_sd.so.1 => /storage/.kodi/addons/service.librespot/lib/libdns_sd.so.1 (0x00007fccab0d5000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fccab0d0000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007fccab0c6000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fccab0a3000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fccab089000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fccaaed3000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fccab8cb000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fccaad93000)
libpulsecommon-12.2.so => /usr/lib/pulseaudio/libpulsecommon-12.2.so (0x00007fccaacbe000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fccaac76000)
libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0x00007fccaac67000)
libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0x00007fccaac56000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007fccaabb7000)
would be great if the would tell you something meaningful ...
Best Regards
Sappi
Hello Sappi,
did you have more luck with Avahi turned on? I am asking because I had likely the same problem, but as awiouy mentioned earlier, Avahi must be turned on. That was my problem.
Well, I figured it out.
My goal: Use librespot on an RPi3 running the latest Kodi/libreelec combo playing via alsa (Cirrus audio card), since the TV I have is not that good for playing music, but good enough for films and series and I have a hifi system which I use for music only
How I got there:
0. Install Librespot via Addons on your RPi
I had done this way before I stumbled into the problem with the missing alsa option, so you also might have done this already. If not install the kodi nerds repository and install it from there.
1. Setup a fresh Ubuntu VM
For Windows users: download latest image from ubuntu website and use VMware Player with easy setup. Make sure Ubuntu has 30Gig disk space.
2. Install Docker
Follow the instructions here: Docker Install Guide
For a fresh machine you can directly go to step 3 of the guide:
Inside the ubuntu VM open a console (Win-key and type cmd)
3. Install Curl, Git and dependencies
You will need this for the next steps.
4. Install Rust
This is done via rustup.rs
Or use this code directly(could be outdated!):
5. Get the latest version of the librespot project from github
Make a new folder, maybe in your home directory and clone the git into it
This will make a new folder: /home/libspot/librespot
6. Make the docker image
Source: Cross-compiling
The last '.' is crucial!
7. Finally Cross-Compile
After following all preceding steps you should now be able to run following command:
docker run -v /home/libspot/librespot-build:/build librespot-cross cargo build --release --target arm-unknown-linux-gnueabihf --no-default-features --features alsa-backend
This will direct the output to /home/libspot/librespot-build/arm-unknown-linux-gnueabihf/release/
8. Transfer your new binary to your RPi
Locate the "old" binary of the librespot addon here: /storage/.kodi/addons/service.librespot/bin/
Use the "Files" app of your ubuntu system to transfer the file "librespot" to your RPi. Use "Other Locations" and type in the field on the bottom of the "Files" app:
User: root
Passphrase: libreelec
Then copy the file "librespot" to your RPi into /storage/downloads/
From there use a ssh shell and replace the old file with your new one.
9. Make it work...
Last thing on the list, edit the file: /storage/.kodi/addons/service.librespot/bin/librespot.start
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
# Copyright (C) 2017-present Team LibreELEC (https://libreelec.tv)
. /etc/profile
oe_setup_addon service.librespot
PORT="6666"
SINK_NAME="librespot_sink"
if ! pactl list modules short | grep "sink_name=$SINK_NAME"; then
pactl load-module module-null-sink sink_name="$SINK_NAME" > /dev/null
fi
if ! pactl list modules short | grep "source=$SINK_NAME"; then
pactl load-module module-rtp-send source="$SINK_NAME.monitor" \
destination_ip=127.0.0.1 port="$PORT" source_ip=127.0.0.1 > /dev/null
fi
pactl suspend-sink "$SINK_NAME" 1
LIBRESPOT="librespot \
--bitrate 320 \
--name \"Kodi LibSpot\""
if [ "$ls_a" = "true" -a -n "$ls_p" -a -n "$ls_u" ]; then
LIBRESPOT="$LIBRESPOT \
--password \"$ls_p\" \
--username \"$ls_u\""
fi
eval $LIBRESPOT
Display More
I got rid of two or three options, which I don't need. Feel free to add them back in.
After this, librespot should be started automatically at systemstart. If not you can use following command to see what's going wrong:
Good luck and good night.
Doesn't Libreelec still support alsa? The alsa option is available in Libreelec 9.2 under System?
Yes it does, even out of the box since they added the drivers for the cirrus card, but, and that's in my eyes a downgrade, librespot does not support playing directly to alsa anymore. Which was somehow pretty good, because you could have a seperat HiFi System to which you could send your spotify music and a TV which takes all the other audio. That means, I didn't have to fiddle around with the system settings every time.
Hi,
first of all, thanks for your time and work on the librespot addon.
After I recently updated libreelec and librespot, I immediatly recognized "missing" options in the librespot addon. After google-ing the crap out of the internet, I found out, that librespot isn't supporting ALSA out of the box anymore.
Which leads to my problem. I have no idea how to build a version with alsa enabled as backend. Probably am I just not smart enough or maybe it's tldr, but I need alsa, since I do not like to switch the playback device everytime from pulse to alsa when I stream music and vice versa when watching a film. Is there a good instruction on how to use either pipe to alsa or a good, short instruction sheet on how to build librespot with alsa on the rpi3 running libreelec?
Please, I couldn't find it, so maybe you can bring some light into my dark ball, called head.
Thank you in advance for your time to read my crap here and thank you even more for responding to it.
Jan Müller, <-not the brightest bulb in the chandelier