[icecast] Newbie Problem

Todd Brill tbrill at rackforce.com
Thu Jun 5 02:05:29 UTC 2003



Hi all!

I just finished an install of icecast/iceS but I'm having problems. I
followed the documentation provided here:

http://melmoth.dyndns.org/stream/doc/

to the letter and this is the problem I'm having:

Everything seems to function (icecast runs, iceS runs) and it generates
messages such as:

[root at icecast stream]# bin/ices conf/ices-playlist.xml
[2003-06-04  06:43:17] INFO ices-core/main ices started...
[2003-06-04  06:43:17] INFO signals/signal_usr1_handler Metadata update
requested [2003-06-04  06:43:17] INFO playlist-builtin/playlist_read
Currently playing /home/melmoth/stream/audiofiles/notfound.ogg [2003-06-04
06:43:17] INFO stream/ices_instance_stream Connected to server:
69.10.138.86:8000/silk.ogg [2003-06-04  06:43:17] DBUG
reencode/reencode_page Reinitialising reencoder for new logical stream
[2003-06-04  06:43:17] INFO encode/encode_initialise Encoder initialising in
VBR mode: 2 channel(s), 44100 Hz, quality 3.000000

When I do a netstat -an:

[root at icecast stream]# netstat -an
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 x.x.x.x:8000       0.0.0.0:*               LISTEN tcp
    0      0 x.x.x.x:8000       x.x.x.x:39113      ESTABLISHED tcp        0
    0 x.x.x.x:39113      x.x.x.x:8000       ESTABLISHED tcp        0      0
x.x.x.x:39112      x.x.x.x:8000       TIME_WAIT

(obviously, 'x.x.x.x' is the proper IP address for the server).

The dynamic webpages work and look fine but when I try and connect using
WinAmp3 (x.x.x.x:8000), I get no sound and I get the display fluctuating between
"Prebuffering" and the name of the stream.

Here is a dump of my access.log:

x.x.x.x - - [04/Jun/2003:06:58:01 -0700] "GET / HTTP/1.0" 404 109 "-"
"Nullsoft Winamp3 version 3.0d build 488" 0
x.x.x.x - - [04/Jun/2003:06:58:12 -0700] "GET / HTTP/1.0" 404 109 "-"
"Nullsoft Winamp3 version 3.0d build 488" 0
x.x.x.x - - [04/Jun/2003:06:58:16 -0700] "GET / HTTP/1.0" 404 109 "-"
"Nullsoft Winamp3 version 3.0d build 488" 0

<p>and here is error.log:

[2003-06-04  06:57:47] INFO main/main icecast server started
[2003-06-04  06:57:52] INFO connection/_handle_source_request Source logging
in at mountpoint "/silk.ogg"
[2003-06-04  06:57:52] DBUG source/source_main Source creation complete
[2003-06-04  06:58:01] DBUG connection/_handle_get_request Client connected
[2003-06-04  06:58:01] DBUG connection/_handle_get_request Source not found
for client
[2003-06-04  06:58:12] DBUG connection/_handle_get_request Client connected
[2003-06-04  06:58:12] DBUG connection/_handle_get_request Source not found
for client
[2003-06-04  06:58:16] DBUG connection/_handle_get_request Client connected
[2003-06-04  06:58:16] DBUG connection/_handle_get_request Source not found
for client

and here is my icecast.xml:

<icecast>
        <location>Not Currently Used</location>
        <admin>Not Currently Used</admin>
        <limits>
                <clients>100</clients>
                <sources>2</sources>
                <threadpool>5</threadpool>
                <queue-size>102400</queue-size>
                <client-timeout>30</client-timeout>
                <header-timeout>15</header-timeout>
                <source-timeout>10</source-timeout>
        </limits>

        <authentication>
                <source-password>hackme</source-password>
                <relay-password>hackme</relay-password>
                <admin-user>admin</admin-user>
                <admin-password>hackme</admin-password>
        </authentication>

        <hostname>x.x.x.x</hostname>

        <listen-socket>
                <port>8000</port>
                <bind-address>x.x.x.x</bind-address>
        </listen-socket>

        <mount>
                <mount-name>/silk.ogg</mount-name>
                <password>hackme</password>
        </mount>

        <fileserve>1</fileserve>

        <paths>
                <basedir>/home/melmoth/stream</basedir>
                <logdir>/home/melmoth/stream</logdir>
                <webroot>/home/melmoth/stream/web</webroot>
                <adminroot>/home/melmoth/stream/admin</adminroot>
        </paths>

        <logging>
                <accesslog>access.log</accesslog>
                <errorlog>error.log</errorlog>
                <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
        </logging>

        <security>
                <chroot>0</chroot>
                <changeowner>
                        <user>melmoth</user>
                        <group>melmoth</group>
                </changeowner>
        </security>
</icecast>

and my ices-playlist.xml:

<?xml version="1.0"?>
<ices>

        <background>0</background> <!-- run in background? (unimplemented) -->
        <logpath>/home/melmoth/stream</logpath> <!-- where logs, etc go. -->
        <logfile>ices.log</logfile>
        <loglevel>4</loglevel> <!-- 1=error,2=warn,3=info,4=debug -->
        <consolelog>1</consolelog> <!-- set this to 1 to log to the console
instead
                                    of to the file above -->
        <stream>
                <metadata>
                        <name>Example stream name</name>
                        <genre>Example genre</genre>
                        <description>A short description of your
stream</description>
                </metadata>
                <input>
                        <module>playlist</module>
                        <param name="type">basic</param><!-- Only 'basic'
implemented -->
                        <param name="file">playlist.txt</param> <!-- be sure
this exists -->
                        <param name="random">0</param> <!-- random play -->
                        <param name="once">0</param> <!-- if set to 1 , plays
once through,
                                                          then exits. -->
                </input>
                <instance>
                        <hostname>x.x.x.x</hostname>
                        <port>8000</port>
                        <password>hackme</password>
                        <mount>/silk.ogg</mount>
                        <reconnectdelay>2</reconnectdelay>
                        <reconnectattempts>5</reconnectattempts>
                        <maxqueuelength>80</maxqueuelength>
                        <encode>
                                <nominal-bitrate>64000</nominal-bitrate> <!--
bps. e.g. 64000 for 64 kbps -->
                                <samplerate>44100</samplerate>
                                <channels>2</channels>
                        </encode>
                </instance>
        </stream>
</ices>

Can anyone help me out here since the docs are pretty lame ?

<p>-----------------------------------------
Rackforce Hosting Inc.
The New Force in Hosting
http://www.rackforce.com/

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