Issues with noticeable gaps and artifacts when using Mopidy-Spotify

Dear all,

I’m having issues with Mopidy-Spotify on a Raspberry Pi 3B. I was not able to reproduce it, but, especially when Mopidy is in longer use, there are noticeable gaps and sometimes even artefacts between songs: the last ends, the next song starts and after s ~8s the elapsed time resets and the song starts. Sometimes, then the next song starts skipping something between 1 to 5 seconds.

My config is as follows:

[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 15000

[proxy]
scheme = 
hostname = 
port = 
username = 
password = 

[file]
enabled = false  ; Extension disabled by user config.

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
zeroconf = 
allowed_origins = 
csrf_protection = true
default_app = mopidy

[m3u]
enabled = false  ; Extension disabled by user config.

[softwaremixer]
enabled = true

[stream]
enabled = false  ; Extension disabled by user config.

[spotify]
enabled = true
username = ********
password = ********
client_id = ********
client_secret = ********
bitrate = 320
volume_normalization = true
private_session = true
timeout = 20
allow_cache = false
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries =

Dependencies are:

Executable: /usr/bin/mopidy
Platform: Linux-5.10.60-v7+-armv7l-with-debian-10.10
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.2.0 from /usr/lib/python3/dist-packages
Mopidy-Spotify: 4.1.1 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
  Detailed information: 
    Python wrapper: python-gi 3.30.4
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

Mopidy runs as systemd service installed via apt.mopidy.com; songs are searched and enqueued using the HTTP API. This behavior is somewhat new. I am using the setup for 1.5 years now and I am observing the artifacts since approx. 1 month (before, I did not use my setup for several months).

I’ve tried it with no buffer setting (so letting gstreamer decide), with 5, 10 and 15 seconds. Has this setting any influence when using libspotify? I have a gut feeling that the behavior becomes less since I am using 15 seconds buffer time.

Thanks for any help, I’m planning to use this setup at my wedding (digital jukebox style).

Best,
Marc

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.