Discussion:
listening to an icecast stream
Chris
2018-04-10 22:10:36 UTC
Permalink
I can't seem to get XMMS2 to save a URL for an icecast stream. For
instance:

xmms2
Welcome to the XMMS2 CLI shell!
Type 'help' to list the available commands and 'exit' (or CTRL-D) to
leave the shell.
xmms2> add http://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg
xmms2> list
->[1/2] RAINBOW - Stranded (04:32)
  [2/3] RAINBOW - Can't Let You Go (04:24)
  [3/4] RAINBOW - Fool For The Night (04:07)

Total playtime: 0:13:03

The list command shows tracks I've added from my hard drive but not the
icecast URL. 

When adding the URL the xmms2d log shows:

16:53:57 ERROR: ../src/xmms/xform.c:1341: Couldn't set up chain for 'ht
tp://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg' (5)

I can start the application with xmms2 however xmms2d gives me:

xmms2d
 INFO: ../src/xmms/log.c:49: Initialized logging system :)
16:45:24 ERROR: ../src/xmms/ipc.c:805: Couldn't setup IPC listening on
'unix:///tmp/xmms-ipc-chris'.
16:45:24 FATAL: ../src/xmms/main.c:538: IPC failed to init!

/tmp/xmms-ipc-chris does exist

srwxr-xr-x 1 chris chris 0 Apr 10 10:09 xmms-ipc-chris

I've been banging my head for over a week now on this. Any help would
be appreciated.
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
16:19:30 up 6:20, 1 user, load average: 0.59, 0.53, 0.49
Description: Ubuntu 16.04.4 LTS, kernel 4.13.0-38-generic
Timo Paulssen
2018-04-11 09:48:04 UTC
Permalink
Chris,

I don't know much about xmms2, but the error at the end, "couldn't setup
IPC listening" when the file exists, that's most likely another xmms2d
running already and the one you're starting in your terminal not knowing
what exactly went wrong.

Hope that helps!
  - Timo
Post by Chris
I can't seem to get XMMS2 to save a URL for an icecast stream. For
xmms2
Welcome to the XMMS2 CLI shell!
Type 'help' to list the available commands and 'exit' (or CTRL-D) to
leave the shell.
xmms2> add http://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg
xmms2> list
->[1/2] RAINBOW - Stranded (04:32)
  [2/3] RAINBOW - Can't Let You Go (04:24)
  [3/4] RAINBOW - Fool For The Night (04:07)
Total playtime: 0:13:03
The list command shows tracks I've added from my hard drive but not the
icecast URL. 
16:53:57 ERROR: ../src/xmms/xform.c:1341: Couldn't set up chain for 'ht
tp://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg' (5)
xmms2d
 INFO: ../src/xmms/log.c:49: Initialized logging system :)
16:45:24 ERROR: ../src/xmms/ipc.c:805: Couldn't setup IPC listening on
'unix:///tmp/xmms-ipc-chris'.
16:45:24 FATAL: ../src/xmms/main.c:538: IPC failed to init!
/tmp/xmms-ipc-chris does exist
srwxr-xr-x 1 chris chris 0 Apr 10 10:09 xmms-ipc-chris
I've been banging my head for over a week now on this. Any help would
be appreciated.
--
_______________________________________________
Xmms2-devel mailing list
https://lists.xmms2.org/cgi-bin/mailman/listinfo/xmms2-devel
--
Chris
2018-04-11 16:42:39 UTC
Permalink
Post by Timo Paulssen
Chris,
I don't know much about xmms2, but the error at the end, "couldn't setup
IPC listening" when the file exists, that's most likely another xmms2d
running already and the one you're starting in your terminal not knowing
what exactly went wrong.
Hope that helps!
  - Timo
You were absolutely correct Timo, there was and xmms2d process running
in the background. Now that I took care of that when starting xmms2d
again with -vvv I get:

https://pastebin.com/eLjdiDuX

When attempting to add an icecast url or .mp3 url I get:

https://pastebin.com/iehTzvdX

I've tried http://network.absoluteradio.co.uk/core/audio/oggflac/live.p
ls?service=ac

http://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg

http://network.absoluteradio.co.uk/core/audio/mp3/live.pls?service=vc

http://mp3-ac-32.timlradio.co.uk/

I can add a .ogg file from my local drive:

***@localhost:~$ xmms2 list
->[1/2] RAINBOW - Stranded (04:32)
  [2/3] RAINBOW - Can't Let You Go (04:24)
  [3/4] RAINBOW - Fool For The Night (04:07)
  [4/5]  - DFINTRO.ogg (00:14)

