Giter VIP home page Giter VIP logo

Comments (9)

jodal avatar jodal commented on May 24, 2024

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.

ldouze avatar ldouze commented on May 24, 2024

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.

jodal avatar jodal commented on May 24, 2024

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.

ldouze avatar ldouze commented on May 24, 2024

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.

jodal avatar jodal commented on May 24, 2024

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.

jodal avatar jodal commented on May 24, 2024

The develop branch docs was updated in commit 7743fa3 with tips on how to test the GStreamer installation.

from mopidy.

kingosticks avatar kingosticks commented on May 24, 2024

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.

jodal avatar jodal commented on May 24, 2024

That's a too good point to hide in such an old bug, @kingosticks ;-)

Fixed in 9db9def.

from mopidy.

kingosticks avatar kingosticks commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.