[icecast] libshout1-based mp3 streaming to icecast2

jeremy at squat.net jeremy at squat.net
Sun Mar 16 01:41:57 UTC 2003



According to what I've read on this mailing list, it should be possible
to stream MP3 data to icecast2 using ices-0.2.3, which I assume also
should be the case for any other streaming client based on libshout1. So I
decided to test this out to see if we really could dispense with
icecast1 altogether on the server I help administer. My results were not
promising, to say the least. 

I wiped out libshout2 and installed libshout 1.0.9 from cvs.icecast.org,
which seems to be necessary to compile ices-0.2.3 (it would not compile
with libshout2, I assume due to the different structure of shout_t).
After compiling and installing ices0, I tried the following command
line:

ices0 -b 24 -h freeteam.nl -p 9000 -P ****** -m testxyz -F ./playlist

>From the streaming end, I got the error:
Error during send: Mount failed on http://194.109.209.34:9000/testxyz,
error: Could not login on server. Server message: HTTP/1.0 401
Authentication Required

In the icecast2 error log, I see:
[2003-03-16  02:23:10] INFO connection/_handle_source_request Source
logging in at mountpoint "/"
[2003-03-16  02:23:10] INFO connection/_handle_source_request Source (/)
attempted to login with invalid or missing password

In the icecast2 access log:
xx.xx.xx.xx - - [16/Mar/2003:02:23:10 +0100] "SOURCE / ICY/666" 401 115 "-" "-" 0

If I add the -i switch to the ices command line to make it
icy-compatible, I get:

Error during send: Mount failed on http://194.109.209.34:9000/teztxyz,
error: Not connected to server.

and nothing logged in either the error or access logs of icecast2.

Same goes for freestream (http://squat.net/freestream), a perl script
we use based on Shout.pm, which in turn is based on libshout1.

Interestingly, when I used freestream with a Shout.pm that was compiled
with libshout 1.0.5, I was able to log in and stream to icecast2, but
when I tried to listen to the stream (at mountpoint /, the mountpoint I
specified does not get through to icecast2 in any case), I got HTTP
headers from icecast2 and then a disconnect.

Any advice?

-- jeremy
--- >8 ----
List archives:  http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To unsubscribe from this list, send a message to 'icecast-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Icecast mailing list