natumbri / mopidy-youtube

Mopidy extension for playing music from YouTube
Apache License 2.0
258 stars 75 forks source link

Your GStreamer installation is missing a plug-in #47

Closed robotrono closed 8 years ago

robotrono commented 9 years ago

I get this error when mopidy play this video https://youtu.be/uISfZEdqdAM

WARNING  Could not find a audio/x-unknown decoder to handle media.
INFO     You might be able to fix this by running: gst-installer "gstreamer|0.10|mopidy|audio/x-unknown decoder|decoder-audio/x-unknown, codec-id=(string)A_OPUS"
WARNING  There is no codec present that can handle the stream's type.
ERROR    Your GStreamer installation is missing a plug-in.

Ubuntu 14.04 x64 Pafy 0.3.74 Plugins:

user@mail:~# apt-cache search -n gstreamer0.10-plugins
gstreamer0.10-plugins-base - GStreamer plugins from the "base" set
gstreamer0.10-plugins-base-apps - GStreamer helper programs from the "base" set
gstreamer0.10-plugins-base-dbg - GStreamer plugins from the "base" set
gstreamer0.10-plugins-base-doc - GStreamer documentation for plugins from the "base" set
gstreamer0.10-plugins-good - GStreamer plugins from the "good" set
gstreamer0.10-plugins-good-dbg - GStreamer plugins from the "good" set
gstreamer0.10-plugins-good-doc - GStreamer documentation for plugins from the "good" set
gstreamer0.10-plugins-bad-multiverse - GStreamer plugins from the "bad" set (Multiverse Variant)
gstreamer0.10-plugins-bad-multiverse-dbg - GStreamer plugins from the "bad" set (Multiverse Variant)
gstreamer0.10-plugins-bad - GStreamer plugins from the "bad" set
gstreamer0.10-plugins-bad-dbg - GStreamer plugins from the "bad" set (debug symbols)
gstreamer0.10-plugins-bad-doc - GStreamer documentation for plugins from the "bad" set
gstreamer0.10-plugins-cutter - Cutter GStreamer plugin
gstreamer0.10-plugins-ugly - GStreamer plugins from the "ugly" set
gstreamer0.10-plugins-ugly-dbg - GStreamer plugins from the "ugly" set (debug symbols)
gstreamer0.10-plugins-ugly-doc - GStreamer documentation for plugins from the "ugly" set
jodal commented 9 years ago

I can reproduce this issue.

dz0ny commented 9 years ago

It needs multiverse gstreamer package also see #43

robotrono commented 9 years ago
apt-get install gstreamer0.10 gstreamer0.10-plugins-bad gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly gstreamer1.0 gstreamer0.10-plugins-bad

Same problem...

kingosticks commented 9 years ago

Installing a gstreamer1.0 package won't help.

43 says update papfy

robotrono commented 9 years ago

I have Pafy 0.3.74 so...

dz0ny commented 9 years ago

gstreamer0.10-plugins-*-multiverse, btw codecs that are included in your installation is totally dependent on package maintainer and excluding some plugins(as they are called) is not uncommon.

after that:

gst-inspect | grep opus
opus:  opusenc: Opus audio encoder
opus:  opusdec: Opus audio decoder
opus:  opusparse: Opus audio parser
opus:  rtpopusdepay: RTP Opus packet depayloader
opus:  rtpopuspay: RTP Opus payloader
robotrono commented 9 years ago
# gst-inspect-0.10 | grep opus
opus:  opusenc: Opus audio encoder
opus:  opusdec: Opus audio decoder
opus:  opusparse: Opus audio parser
opus:  rtpopusdepay: RTP Opus packet depayloader
opus:  rtpopuspay: RTP Opus payloader
# gst-inspect-1.0 | grep opus
opus:  opusenc: Opus audio encoder
opus:  opusdec: Opus audio decoder
opus:  opusparse: Opus audio parser
opus:  rtpopusdepay: RTP Opus packet depayloader
opus:  rtpopuspay: RTP Opus payloader
libav:  avdec_cllc: libav Canopus Lossless Codec decoder
jghibiki commented 9 years ago

There is a possibility that your pafy installation is in getting lost in ubuntu's dist vs site packges system. Part of my solution for #43 was copying the site packages installation directory (the place where pip installs pafy) to the distutils location. e.g.

rm -rf /usr/lib/python2.7/dist-packages/pafy
cp -rf /usr/local/lib/python2.7/site-packages/pafy /usr/lib/python2.7/dist-packages/pafy
robotrono commented 9 years ago

Nope same error

robotrono commented 9 years ago

Mopidy works fine, the problem is with some videos, anyway I installed Mopidy on a VPS with Ubuntu 14.04 LTS and I have the same problem.

sacdallago commented 8 years ago

+1

This happens on debian/jessie as well, pafy version: 0.4.3 and gstreamer0.10-plugins-bad installed as from instal instructions. Getting the same old:

2016-01-30 13:17:23,028 WARNING [880:MainThread] mopidy.audio.actor: Could not find a audio/x-unknown decoder to handle media.
2016-01-30 13:17:23,051 WARNING [880:MainThread] mopidy.audio.gst: There is no codec present that can handle the stream's type.
2016-01-30 13:17:23,062 ERROR [880:MainThread] mopidy.audio.gst: Your GStreamer installation is missing a plug-in.

and @jodal this is by all means a bug, not a question :D Just saying :P

StephanMeijer commented 8 years ago

I'm getting the same error with https://www.youtube.com/watch?v=rJR-fymJ_Pw.

smarbos commented 8 years ago

I have the same problem

jodal commented 8 years ago

I can reproduce this with @StephanMeijer URL, Mopidy 1.1.2 and Mopidy-YouTube 2.0.2, even if gst-inspect-0.10 | grep opus shows that both opusparse and opusdec are available.

However, if I try with Mopidy 2.0.0 (to be released today), we get a much newer GStreamer, and I get to listen to David Bowie.

Based on this, I'm closing this as fixed by the newer GStreamer version required by Mopidy 2.0.0.

basisbit commented 7 years ago

as this is still the first thing that google forwards to when people search for this error, here a solution for Mopidy 2 and gstreamer 1:

apt-get install gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-plugins-bad