Tempo of (Spotify) songs too low

Hello,

I have installed Pi MusicBox Mopidy on a RPI3. I have a Spotify account which I registered successfully. Things have been working correctly and now for some weeks I can not use it anylonger as all the songs play at a temp lower than expected. How can I solve this?

Thanks,
Frank

I recently noticed a similar issue. I found that if I queued a track from Mopidy Podcast and a track from Mopidy Spotify, the first track would play at the correct speed, but the second one would play at half or double speed, depending on if it was going from Podcast to Spotify or Spotify to Podcast.
If I wait until tracks from one extension finish playback before queuing tracks from the other, everything works fine.

@jjok, is that also on PiMusicbox ? This post seems to have been moved from the PiMusicbox forum for some reason.

I have reported it on the wrong thread. I have OSMC and installed mopidy on top of this.

No, just plain Mopidy.

OK, thanks guys, Plain Mopidy for both of you. @jjok, what platform.

Docker on a Raspberry Pi. This is my setup:

Both using the onboard soundcard?

Anything in the verbose log? Cpu usage look OK?

I’m not familiar with resin’s raspbian docker image but I know osmc use various rpi firmware versions. It does sound like something that’d be related to that. I’ll try the latest normal raspbian version out myself tonight.

I’m using Pimoroni’s PhatDAC.

I assumed it would be something to do with the different types of audio using different sample rates, and it not switching to the different rate when tracks are in the same playlist. Of course, I don’t know anything about it.

I’ll see if I can replicate it again, and have a look at the logs

@jjok what’s your mopidy deps there? Specifically, what version of Gstreamer-1.0 do you have ?

Hmm… I’m not sure this still an issue. I’ve tried to reproduce it a few times, but it seems to behave correctly.
I did rebuild my Docker image a few weeks back, so maybe whatever the problem was has gone away with the current versions I’m using.

I’m highly suspicious of a race condition when using Gstreamer v1.14. And that could explain the caps not getting set properly when switching between normal (playbin) and Spotify (appsrc). Could you find out what version you currently have that seems to be working?

Executable: /usr/bin/mopidy
Platform: Linux-4.14.50+-armv6l-with-debian-8.0
Python: CPython 2.7.9 from /usr/lib/python2.7
Mopidy: 2.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-GMusic: 3.0.0 from /usr/local/lib/python2.7/dist-packages
  gmusicapi>=10.1: 11.0.3 from /usr/local/lib/python2.7/dist-packages
    validictory>=0.8.0,!=0.9.2: 1.1.2 from /usr/local/lib/python2.7/dist-packages
    decorator>=3.3.1: 4.3.0 from /usr/local/lib/python2.7/dist-packages
    mutagen>=1.34: 1.41.1 from /usr/local/lib/python2.7/dist-packages
    requests>=1.1.0,!=1.2.0,!=2.2.1,!=2.8.0,!=2.8.1,!=2.12.0,!=2.12.1,!=2.12.2,!=2.18.2: 2.4.3 from /usr/lib/python2.7/dist-packages
    python-dateutil>=1.3,!=2.0: 2.7.5 from /usr/local/lib/python2.7/dist-packages
      six>=1.5: 1.11.0 from /usr/local/lib/python2.7/dist-packages
    proboscis>=1.2.5.1: 1.2.6.0 from /usr/local/lib/python2.7/dist-packages
    protobuf>=3.0.0: 3.6.1 from /usr/local/lib/python2.7/dist-packages
      six>=1.9: 1.11.0 from /usr/local/lib/python2.7/dist-packages
      setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
    oauth2client>=1.1: 4.1.3 from /usr/local/lib/python2.7/dist-packages
      httplib2>=0.9.1: 0.11.3 from /usr/local/lib/python2.7/dist-packages
      pyasn1>=0.1.7: 0.4.4 from /usr/local/lib/python2.7/dist-packages
      six>=1.6.1: 1.11.0 from /usr/local/lib/python2.7/dist-packages
      rsa>=3.1.4: 4.0 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.1.3: 0.4.4 from /usr/local/lib/python2.7/dist-packages
      pyasn1-modules>=0.0.5: 0.2.2 from /usr/local/lib/python2.7/dist-packages
        pyasn1>=0.4.1,<0.5.0: 0.4.4 from /usr/local/lib/python2.7/dist-packages
    mock>=0.7.0: 2.0.0 from /usr/local/lib/python2.7/dist-packages
      six>=1.9: 1.11.0 from /usr/local/lib/python2.7/dist-packages
      funcsigs>=1: 1.0.2 from /usr/local/lib/python2.7/dist-packages
      pbr>=0.11: 5.1.1 from /usr/local/lib/python2.7/dist-packages
    appdirs>=1.1.0: 1.4.3 from /usr/local/lib/python2.7/dist-packages
    gpsoauth>=0.2.0: 0.4.1 from /usr/local/lib/python2.7/dist-packages
      pycryptodomex>=3.0: 3.7.0 from /usr/local/lib/python2.7/dist-packages
      requests: 2.4.3 from /usr/lib/python2.7/dist-packages
    MechanicalSoup>=0.4.0: 0.11.0 from /usr/local/lib/python2.7/dist-packages
      beautifulsoup4: 4.6.3 from /usr/local/lib/python2.7/dist-packages
      six>=1.4: 1.11.0 from /usr/local/lib/python2.7/dist-packages
      lxml: 4.2.5 from /usr/local/lib/python2.7/dist-packages
      requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
    six>=1.9.0: 1.11.0 from /usr/local/lib/python2.7/dist-packages
    future: 0.17.1 from /usr/local/lib/python2.7/dist-packages
  cachetools>=1.0: 3.0.0 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=1.0: 2.2.1 from /usr/lib/python2.7/dist-packages
  requests>=2.0: 2.4.3 from /usr/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-MusicBox-Webclient: 2.5.0 from /usr/local/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  Mopidy>=1.1.0: 2.2.1 from /usr/lib/python2.7/dist-packages
Mopidy-Scrobbler: 1.2.0 from /usr/local/lib/python2.7/dist-packages
  pylast>=1.6.0: 2.4.0 from /usr/local/lib/python2.7/dist-packages
    six: 1.11.0 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=0.18: 2.2.1 from /usr/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
Mopidy-Podcast: 2.0.3 from /usr/local/lib/python2.7/dist-packages
  Mopidy>=1.1.1: 2.2.1 from /usr/lib/python2.7/dist-packages
  cachetools>=2.0: 3.0.0 from /usr/local/lib/python2.7/dist-packages
  Pykka>=1.1: 1.2.1 from /usr/lib/python2.7/dist-packages
  setuptools: 5.5.1 from /usr/lib/python2.7/dist-packages
  uritools>=1.0: 2.2.0 from /usr/local/lib/python2.7/dist-packages
    ipaddress: 1.0.22 from /usr/local/lib/python2.7/dist-packages
Mopidy-Spotify: 3.1.0 from /usr/lib/python2.7/dist-packages
  Mopidy>=2.0: 2.2.1 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
        id3demux
        id3v2mux
        lamemp3enc
        mad
        mpegaudioparse
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        pulsesink
        flump3dec
        mpg123audiodec

That’s quite an old one (from Jessie era) that I would certainly expect to work. I’d be very surprised if resin/rpi-raspbian:latest was pulling in that so I am a little confused.