Is there problems with rasberry 2 and gapless mopidy 2.0?

Hi

i have upgrade old installation to jessie and installed mopiidy 2.0, no gapless sound from spotify
i have cleaned python 2.6 and clean installed python 2.7 and reinstalled mopidy and… still no gapless sound from spotify.

whats’s wrong ?

running on raspberry 2 with Hifiberry digi+ board, sounds and works really good !!!

Spotify is set to 320 kb

#uname -a
Linux 4.1.18-v7+ #845 SMP Thu Feb 18 19:45:28 GMT 2016 armv7l GNU/Linux

root@:~# dpkg -l | grep mopidy
ii libspotify12 12.1.103-0mopidy1 armh f Library for using the Spotify music streaming service
ii mopidy 2.0.0-1 all music server with support for MPD/HTTP clients
ii mopidy-alsamixer 1.0.3-3 all Mopidy extension for extension for ALSA volume control
ii mopidy-local-sqlite 1.0.0-1 all Mopidy extension for keeping your local library in SQLite
ii mopidy-podcast 1.1.2-1 all Mopidy extension for searching and browsing podcasts
ii mopidy-spotify 3.0.0-0mopidy1 all Mopidy extension for playing music from Spotify
ii mopidy-spotify-tunigo 1.0.0-0mopidy1 all Mopidy extension for providing the browse feature of Spotify
ii mopidy-tunein 0.4.0-1 all Mopidy extension for playing music from TuneIn
ii python-cachetools 1.0.0-1~bpo70+0mopidy1 all extensible memoizing collections and decorators for Python
ii python-cffi 1.1.2-1~bpo70+0mopidy2 all Foreign Function Interface for Python calling C code
ii python-cffi-backend 1.1.2-1~bpo70+0mopidy2 armh f Foreign Function Interface for Python calling C code - backend
ii python-ipaddress 1.0.14-1~bpo70+0mopidy1 all Backport of Python 3 ipaddress module (Python 2)
ii python-spotify 2.0.5-0mopidy1 armh f Python bindings for libspotify (Python 2)

root@:~# mopidy deps
Executable: /usr/local/bin/mopidy
Platform: Linux-4.1.18-v7±armv7l-with-debian-8.0
Python: CPython 2.7.9 from /usr/lib/python2.7
Mopidy: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-MusicBox-Webclient: 2.1.1 from /usr/local/lib/python2.7/dist-packages/Mopidy_MusicBox_Webclient-2.1.1-py2.7.egg
setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
Mopidy>=1.1.0: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-ALSAMixer: 1.0.3 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
pyalsaaudio: 0.7 from /usr/lib/python2.7/dist-packages
Mopidy-Local-SQLite: 1.0.0 from /usr/lib/python2.7/dist-packages
Mopidy>=1.1: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
uritools>=1.0: 1.0.1 from /usr/lib/python2.7/dist-packages
ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
Mopidy-TuneIn: 0.4.0 from /usr/lib/python2.7/dist-packages
Mopidy>=1.1: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Mopidy-WebSettings: 0.1.4.2 from /usr/local/lib/python2.7/dist-packages/Mopidy_WebSettings-0.1.4.2-py2.7.egg
setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
ConfigObj>=4.0.0: 5.0.6 from /usr/local/lib/python2.7/dist-packages/configobj-5.0.6-py2.7.egg
six: 1.8.0 from /usr/lib/python2.7/dist-packages
Jinja2>=2.7: 2.8 from /usr/local/lib/python2.7/dist-packages/Jinja2-2.8-py2.7.egg
MarkupSafe: 0.23 from /usr/local/lib/python2.7/dist-packages/MarkupSafe-0.23-py2.7.egg
Mopidy-Spotify-Tunigo: 1.0.0 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19.0: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Mopidy-Spotify>=1.2.0: 3.0.0 from /usr/lib/python2.7/dist-packages
Mopidy>=2.0: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
cffi>=1.0.0: 1.1.2 from /usr/lib/python2.7/dist-packages
pycparser: 2.10 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
tunigo>=1.0.0: 1.0.0 from /usr/lib/python2.7/dist-packages
requests>=2.0.0: 2.4.3 from /usr/lib/python2.7/dist-packages
Mopidy-Podcast: 1.1.2 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1.0: 1.2.1 from /usr/lib/python2.7/dist-packages
cachetools>=0.7.0: 1.0.0 from /usr/lib/python2.7/dist-packages
uritools>=0.8.0: 1.0.1 from /usr/lib/python2.7/dist-packages
ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
ipaddress>=1.0.6: 1.0.14 from /usr/lib/python2.7/dist-packages
Mopidy-Spotify: 3.0.0 from /usr/lib/python2.7/dist-packages
Mopidy>=2.0: 2.0.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 3.2.2 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
cffi>=1.0.0: 1.1.2 from /usr/lib/python2.7/dist-packages
pycparser: 2.10 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
GStreamer: 1.4.4.0 from /usr/lib/python2.7/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.14.0
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
pulsesink
id3demux
id3v2mux
lamemp3enc
mad
mpegaudioparse
mpg123audiodec
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
flump3dec
root@:~#

I did a test with volumio but i did have gap every 5-10 sec in sound and gap between tracks, recogniced that sd disk is the problen by moving cache to RAM, it fixed the sound problem in volumio but still small gap between tracs from spotify.

I replaced sd card with faster one but still a gap in mopidy-spotify between tracs.

Does mopidy need some disk i/o by RAM ?

libspotify does cache song data. mopidy-spotify allows you to disable this by setting allow_cache = false. Perhaps that is an experiment you can try.

no change with allow_cache setting, same gap
i have tested with local files with mp3, theres not same gap
some times i can hear a small gap but mostly it’s gapless