Posts by awiouy

    It's the same when playing a movie, librespot disappears from my phone

    After stopping the movie librespot comes back on the phone in seconds

    But then it takes a minute before it's possible to connect again

    I'm going to try a clean setup on another HD just to see if it's my build causing that

    Works as programmed: the librespot service is stopped during Kodi playback, as a courtesy to potential Spotify users (do not disturb). Service is restarted immediately if Kodi user stops playback, or five seconds after playback ends.

    The issue with ALSA is that service.librespot starts before your ALSA device(s) are ready.

    I will try to find out how to solve this.

    In the meantime, add sleep 5 at line 2 of /storage/.kodi/addons/service.librespot/bin/librespot.start

    password for root is libreelec

    Try playing through Kodi rather than ALSA

    I was indeed wrong... It does auto start

    But I can't conenct with spotify until I go

    librespot > configure > ok

    This after every reboot

    I posted it now in the librespot thread

    What LibreELEC project are you running (Generic, RPi2, etc.)?

    What are your Librespot settings?

    What is reported in the log (journalctl -u service.librespot)?

    Autostart?

    Use a Spotify application (on your phone or PC) to select Librespot@libreelec and to play tracks. Make sure that Kodi is not playing anything else, as this disables Librespot.

    Also, please ask questions, report bugs and request features in the thread dedicated to Librespot.

    Spotify changed its API and broke librespot yesterday morning, librespot was fixed yesterday evening, and the addon was updated just after that. Raybuntu should update the addon he provides.

    As for Librespot through Kodi behaviour:

    - Kodi user has priority over Spotify user (Librespot is not active when Kodi user is playing back a media, Kodi user can stop Librespot streaming, etc.)

    - Librespot is controled via a Spotify app (start, stop, pause, etc.)

    - Librespot streams to Kodi via ffmpegx/RTP, which introduces latency.

    I will have to refresh my addons repo for LE8. I'm unable to test Spotify. I'm currently focusing on LE9. Are those new features merged at LE already? If it was merged lately I might not had the chance to pull and build it yet.

    My Addons are built natively for the platform, so infinity85 should use my rb-leia builds for C2 and install those Addons from my repo. But please report all issue to me.

    Mixing RPi addons with C2 will not work in this case cause it's linked against libmmal which is not used by C2 nor necessary to build.

    Those new features have been merged into LE 8.0, 8.2 and 9.0.

    Is this mmal thing something raspberry specific? How does your addon work then on aarch64 systems like the official 64bit C2 builds? Is mmal mandatory for it, also in the future?

    Good that we know the issue now :)

    ffmpegx (which streams librespot output to RTP) uses project specific hardware acceleration support, such as mmal. Using ffmpegx built for a project (RPi2/arm) on another project (Odroid_C2/arm) might therefore not work.

    I will see if I can add features required by librespot (native PCM transcoding and RTP) to ffmpeg provided by LibreELEC, but that will be for LibreELEC 9.0.

    In the meantime, a solution is to build the addon (or ffmpegx) for Odroid_C2/arm.

    Nice approach!

    here you are (errors indeed):

    During this my Android app showed that track is playing on Librespot@LibreELEC. But actually it did not.

    Then the device (Librespot@LibreELEC) disappeared from the overview of connect devices in android spotify app.

    Hope this helps to narrow it down somehow.

    Got it!

    ffmpegx for RPi2 is built with mmal support, which is apparently lacking on Odroid_C2/arm. I am sure Raybuntu will build the addon, if you ask him to.

    Well yeah, he has it there, but I haven't installed it. Inputsteam.adaptive is the successor of inputstream.rtmp as far as I know.

    Here's the log, where you can see which add-ons are installed: eOYE There is no inputstream.rtmp mentioned.

    I tested on my RPi: the librespot works fine without any inpustream addon.

    So let us try to assess differently.

    First determine if the service runs correctly:

    Code
    systemctl stop service.librespot
    librespot.start

    Any errors?

    Ah thanks. What benefit would that have? Will kodi react on play/pause controls from within kodi, or what is the idea behind this?

    Asking because it doesn't work for me here on my Odroid C2 with 32bit libs (compatible with RPi2/3). Otherwise I would've test it.

    If I set kodi and then connect from my Android phone to Librespot@LibreELEC device, it apparently connects (showing green on Android App) but looses connection immediately. Never get any sound out of it. If I set back to ALSA I get working spotify connect.

    Have you installed the inpustream.* addons?

    awiouy

    Could you please explain what this "streaming to kodi" means? Also, how do you enable it and whats the difference to Spotify Connect. And how do you control it then, if it is different to Connect? Is it integrated in Kodis Musicmanager then?

    By default librespot streams to the default ALSA output device. If you set Output to Kodi in the settings of the addon, librespot will play through Kodi.