***@localhost:~$ xmms2 add /home/chris/snap/dwarf-
fortress/2/data/sound/DFRUBBLE.ogg
***@localhost:~$ xmms2 list
->[1/2] RAINBOW - Stranded (04:32)
  [2/3] RAINBOW - Can't Let You Go (04:24)
  [3/4] RAINBOW - Fool For The Night (04:07)
  [4/5]  - DFINTRO.ogg (00:14)
  [5/6]  - DFRUBBLE.ogg (00:02)
So why can't I add any URLs? I've been banging my head over this for
over a week now and it's really bugging me.

xmms2d -V
XMMS2 version 0.8 DrO_o (git commit: Unknown)

apt-cache policy xmms2
xmms2:
  Installed: 0.8+dfsg-14build3
  Candidate: 0.8+dfsg-14build3

Ubuntu 16.04.4 LTS, kernel 4.13.0-38-generic
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
10:39:42 up 1 day, 40 min, 1 user, load average: 2.13, 1.93, 1.66
Description: Ubuntu 16.04.4 LTS, kernel 4.13.0-38-generic
Adam Nielsen
2018-04-12 09:04:15 UTC
Permalink
Post by Chris
I can't seem to get XMMS2 to save a URL for an icecast stream. For
Ha, wouldn't you know it, you are getting the same error as me and I
thought it was unrelated.

It's definitely a bug in XMMS2 and the issue is here:

08:54:27 DEBUG: ../src/xmms/xform.c:1164: Plugin 'vorbis' matched (priority 50)
08:54:27 DEBUG: ../src/xmms/xform.c:1032: Seek not implemented in 'curl'
08:54:27 DEBUG: ../src/xmms/xform.c:349: Freeing xform 'vorbis'

The logs show that it is starting to stream the audio just fine, but
then for some reason it tries to seek back to the beginning of the data
(which the curl plugin does not support for obvious reasons - you can't
seek backwards in an uncached live stream) but for some reason this is
enough to completely break the process and it gives up (freeing the
only xform that can do the job of performing playback.)

I'll see if I can have a look at fixing this, but in the meantime, do
you think you can have a go at compiling the git version of XMMS2? Any
potential fixes will be to the git version rather than 0.8. The
process will be much the same as you've already done, you'll just be
running a "git clone ..." for the xmms2-devel repository instead of
whatever method you used before to obtain the source code.

Cheers,
Adam.

--
Chris
2018-04-12 16:28:06 UTC
Permalink
Post by Adam Nielsen
Post by Chris
I can't seem to get XMMS2 to save a URL for an icecast stream. For
Ha, wouldn't you know it, you are getting the same error as me and I
thought it was unrelated.
08:54:27 DEBUG: ../src/xmms/xform.c:1164: Plugin 'vorbis' matched (priority 50)
08:54:27 DEBUG: ../src/xmms/xform.c:1032: Seek not implemented in 'curl'
08:54:27 DEBUG: ../src/xmms/xform.c:349: Freeing xform 'vorbis'
The logs show that it is starting to stream the audio just fine, but
then for some reason it tries to seek back to the beginning of the data
(which the curl plugin does not support for obvious reasons - you can't
seek backwards in an uncached live stream) but for some reason this is
enough to completely break the process and it gives up (freeing the
only xform that can do the job of performing playback.)
I'll see if I can have a look at fixing this, but in the meantime, do
you think you can have a go at compiling the git version of
XMMS2?  Any
potential fixes will be to the git version rather than 0.8.  The
process will be much the same as you've already done, you'll just be
running a "git clone ..." for the xmms2-devel repository instead of
whatever method you used before to obtain the source code.
Went here - git clone git://git.xmms2.org/xmms2/xmms2-devel.git then 

https://pastebin.com/higtc6yh

Everything looked ok this time as far as I can tell. Output of xmms2d
-vvv

https://pastebin.com/FEa0AjLy

Tried adding 
http://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg or

$ xmms2 add http://icecast-beta.timlradio.co.uk/absoluteclassicrock.ogg
***@localhost:~$ xmms2 list
  [1/2] RAINBOW - Stranded (04:32)
  [2/3] RAINBOW - Can't Let You Go (04:24)
  [3/4] RAINBOW - Fool For The Night (04:07)

http://network.absoluteradio.co.uk/core/audio/oggflac/live.pls?service=
ac

$ xmms2 add http://network.absoluteradio.co.uk/core/audio/oggflac/live.
pls?service=ac
***@localhost:~$ xmms2 list
  [1/2] RAINBOW - Stranded (04:32)
  [2/3] RAINBOW - Can't Let You Go (04:24)
  [3/4] RAINBOW - Fool For The Night (04:07)

neither worked.
--
Chris
KeyID 0xE372A7DA98E6705C
31.11972; -97.90167 (Elev. 1092 ft)
11:01:17 up 2 days, 1:01, 1 user, load average: 2.02, 1.49, 1.28
Description: Ubuntu 16.04.4 LTS, kernel 4.13.0-38-generic
Loading...