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
834 stars 202 forks source link

Error about "A Plugin "text/html-Decoder" is required #35

Closed centic9 closed 10 years ago

centic9 commented 10 years ago

Hi, I am trying to play a file via DLNA on a Raspberry Pi using this project, but it fails with the strange error about plugin for "text/html-Decoder" missing. This is the same for audio and video. I already tried various suggestions on the net for installing additional plugins or adding other pieces, but to no avail. I pretty much followed the description at http://blog.scphillips.com/2013/07/playing-music-on-a-raspberry-pi-using-upnp-and-dlna-revisited/ I tried it with two different DLNA clients on an Android phone, the same happens with both.

The full output to the logfile is as follows.

INFO  [2013-08-15 20:14:30.526067 | transport] TransportState: STOPPED
INFO  [2013-08-15 20:14:30.527260 | transport] CurrentTransportActions: PLAY,SEEK
INFO  [2013-08-15 20:14:30.529044 | transport] LastChange: <?xml version="1.0"?>
<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
<InstanceID val="0">
<TransportState val="STOPPED"></TransportState>
<CurrentTransportActions val="PLAY,SEEK"></CurrentTransportActions>
</InstanceID>
</Event>
INFO  [2013-08-15 20:14:30.580687 | transport] AVTransportURI: http://192.168.1.103:8200/MediaItems/34534.mp3
INFO  [2013-08-15 20:14:30.582013 | transport] AVTransportURIMetaData: <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sec="http://www.sec.co.kr/"><item id="1$4$26" parentID="1$4" refID="64$4$3$D$3$6" restricted="true"><dc:title>08 - Mr bojangles</dc:title><dc:creator>Robbie Williams</dc:creator><upnp:class>object.item.audioItem.musicTrack</upnp:class><upnp:artist role="">Robbie Williams</upnp:artist><upnp:album>Swing When You're Winning</upnp:album><upnp:genre>Swing</upnp:genre><dc:description>http://canna.c4.to</dc:description><dc:date>2001-01-01</dc:date><res protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" size="3166168" duration="0:03:17.885" bitrate="128000" sampleFrequency="44100" nrAudioChannels="2">http://192.168.1.103:8200/MediaItems/34534.mp3</res></item></DIDL-Lite>
INFO  [2013-08-15 20:14:30.583624 | gstreamer] Set uri to http://192.168.1.103:8200/MediaItems/34534.mp3
INFO  [2013-08-15 20:14:30.585853 | transport] LastChange: <?xml version="1.0"?>
<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
<InstanceID val="0">
<AVTransportURI val="http://192.168.1.103:8200/MediaItems/34534.mp3"></AVTransportURI>
<AVTransportURIMetaData val="&lt;DIDL-Lite xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:sec=&quot;http://www.sec.co.kr/&quot;&gt;&lt;item id=&quot;1$4$26&quot; parentID=&quot;1$4&quot; refID=&quot;64$4$3$D$3$6&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;08 - Mr bojangles&lt;/dc:title&gt;&lt;dc:creator&gt;Robbie Williams&lt;/dc:creator&gt;&lt;upnp:class&gt;object.item.audioItem.musicTrack&lt;/upnp:class&gt;&lt;upnp:artist role=&quot;&quot;&gt;Robbie Williams&lt;/upnp:artist&gt;&lt;upnp:album&gt;Swing When You&apos;re Winning&lt;/upnp:album&gt;&lt;upnp:genre&gt;Swing&lt;/upnp:genre&gt;&lt;dc:description&gt;http://canna.c4.to&lt;/dc:description&gt;&lt;dc:date&gt;2001-01-01&lt;/dc:date&gt;&lt;res protocolInfo=&quot;http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000&quot; size=&quot;3166168&quot; duration=&quot;0:03:17.885&quot; bitrate=&quot;128000&quot; sampleFrequency=&quot;44100&quot; nrAudioChannels=&quot;2&quot;&gt;http://192.168.1.103:8200/MediaItems/34534.mp3&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"></AVTransportURIMetaData>
</InstanceID>
</Event>
INFO  [2013-08-15 20:14:30.634486 | transport] TransportState: PLAYING
INFO  [2013-08-15 20:14:30.635648 | transport] CurrentTransportActions: PAUSE,STOP,SEEK
INFO  [2013-08-15 20:14:30.636838 | transport] CurrentTrackURI: http://192.168.1.103:8200/MediaItems/34534.mp3
INFO  [2013-08-15 20:14:30.638055 | transport] CurrentTrackMetaData: <DIDL-Lite xmlns="urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/" xmlns:upnp="urn:schemas-upnp-org:metadata-1-0/upnp/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sec="http://www.sec.co.kr/"><item id="1$4$26" parentID="1$4" refID="64$4$3$D$3$6" restricted="true"><dc:title>08 - Mr bojangles</dc:title><dc:creator>Robbie Williams</dc:creator><upnp:class>object.item.audioItem.musicTrack</upnp:class><upnp:artist role="">Robbie Williams</upnp:artist><upnp:album>Swing When You're Winning</upnp:album><upnp:genre>Swing</upnp:genre><dc:description>http://canna.c4.to</dc:description><dc:date>2001-01-01</dc:date><res protocolInfo="http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000" size="3166168" duration="0:03:17.885" bitrate="128000" sampleFrequency="44100" nrAudioChannels="2">http://192.168.1.103:8200/MediaItems/34534.mp3</res></item></DIDL-Lite>
INFO  [2013-08-15 20:14:30.640541 | transport] LastChange: <?xml version="1.0"?>
<Event xmlns="urn:schemas-upnp-org:metadata-1-0/AVT/">
<InstanceID val="0">
<TransportState val="PLAYING"></TransportState>
<CurrentTransportActions val="PAUSE,STOP,SEEK"></CurrentTransportActions>
<CurrentTrackURI val="http://192.168.1.103:8200/MediaItems/34534.mp3"></CurrentTrackURI>
<CurrentTrackMetaData val="&lt;DIDL-Lite xmlns=&quot;urn:schemas-upnp-org:metadata-1-0/DIDL-Lite/&quot; xmlns:upnp=&quot;urn:schemas-upnp-org:metadata-1-0/upnp/&quot; xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot; xmlns:sec=&quot;http://www.sec.co.kr/&quot;&gt;&lt;item id=&quot;1$4$26&quot; parentID=&quot;1$4&quot; refID=&quot;64$4$3$D$3$6&quot; restricted=&quot;true&quot;&gt;&lt;dc:title&gt;08 - Mr bojangles&lt;/dc:title&gt;&lt;dc:creator&gt;Robbie Williams&lt;/dc:creator&gt;&lt;upnp:class&gt;object.item.audioItem.musicTrack&lt;/upnp:class&gt;&lt;upnp:artist role=&quot;&quot;&gt;Robbie Williams&lt;/upnp:artist&gt;&lt;upnp:album&gt;Swing When You&apos;re Winning&lt;/upnp:album&gt;&lt;upnp:genre&gt;Swing&lt;/upnp:genre&gt;&lt;dc:description&gt;http://canna.c4.to&lt;/dc:description&gt;&lt;dc:date&gt;2001-01-01&lt;/dc:date&gt;&lt;res protocolInfo=&quot;http-get:*:audio/mpeg:DLNA.ORG_PN=MP3;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000&quot; size=&quot;3166168&quot; duration=&quot;0:03:17.885&quot; bitrate=&quot;128000&quot; sampleFrequency=&quot;44100&quot; nrAudioChannels=&quot;2&quot;&gt;http://192.168.1.103:8200/MediaItems/34534.mp3&lt;/res&gt;&lt;/item&gt;&lt;/DIDL-Lite&gt;"></CurrentTrackMetaData>
</InstanceID>
</Event>
ERROR [2013-08-15 20:14:30.670521 | gstreamer] source: Error: Not Found (Debug: gstsouphttpsrc.c(1119): gst_soup_http_src_parse_status (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin1/GstSoupHTTPSrc:source:
Not Found (404), URL: http://192.168.1.103:8200/MediaItems/34534.mp3)
ERROR [2013-08-15 20:14:30.694439 | 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)
ERROR [2013-08-15 20:14:30.696843 | gstreamer] decodebin21: Error: Ein Plugin »text/html-Decoder« wird zum Abspielen dieses Datenstroms benötigt, ist aber nicht installiert. (Debug: gstdecodebin2.c(1699): analyze_new_pad (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin1/GstDecodeBin2:decodebin21:
No decoder to handle media type 'text/html')
ERROR [2013-08-15 20:14:30.704746 | gstreamer] queue23: Error: Interner Fehler im Datenfluss. (Debug: gstqueue2.c(2573): gst_queue2_loop (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin1/GstQueue2:queue23:
streaming task paused, reason not-linked (-1))
centic9 commented 10 years ago

I figured out that I had rebooted and thus the mount of the drive where the media files are located on is gone and so minidlna could not deliver the files any more. Strange that none of the two applications reported this better, though...

hzeller commented 10 years ago

At least minidlna returned a 404 (HTTP for 'not found') which is the right error to send in this case. But looks like I can't get to that information within gmrender, it only appears like some broken playback.

I agree, that gmrender should behave better in this case. It should probably go into a controlled 'stopped' state.