hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
841 stars 204 forks source link

decodebin21 plugin missing on Raspbian #132

Closed rasos closed 6 years ago

rasos commented 7 years ago

I followed the build instructions here https://klenzel.de/1642 . The renderer is published, but when I try to stream an audio file I get:

ERROR [2017-07-30 21:45:32.307157 | gstreamer] decodebin21: Error: Ihrer Installation von GStreamer fehlt ein Plugin. (Debug: gstdecodebin2.c(3576): gst_decode_bin_expose (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin1/GstDecodeBin2:decodebin21: no suitable plugins found)

I tried to install missing gstreamer plugins, and I get a misisng dependency on

sudo apt-get install gstreamer0.10-ffmpeg
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.       
Statusinformationen werden eingelesen.... Fertig
Package gstreamer0.10-ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Here is a list of all ffmeg/ gstreamer packages:

dpkg-query -l 'gstream*'
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Vollständig Löschen/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/halb konFiguriert/
         Halb installiert/Trigger erWartet/Trigger anhängig
|/ Fehler?=(kein)/R=Neuinstallation notwendig (Status, Fehler: GROSS=schlecht)
||/ Name                                   Version                  Architektur              Beschreibung
+++-======================================-========================-========================-=================================================================================
un  gstreamer-codec-install                <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer-tools                        <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer0.10-alsa:armhf               0.10.36-2                armhf                    GStreamer plugin for ALSA
un  gstreamer0.10-audiosink                <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-audiosource              <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-doc                      <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer0.10-gconf:armhf              0.10.31-3+nmu4+deb8u2    armhf                    GStreamer plugin for getting the sink/source information from GConf
ii  gstreamer0.10-plugins-bad:armhf        0.10.23-7.4+deb8u2       armhf                    GStreamer plugins from the "bad" set
un  gstreamer0.10-plugins-bad-multiverse   <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer0.10-plugins-base:armhf       0.10.36-2                armhf                    GStreamer plugins from the "base" set
un  gstreamer0.10-plugins-farsight         <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer0.10-plugins-good:armhf       0.10.31-3+nmu4+deb8u2    armhf                    GStreamer plugins from the "good" set
un  gstreamer0.10-plugins-good-doc         <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-plugins-really-bad       <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-plugins-ugly             <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-pulseaudio               <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-schroedinger             <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-tools                    <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-videosink                <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-videosource              <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer0.10-visualization            <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer0.10-x:armhf                  0.10.36-2                armhf                    GStreamer plugins for X11 and Pango
un  gstreamer0.10-xvid                     <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer1.0-alsa:armhf                1.4.4-2+deb8u1           armhf                    GStreamer plugin for ALSA
un  gstreamer1.0-audiosink                 <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer1.0-audiosource               <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer1.0-ffmpeg                    <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer1.0-libav:armhf               1.4.4-2                  armhf                    libav plugin for GStreamer
ii  gstreamer1.0-omx                       1.0.0.1-0+rpi18rpi1g     armhf                    GStreamer OpenMAX plugins
ii  gstreamer1.0-plugins-bad:armhf         1.4.4-2.1+deb8u2         armhf                    GStreamer plugins from the "bad" set
ii  gstreamer1.0-plugins-base:armhf        1.4.4-2+deb8u1           armhf                    GStreamer plugins from the "base" set
ii  gstreamer1.0-plugins-good:armhf        1.4.4-2+deb8u3           armhf                    GStreamer plugins from the "good" set
un  gstreamer1.0-plugins-ugly              <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer1.0-tools                     <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer1.0-videosink                 <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer1.0-videosource               <keine>                  <keine>                  (keine Beschreibung vorhanden)
un  gstreamer1.0-visualization             <keine>                  <keine>                  (keine Beschreibung vorhanden)
ii  gstreamer1.0-x:armhf                   1.4.4-2+deb8u1           armhf                    GStreamer plugins for X11 and Pango
hzeller commented 7 years ago

What is available in the Raspbian distribution I don't really have under control :)

Please check out the distribution documentation; typically you might need to have more apt sources configured as some distributions separete non-free things that might contain not fully free software stuff (and enocders/decoders often fall in that category, e.g. mp3).

You might also look at the gstreamer site, maybe they have an up-to-date apt repository for the Rasbperry Pi.

rasos commented 6 years ago

sudo apt-get install gstreamer1.0-tools installs all required codecs on Raspbian stretch.

But that was not enough, http could not be handled:

ERROR [2018-04-01 19:14:21.210712 | upnp] upnp_set_error: Playing failed
INFO  [2018-04-01 19:37:30.543112 | gstreamer] Set uri to 'http://192.168.3.15:8200/MediaItems/7124.mp3'
ERROR [2018-04-01 19:37:31.109757 | gstreamer] ERROR [2018-04-01 19:37:31.109802 | gstreamer] uridecodebin1: Error: Es ist kein URI-Handler für »http« implementiert. (Debug: gsturidecodebin.c(1285): gen_source_element (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin1)setting play state failed (2)

Something else was missing, I had added all available plugins:

apt-get install gstreamer1.0-plugins-* gstreamer0.10-plugins-*

Now the streams are played on Raspbian stretch.