Hi,
I am trying to set up a Mopidy Raspberry Pi B v2 with HifiBerry DAC and Touchscreen (Adafruit).
So far, I already had almost everything working individually, but nothing at the same time. With support from “9and3r” I got his excellent Mopidy-Touchscreen extension running - so this is now perfect. Before, also my Hifiberry worked like a charm - but now not any longer.
What I had to do amongst other things to get the Touchscreen extension running was to run Mopidy as root. I am not sure whether the calls to GStreamer from Mopidy are also run as root - I could well imagine part of the issue might arise from that.
I constantly get the following error now when I try to start a song (from webclient or touchscreen, same issue):
2014-11-14 19:36:31,751 ERROR [2478:MainThread] mopidy.audio.actor: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure. Debug message: gstplaysink.c(1899): gen_audio_chain (): /GstPlayBin2:playbin20/GstPlaySink:playsink0
I tried to see whether I can get GStreamer under the console working - both the following commands play a pretty annoying beep through my Hifiberry, so seems working:
gst-launch-0.10 audiotestsrc ! audioresample ! autoaudiosink
gst-launch-0.10 audiotestsrc ! audioresample ! alsasink
Also mplayer plays perfectly from the console, no issues with that.
When I call gst-launch from the console without commands, I get an error though - not sure this might be an issue:
root@musikkiste:~# gst-launch-0.10
ERROR: pipeline could not be constructed: empty pipeline not allowed.
System is a Raspbian 2014-09-09 pure, with the rpi-firmware updated through:
REPO_URI=https://github.com/notro/rpi-firmware rpi-update
I would really appreciate your support - I have no further idea what I could try to get this up and running.
Thanks for pointing me into probable right directions!
lumihei
> Mopidy Deps output:
root@musikkiste:~# mopidy deps
Platform: Linux-3.12.25+-armv6l-with-debian-7.6
Python: CPython 2.7.3 from /usr/lib/python2.7
Mopidy: 0.19.4 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
Mopidy-Touchscreen: 0.2.1 from /usr/local/lib/python2.7/dist-packages/Mopidy_Touchscreen-0.2.1-py2.7.egg
setuptools: 0.6c11 from /usr/lib/python2.7/dist-packages
Mopidy>=0.18: 0.19.4 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
pygame: 1.9.1release from /usr/lib/python2.7/dist-packages
Mopidy-MusicBox-Webclient: 1.0.3 from /usr/local/lib/python2.7/dist-packages
setuptools: 0.6c11 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19: 0.19.4 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
Mopidy-Dirble: 0.1.1 from /usr/local/lib/python2.7/dist-packages
setuptools: 0.6c11 from /usr/lib/python2.7/dist-packages
Mopidy>=0.18: 0.19.4 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
pycountry: 0.14.1 from /usr/lib/python2.7/dist-packages
Mopidy-Youtube: 1.0.1 from /usr/local/lib/python2.7/dist-packages
setuptools: 0.6c11 from /usr/lib/python2.7/dist-packages
requests>=2.2.1: 2.4.3 from /usr/local/lib/python2.7/dist-packages
pafy>=0.3.35: 0.3.64 from /usr/local/lib/python2.7/dist-packages
Mopidy>=0.18: 0.19.4 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
Mopidy-Spotify: 1.2.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 0.6c11 from /usr/lib/python2.7/dist-packages
Mopidy>=0.18: 0.19.4 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
tornado>=2.3: 2.3 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 1.2.0 from /usr/lib/python2.7/dist-packages
pyspotify>=1.9,<1.999: 1.11 from /usr/lib/pymodules/python2.7
GStreamer: 0.10.36.0 from /usr/lib/python2.7/dist-packages/gst-0.10/gst
Detailed information:
Python wrapper: gst-python 0.10.22.0
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
id3demux
id3v2mux
lame
mad
mp3parse
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
pulsesink
flump3dec