[Icecast] Player mysteriously quits...

Craig Meyer craig at fdllug.org
Sun Jun 5 10:30:01 PDT 2005

I posted the other day with a question about a player that mysteriously quits playing the icecast stream. I believe the problem is related to the icecast stream for two reasons. 1) Because it quits on more than one different player (Winamp 5 and Foobar2000) and 2) Because I used to use shoutcast with Winamp 2 and never had this problem. Anyway, I tried to get as much information about the problem as possible, so I turned on logging (at loglevel 3) and got a log of the period when the player stops playing. I have looked at the logs myself and don't believe they will be much help, however I have increased the loglevel to 4 so that the next set of logs I get will be more detailed. Below is a list of my logs and config files. It goes in this order - access.log, error.log, ices.log, ices config file and icecast config file. Any help would be appreciated, but again, I will have better logging when the stream stops playing again (probably in about 8 hours or so).


access.log - - [04/Jun/2005:14:09:55 -0500] "SOURCE /tobin.ogg HTTP/1.0" 200 19 "-" "IceS 2.0.1" 375393 - - [04/Jun/2005:14:13:33 -0500] "SOURCE /tobin.ogg HTTP/1.0" 200 19 "-" "IceS 2.0.1" 128 - - [05/Jun/2005:05:29:24 -0500] "GET /tobin.ogg HTTP/1.0" 200 223293079 "-" "WinampOGG/5.09(MPEG stream compatible)" 54902

[2005-06-04  14:13:33] INFO format-ogg/ogg_get_buffer End of Stream /tobin.ogg
[2005-06-04  14:13:33] INFO source/source_shutdown Source "/tobin.ogg" exiting
[2005-06-04  14:13:44] INFO connection/_handle_source_request Source logging in at mountpoint "/tobin.ogg"
[2005-06-04  14:13:44] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2005-06-04  14:13:44] INFO format-vorbis/initial_vorbis_page seen initial vorbis header
[2005-06-04  14:14:22] INFO source/source_main listener count on /tobin.ogg now 1
[2005-06-05  05:29:24] INFO source/source_main listener count on /tobin.ogg now 0

[2005-06-04  14:13:44] INFO ices-core/main IceS 2.0.1 started...
[2005-06-04  14:13:44] INFO input-alsa/alsa_open_module Opened audio device plughw:0,0
[2005-06-04  14:13:44] INFO input-alsa/alsa_open_module using 2 channel(s), 44100 Hz, buffer 371 ms
[2005-06-04  14:13:44] INFO input-alsa/alsa_open_module Starting metadata update thread
[2005-06-04  14:13:44] INFO signals/signal_usr1_handler Metadata update requested
[2005-06-04  14:13:44] INFO metadata/metadata_thread_signal tag 1 is artist=tobin
[2005-06-04  14:13:44] INFO metadata/metadata_thread_signal Updating metadata
[2005-06-04  14:13:44] INFO audio/downmix_initialise Enabling stereo->mono downmixing
[2005-06-04  14:13:44] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz
[2005-06-04  14:13:44] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality 0.000000
[2005-06-04  14:13:44] INFO stream/ices_instance_stream Connected to server: localhost:8000/tobin.ogg
[2005-06-04  14:13:44] INFO audio/resample_initialise Initialised resampler for 1 channels, from 44100 Hz to 22050 Hz
[2005-06-04  14:13:44] INFO encode/encode_initialise Encoder initialising in VBR mode: 1 channel(s), 22050 Hz, quality 0.000000

Ices Config File:
<?xml version="1.0"?>

    <!-- run in background  -->
    <!-- where logs go. -->
    <!-- 1=error, 2=warn, 3=infoa ,4=debug -->
    <!-- logfile is ignored if this is set to 1 -->

    <!-- optional filename to write process id to -->
    <!-- <pidfile>/home/ices/ices.pid</pidfile> -->

        <!-- metadata used for stream listing -->
            <genre>FM Tuner</genre>
            <description>Radio Machine for Tobin Machining</description>

        <!--    Input module.

            This example uses the 'oss' module. It takes input from the
            OSS audio device (e.g. line-in), and processes it for live
            encoding.  -->
            <param name="rate">44100</param>
            <param name="channels">2</param>
            <param name="device">plughw:0,0</param>
            <!-- Read metadata (from stdin by default, or -->
            <!-- filename defined below (if the latter, only on SIGUSR1) -->
            <param name="metadata">1</param>
            <param name="metadatafilename">/home/icecast/test</param>

        <!--    Stream instance.

            You may have one or more instances here.  This allows you to
            send the same input data to one or more servers (or to different
            mountpoints on the same server). Each of them can have different
            parameters. This is primarily useful for a) relaying to multiple
            independent servers, and b) encoding/reencoding to multiple

            If one instance fails (for example, the associated server goes
            down, etc), the others will continue to function correctly.
            This example defines a single instance doing live encoding at
            low bitrate.  -->

            <!--    Server details.

                You define hostname and port for the server here, along
                with the source password and mountpoint.  -->

            <yp>1</yp>   <!-- allow stream to be advertised on YP,
default 0 -->

            <!--    Live encoding/reencoding:

                channels and samplerate currently MUST match the channels
                and samplerate given in the parameters to the oss input
                module above or the remsaple/downmix section below.  -->


            <!-- stereo->mono downmixing, enabled by setting this to 1 -->

            <!-- resampling.

                Set to the frequency (in Hz) you wish to resample to, -->



Icecast Config File:
        <!-- If enabled, this will provide a burst of data when a client
             first connects, thereby significantly reducing the startup
             time for listeners that do substantial buffering. However,
             it also significantly increases latency between the source
             client and listening client.  For low-latency setups, you
             might want to disable this. -->
        <!-- same as burst-on-connect, but this allows for being more
             specific on how much to burst. Most people won't need to
             change from the default 64k. Applies to all mountpoints  -->

        <!-- Sources log in with username 'source' -->
        <!-- Relays log in username 'relay' -->

        <!-- Admin logs in with the username given below -->

    <!-- Uncomment this if you want directory listings -->

    <!-- This is the hostname other people will use to connect to your server.
    It affects mainly the urls generated by Icecast for playlists and yp
    listings. -->

    <!-- You can use these two if you only want a single listener -->
    <!--<port>8000</port> -->

    <!-- You may have multiple <listener> elements -->
        <!-- <bind-address></bind-address> -->



    <!-- Only define a <mount> section if you want to use advanced options,
         like alternative usernames or passwords


        <authentication type="htpasswd">
                <option name="filename" value="myauth"/>
                <option name="allow_duplicate_users" value="0"/>


                <!-- basedir is only used if chroot is enabled -->

        <!-- Note that if <chroot> is turned on below, these paths must both
             be relative to the new root, not the original root -->
        <!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->

        <!-- Aliases: treat requests for 'source' path as being for 'dest' path
             May be made specific to a port or bound address using the "port"
             and "bind-address" attributes.
        <alias source="/foo" dest="/bar"/>
        <!-- Aliases: can also be used for simple redirections as well,
             this example will redirect all requests for http://server:port/ to
             the status page
        <alias source="/" dest="/status.xsl"/>

        <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->


More information about the Icecast mailing list