# GstDecodeBin:decodebin0:decodebin cannot decode plain text files error

**URL:** <https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758>\
**Category:** Misc\
**Created:** [September 11, 2018, 7:59am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758 "2018-09-11T07:59:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![belkevglaz](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@belkevglaz](https://discourse.mopidy.com/u/belkevglaz)\
**Post date:** [September 11, 2018, 7:59am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/1 "2018-09-11T07:59:09Z")

</div>

Hi  
Unfortunately, I cannot play any stream on my Mopidy version 2.1.0 installation on RPi 3 (2018-06-27-raspbian-stretch)  
The config is default, changes are only in http enabled and stream enabled.

aplay and gst-launch-1.0 working well and I can hear sounds.  
I installed Mopidy from pip and AudioAddict added.  
When I tries to start play any radio stream I got error in mopidy log.  
I tried to install mopidy from apt - result the same ☹

Could you please suggest how to ifx that?  
Thanks

DEBUG 2018-09-11 07:29:15,540 [23304:HttpServer] mopidy.http.handlers  
Received WebSocket message from 192.168.56.248: u’{“method”:“core.playback.play”,“params”:{“tl\_track”:{“track”:{“ **model** ”:“Track”,“name”:“Atmospheric Breaks”,“uri”:“audioaddict:channel:403”},“ **model** ”:“TlTrack”,“tlid”:3}},“jsonrpc”:“2.0”,“id”:107}’  
DEBUG 2018-09-11 07:29:15,551 [23304:Audio-2] mopidy.audio.gst  
Changing state to GST\_STATE\_READY: result=GST\_STATE\_CHANGE\_SUCCESS  
DEBUG 2018-09-11 07:29:15,555 [23304:MainThread] mopidy.audio.gst  
Got STATE\_CHANGED bus message: old=GST\_STATE\_NULL new=GST\_STATE\_READY pending=GST\_STATE\_VOID\_PENDING  
DEBUG 2018-09-11 07:29:15,559 [23304:SoftwareMixer-1] mopidy.mixer  
Mixer event: volume\_changed(volume=100)  
DEBUG 2018-09-11 07:29:15,561 [23304:SoftwareMixer-1] mopidy.listener  
Sending volume\_changed to MixerListener: {‘volume’: 100}  
DEBUG 2018-09-11 07:29:15,642 [23304:Audio-2] mopidy.audio.gst  
Got source-setup signal: element=GstSoupHTTPSrc  
DEBUG 2018-09-11 07:29:15,938 [23304:Audio-2] mopidy.audio.gst  
Changing state to GST\_STATE\_PLAYING: result=GST\_STATE\_CHANGE\_ASYNC  
DEBUG 2018-09-11 07:29:15,941 [23304:HttpServer] mopidy.http.handlers  
Sent WebSocket message to 192.168.56.248: ‘{“jsonrpc”: “2.0”, “id”: 107, “result”: null}’  
DEBUG 2018-09-11 07:29:15,943 [23304:Core-7] mopidy.listener  
Sending volume\_changed to CoreListener: {‘volume’: 100}  
DEBUG 2018-09-11 07:29:15,945 [23304:MpdFrontend-8] mopidy.listener  
Sending mixer to MpdSession: {}  
DEBUG 2018-09-11 07:29:16,283 [23304:MainThread] mopidy.audio.gst  
Got source-setup signal: element=GstSoupHTTPSrc  
DEBUG 2018-09-11 07:29:16,289 [23304:MainThread] mopidy.audio.gst  
Got BUFFERING bus message: percent=100%  
DEBUG 2018-09-11 07:29:16,292 [23304:MainThread] mopidy.audio.gst  
Got ERROR bus message: error=u’gst-stream-error-quark: This appears to be a text file (5)’ debug=u’gstdecodebin2.c(2843): type\_found (): /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:\ndecodebin cannot decode plain text files’  
ERROR 2018-09-11 07:29:16,293 [23304:MainThread] mopidy.audio.gst  
GStreamer error: gst-stream-error-quark: This appears to be a text file (5)  
DEBUG 2018-09-11 07:29:16,297 [23304:MainThread] mopidy.audio.gst  
Changing state to GST\_STATE\_NULL: result=GST\_STATE\_CHANGE\_SUCCESS

---

<div class="post-metadata">

**Author:** ![belkevglaz](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@belkevglaz](https://discourse.mopidy.com/u/belkevglaz)\
**Post date:** [September 11, 2018, 8:13am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/2 "2018-09-11T08:13:30Z")

</div>

My config in any case:

> [@](#):
>
> [core]  
> #cache\_dir = $XDG\_CACHE\_DIR/mopidy  
> #config\_dir = $XDG\_CONFIG\_DIR/mopidy  
> #data\_dir = $XDG\_DATA\_DIR/mopidy  
> #max\_tracklist\_length = 10000  
> #restore\_state = false
> 
> [logging]  
> #color = true  
> #console\_format = %(levelname)-8s %(message)s  
> #debug\_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s  
> #debug\_file = mopidy.log  
> #config\_file =
> 
> [audio]  
> #mixer = software  
> #mixer\_volume =  
> output = autoaudiosink  
> #output = alsasink  
> #buffer\_time =
> 
> [proxy]  
> #scheme =  
> #hostname =  
> #port =  
> #username =  
> #password =
> 
> [mpd]  
> #enabled = true  
> #hostname = 127.0.0.1  
> #port = 6600  
> #password =  
> #max\_connections = 20  
> #connection\_timeout = 60  
> #zeroconf = Mopidy MPD server on $hostname  
> #command\_blacklist =  
> #listall  
> #listallinfo  
> #default\_playlist\_scheme = m3u
> 
> [http]  
> enabled = true  
> hostname = 0.0.0.0  
> port = 6680  
> #static\_dir =  
> #zeroconf = Mopidy HTTP server on $hostname
> 
> [stream]  
> enabled = true  
> protocols =  
> http  
> https  
> mms  
> rtmp  
> rtmps  
> rtsp  
> metadata\_blacklist =  
> timeout = 5000
> 
> [m3u]  
> #enabled = true  
> #base\_dir =  
> #default\_encoding = latin-1  
> #default\_extension = .m3u8  
> #playlists\_dir =
> 
> [softwaremixer]  
> #enabled = true
> 
> [file]  
> #enabled = true  
> #media\_dirs =  
> #$XDG\_MUSIC\_DIR|Music  
> #~/|Home  
> #excluded\_file\_extensions =  
> #.jpg  
> #.jpeg  
> #show\_dotfiles = false  
> #follow\_symlinks = false  
> #metadata\_timeout = 1000
> 
> [local]  
> #enabled = true  
> #library = json  
> #media\_dir =  
> #scan\_timeout = 1000  
> #scan\_flush\_threshold = 100  
> #scan\_follow\_symlinks = false  
> #excluded\_file\_extensions =  
> #.directory  
> #.html  
> #.jpeg  
> #.jpg  
> #.log  
> #.nfo  
> #.png  
> #.txt

mopidy deps output:

> [@](#):
>
> Executable: /usr/local/bin/mopidy  
> Platform: Linux-4.14.50-v7±armv7l-with-debian-9.4  
> Python: CPython 2.7.13 from /usr/lib/python2.7  
> Mopidy: 2.1.0 from /home/pi/.local/lib/python2.7/site-packages  
> requests\>=2.0: 2.19.1 from /home/pi/.local/lib/python2.7/site-packages  
> idna\<2.8,\>=2.5: 2.7 from /home/pi/.local/lib/python2.7/site-packages  
> urllib3\<1.24,\>=1.21.1: 1.23 from /home/pi/.local/lib/python2.7/site-packages  
> chardet\<3.1.0,\>=3.0.2: 3.0.4 from /home/pi/.local/lib/python2.7/site-packages  
> certifi\>=2017.4.17: 2018.8.24 from /home/pi/.local/lib/python2.7/site-packages  
> setuptools: 40.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> tornado\>=3.2: 5.1 from /home/pi/.local/lib/python2.7/site-packages  
> singledispatch: 3.4.0.3 from /home/pi/.local/lib/python2.7/site-packages  
> six: 1.11.0 from /home/pi/.local/lib/python2.7/site-packages  
> futures: 3.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> backports-abc\>=0.4: 0.5 from /home/pi/.local/lib/python2.7/site-packages  
> Pykka\>=1.1: 1.2.1 from /home/pi/.local/lib/python2.7/site-packages  
> Mopidy-Moped: 0.7.1 from /home/pi/.local/lib/python2.7/site-packages  
> Mopidy\>=1.0.0: 2.1.0 from /home/pi/.local/lib/python2.7/site-packages  
> requests\>=2.0: 2.19.1 from /home/pi/.local/lib/python2.7/site-packages  
> idna\<2.8,\>=2.5: 2.7 from /home/pi/.local/lib/python2.7/site-packages  
> urllib3\<1.24,\>=1.21.1: 1.23 from /home/pi/.local/lib/python2.7/site-packages  
> chardet\<3.1.0,\>=3.0.2: 3.0.4 from /home/pi/.local/lib/python2.7/site-packages  
> certifi\>=2017.4.17: 2018.8.24 from /home/pi/.local/lib/python2.7/site-packages  
> setuptools: 40.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> tornado\>=3.2: 5.1 from /home/pi/.local/lib/python2.7/site-packages  
> singledispatch: 3.4.0.3 from /home/pi/.local/lib/python2.7/site-packages  
> six: 1.11.0 from /home/pi/.local/lib/python2.7/site-packages  
> futures: 3.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> backports-abc\>=0.4: 0.5 from /home/pi/.local/lib/python2.7/site-packages  
> Pykka\>=1.1: 1.2.1 from /home/pi/.local/lib/python2.7/site-packages  
> setuptools: 40.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> Mopidy-AudioAddict: 0.2.7 from /home/pi/.local/lib/python2.7/site-packages  
> Mopidy\>=0.18: 2.1.0 from /home/pi/.local/lib/python2.7/site-packages  
> requests\>=2.0: 2.19.1 from /home/pi/.local/lib/python2.7/site-packages  
> idna\<2.8,\>=2.5: 2.7 from /home/pi/.local/lib/python2.7/site-packages  
> urllib3\<1.24,\>=1.21.1: 1.23 from /home/pi/.local/lib/python2.7/site-packages  
> chardet\<3.1.0,\>=3.0.2: 3.0.4 from /home/pi/.local/lib/python2.7/site-packages  
> certifi\>=2017.4.17: 2018.8.24 from /home/pi/.local/lib/python2.7/site-packages  
> setuptools: 40.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> tornado\>=3.2: 5.1 from /home/pi/.local/lib/python2.7/site-packages  
> singledispatch: 3.4.0.3 from /home/pi/.local/lib/python2.7/site-packages  
> six: 1.11.0 from /home/pi/.local/lib/python2.7/site-packages  
> futures: 3.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> backports-abc\>=0.4: 0.5 from /home/pi/.local/lib/python2.7/site-packages  
> Pykka\>=1.1: 1.2.1 from /home/pi/.local/lib/python2.7/site-packages  
> setuptools: 40.2.0 from /home/pi/.local/lib/python2.7/site-packages  
> pycountry: 18.5.26 from /home/pi/.local/lib/python2.7/site-packages  
> Pykka\>=1.1: 1.2.1 from /home/pi/.local/lib/python2.7/site-packages  
> GStreamer: 1.10.4.0 from /usr/lib/python2.7/dist-packages/gi  
> Detailed information:  
> Python wrapper: python-gi 3.22.0  
> Relevant elements:  
> Found:  
> uridecodebin  
> souphttpsrc  
> appsrc  
> alsasink  
> osssink  
> oss4sink  
> pulsesink  
> id3demux  
> id3v2mux  
> lamemp3enc  
> mad  
> mpegaudioparse  
> mpg123audiodec  
> vorbisdec  
> vorbisenc  
> vorbisparse  
> oggdemux  
> oggmux  
> oggparse  
> flacdec  
> flacparse  
> shout2send  
> Not found:  
> flump3dec

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [September 11, 2018, 8:31am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/3 "2018-09-11T08:31:05Z")

</div>

I think (my memory is awful) we get those when the playlist is malformed and can’t be find the streams so it defaults to text. Can you provide the full log showing what it’s fetching and ideally the playlist file it’s downloaded? I don’t have an account with these guys to try it.

---

<div class="post-metadata">

**Author:** ![belkevglaz](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@belkevglaz](https://discourse.mopidy.com/u/belkevglaz)\
**Post date:** [September 11, 2018, 8:43am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/4 "2018-09-11T08:43:19Z")

</div>

Hi @kingosticks  
Sure. I uploaded debug log from start to issue at dropbox:  
[https://www.dropbox.com/s/w58o9hi1xn5g1e6/mopidy.log?dl=0](https://www.dropbox.com/s/w58o9hi1xn5g1e6/mopidy.log?dl=0)  
I used playlists that were generated by AudioAddict extension ( in my case I used streams from di.fm ) but the same error in cases when tried to play other stream urls

UPD: some direct urls working well, for example: [http://stream-bg.net:8020/AlphaRadio](http://stream-bg.net:8020/AlphaRadio)  
It’s looks like AudioAddict extension is not working well

---

<div class="post-metadata">

**Author:** ![belkevglaz](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@belkevglaz](https://discourse.mopidy.com/u/belkevglaz)\
**Post date:** [September 11, 2018, 8:53am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/5 "2018-09-11T08:53:20Z")

</div>

In additional …found weird behavior  
when I add direct stream ([http://stream-bg.net:8020/AlphaRadio](http://stream-bg.net:8020/AlphaRadio)) the sound plays and all good, further tries to use any stream from AudioAddict ( got error ) and further try to uses first stream again - the error still present adn need to restart mopidy.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [September 11, 2018, 10:16am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/6 "2018-09-11T10:16:43Z")

</div>

OK, well I can explain some of this weirdness. The [latest release](https://pypi.org/project/Mopidy-AudioAddict/#history) on pypi is from 3/11/14 which is missing some rather [important code](https://github.com/nilicule/mopidy-audioaddict/commit/2fb2909859b1f31682160692051e15df5705f22f) added back in 4/10/15 (and explains why your debug log doesn’t match the source code).

You could install the development version straight from github but even that doesn’t work properly, all the streams it gave me are dead:

```auto
[playlist]
NumberOfEntries=7
File1=http://pub6.di.fm:80/di_atmosphericbreaks
Title1=DI.FM - Atmospheric Breaks
Length1=0
File2=http://pub2.di.fm:80/di_atmosphericbreaks
Title2=DI.FM - Atmospheric Breaks
Length2=0
File3=http://pub7.di.fm:80/di_atmosphericbreaks
Title3=DI.FM - Atmospheric Breaks
Length3=0
File4=http://pub8.di.fm:80/di_atmosphericbreaks
Title4=DI.FM - Atmospheric Breaks
Length4=0
File5=http://pub1.di.fm:80/di_atmosphericbreaks
Title5=DI.FM - Atmospheric Breaks
Length5=0
File6=http://pub5.di.fm:80/di_atmosphericbreaks
Title6=DI.FM - Atmospheric Breaks
Length6=0
File7=http://pub4.di.fm:80/di_atmosphericbreaks
Title7=DI.FM - Atmospheric Breaks
Length7=0
Version=2

```

Judging from the [open issues](https://github.com/nilicule/mopidy-audioaddict/issues) the extension doesn’t seem to be maintained and I guess the AudioAdict API has changed.

---

<div class="post-metadata">

**Author:** ![belkevglaz](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@belkevglaz](https://discourse.mopidy.com/u/belkevglaz)\
**Post date:** [September 11, 2018, 10:25am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/7 "2018-09-11T10:25:26Z")

</div>

Ok, thank you very much @kingosticks for explanation and quick response.  
very sad that this extension not maintained now ☹ and not working out of the box.  
Thanks.

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [September 11, 2018, 10:34am UTC](https://discourse.mopidy.com/t/gstdecodebindecodebin-cannot-decode-plain-text-files-error/2758/8 "2018-09-11T10:34:04Z")

</div>

I’ll ask for the project status and then if someone has time to resurrect it they can do so (it won’t be me).

See [https://github.com/nilicule/mopidy-audioaddict/issues/12](https://github.com/nilicule/mopidy-audioaddict/issues/12)
