Comments (9)
If you have working ALSA, try forcing Mopidy to use ALSA instead of the autodetected OSS4 by setting:
GSTREAMER_AUDIO_SINK = u'alsasink'
in ~/.mopidy/settings.py.
from mopidy.
that gives the following error when starting mopidy:
INFO -- Starting Mopidy --
ERROR no element "alsasink"
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/mopidy/utils/process.py", line 65, in run
self.run_inside_try()
File "/usr/local/lib/python2.6/dist-packages/mopidy/outputs/gstreamer.py", line 121, in run_inside_try
self.setup()
File "/usr/local/lib/python2.6/dist-packages/mopidy/outputs/gstreamer.py", line 132, in setup
settings.GSTREAMER_AUDIO_SINK,
GError: no element "alsasink"
INFO Mopidy uses SPOTIFY(R) CORE
INFO Disabled: mopidy.frontends.lastfm.LastfmFrontend (No module named pylast)
INFO Exiting (Unknown error)
Exception in thread MpdThread (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/usr/local/lib/python2.6/dist-packages/mopidy/utils/process.py", line 65, in run
File "/usr/local/lib/python2.6/dist-packages/mopidy/frontends/mpd/thread.py", line 17, in run_inside_try
File "/usr/local/lib/python2.6/dist-packages/mopidy/frontends/mpd/server.py", line 34, in startException in thread LibspotifySMThread (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
File "/usr/local/lib/python2.6/dist-packages/mopidy/utils/process.py", line 65, in run
File "/usr/local/lib/python2.6/dist-packages/mopidy/backends/libspotify/session_manager.py", line 29, in run_inside_try
File "/usr/local/lib/python2.6/dist-packages/pyspotify-1.1-py2.6-linux-i586.egg/spotify/manager.py", line 44, in connect
File "/usr/local/lib/python2.6/dist-packages/pyspotify-1.1-py2.6-linux-i586.egg/spotify/manager.py", line 54, in loop
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'Timer'
File "/usr/local/lib/python2.6/dist-packages/mopidy/utils/settings.py", line 49, in getattr
File "/usr/local/lib/python2.6/dist-packages/mopidy/utils/settings.py", line 39, in current
<type 'exceptions.TypeError'>: 'NoneType' object is not callable
from mopidy.
These are not really Mopidy errors, but GStreamer errors.
Try finding a GStreamer combination that works on your machine through testing different sinks ala:
# Mopidy uses autoaudiosink per default
# If this works, Mopidy needs no custom configuration
gst-launch-0.10 audiotestsrc ! autoaudiosink
# Using ALSA directly:
gst-launch-0.10 audiotestsrc ! alsasink
You can find all currently installed GStreamer sources/sinks using:
gst-inspect-0.10
from mopidy.
Thanks.
Installing gstreamer0.10-alsa made the difference. Maybe good to mention it in the mopidy dependencies for the alsa mixer.
To run gst-inspect-0.10 I needed to install gstreamer0.10-tools. Maybe also good to mention that when you discuss gst-inspect at the bottom of the gstreamer installation page.
Many thanks!
from mopidy.
How GStreamer is packages will vary from distro to distro, but I'll add some kind of note regarding this.
Glad that you got it working :-)
from mopidy.
The develop branch docs was updated in commit 7743fa3 with tips on how to test the GStreamer installation.
from mopidy.
Sorry to resurrect such an old issue but I just hit this with the latest xbian release (Beta 2). When you do gst-launch-0.10 audiotestsrc ! autoaudiosink
you get :
Setting pipeline to PAUSED ...
FATAL: cannot locate cpu MHz in /proc/cpuinfo
I think this is because it's got a weird kernel (Linux xbian 3.12.7+ #5) that doesn't include a bogomips
field in /proc/cpuinfo and JACK is getting screwed up.
Anyway, my point is that since the raspberry pi installation guide suggests setting output = alsasink
it should also suggest installing gstreamer0.10-alsa
too.
from mopidy.
That's a too good point to hide in such an old bug, @kingosticks ;-)
Fixed in 9db9def.
from mopidy.
I do try my best! Thanks for fixing.
On 29 Mar 2014 19:28, "Stein Magnus Jodal" [email protected] wrote:
That's a too good point to hide in such an old bug, @kingostickshttps://github.com/kingosticks;-)
Fixed in 9db9defhttps://github.com/mopidy/mopidy/commit/9db9def367d02aef9d075721b5ce829649e61325
.Reply to this email directly or view it on GitHubhttps://github.com//issues/35#issuecomment-39006143
.
from mopidy.
Related Issues (20)
- Playback breaks when changing track HOT 10
- tests: get coverage above 90% (currently it is 78%). HOT 1
- Changelog v3.5.0: python < 3.9 no longer supported
- "Could not find a text/html decoder to handle media" HOT 3
- Remove appsrc
- Expose playback errors to clients
- Backend.lookup should take a list of URIs HOT 1
- Switching the audio source gets mopidy to produce no sound though seems to play HOT 25
- Support setting tracklist options in mopidy.conf HOT 2
- Previous track is reported incorrectly after the second track HOT 3
- mopidy playback stops at every bufering error HOT 4
- Websocket error only when connecting to mopidy running as service HOT 2
- Use new GStreamer elements HOT 5
- Seeking in a stream HOT 1
- M3U8 stream duration bug
- Switching between multiple music sources in the queue is buggy in several ways HOT 5
- Put more documentation in all files HOT 2
- mopidy is crashing on play (coredump) HOT 14
- SIGILL on Arch on RaspberryPi 5 HOT 13
- core.tracklist.add does not support m3u uris
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mopidy.