[icecast] Adventures with icecast2

Michael Smith msmith at labyrinth.net.au
Wed Jun 6 08:50:16 UTC 2001



At 06:05 PM 6/6/01 +1000, you wrote:
>Hi all:
>
>OK, this is one of those "why doesn't it work" type questions.  I'm
>basically stumped.  All the server info in the xml file and example.c seem
>to match, but it's coming back with an error 3 which is no login (as far
>as I can understand).  There's nothing in the icecast2 logs to show that
>an attempt has been made.
>
>hmmm. It just occured to me that perhaps it's linking in the wrong version
>of libshout.  I'm no C programmer so I don't know how to tell.  My
>makefile looks like this:
>
>all: example
>
>example: example.c
>	$(CC) -o example example.c -L../src -lshout -L../../log -logg -lvorbis
>
>The question being, is it getting libshout from ../src or from /usr/lib?

Try linking it with an explicit library (like 
gcc -o example example.c ../src/libshout.a  (plus other arguments that it
needs)

That'll at least ensure that it's statically linked with the right library,
which is enough for testing purposes.

>
>Assuming that's all correct, the only thing I can think of is that either
>my config and example.c do not agree, and/or one contains some sort of
>syntax error.  I include both below.
>
>A couple of other questions.  I know there was some discussion as to the
>correct syntax for using the example program.  Is it indeed `cat foo.ogg
>|./example` as posted on i.cantcode.com, or is this no longer correct?
>Also, I'm guessing that the mount has to be in the form "/foo.ogg" in
>order to work.  Is this correct?

Usage is correct. The mount can be whatever you want, but if it doesn't
end with .ogg, many current players (xmms, winamp at least, probably
others) won't play it (they try to decode it as mp3).

Your config files look fine. Are you sure you're telling icecast to use
this file?

Nothing else comes to mind.

Once you get this working, you might also like to try ices2, which now
does most of what it needs to for an initial release (apart from some
more extension playlist stuff) - it works well (at least for me). It even
has an (untested) oss input module for live encoding from line-in. 

Michael

--- >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