Re-5: [icecast] Newbie-Question

d.moritz at edv-partner.com d.moritz at edv-partner.com
Mon Sep 22 04:51:52 PDT 2003



Hi!
The icecast-server seems to work though I didn't manage to play music:

This is my config file for the intended playlist:
<?xml version="1.0"?>
<ices>

        <background>0</background> <!-- run in background? (unimplemented) -->
        <logpath>/tmp</logpath> <!-- where logs, etc go. -->
        <logfile>ices.log</logfile>
        <loglevel>4</loglevel> <!-- 1=error,2=warn,3=info,4=debug -->
    <consolelog>0</consolelog> <!-- set this to 1 to log to the console instead
                                    of to the file above -->

        <stream>
                <!-- metadata used for stream listing (not currently used) -->
                <metadata>
                        <name>Example stream name</name>
                        <genre>Example genre</genre>
                        <description>A short description of your stream</description>
                </metadata>

                <!-- input module
                         This defines where the data (raw PCM, vorbis files, etc.) comes
                         from. The module used here is the playlist module - it has 
                         'submodules' for different types of playlist. The only one 
                         currently implemented is 'basic', which is a simple file-based
                         playlist
                -->
                <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>

                <!-- 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
                         bitrates.
                         If one instance fails (for example, the associated server goes
                         down, etc), the others will continue to function correctly.
                         This example defines two instances as two mountpoints on the
                         same server.
                -->
                <instance>
                        <!-- Server details:
                                 You define hostname and port for the server here, along with
                                 the source password and mountpoint. 
                        -->
                        <hostname>localhost</hostname>
                        <port>8000</port>
                        <password>hackme</password>
                        <mount>/example1.ogg</mount>

                        <!-- Reconnect parameters:
                                 When something goes wrong (e.g. the server crashes, or the
                                 network drops) and ices disconnects from the server, these
                                 control how often it tries to reconnect, and how many times
                                 it tries to reconnect. Delay is in seconds.
                                 If you set reconnectattempts to -1, it will continue 
                                 indefinately. Suggest setting reconnectdelay to a large value
                                 if you do this.
                        -->
                        <reconnectdelay>2</reconnectdelay>
                        <reconnectattempts>5</reconnectattempts> 

                        <!-- maxqueuelength:
                                 This describes how long the internal data queues may be. This
                                 basically lets you control how much data gets buffered before
                                 ices decides it can't send to the server fast enough, and 
                                 either shuts down or flushes the queue (dropping the data)
                                 and continues. 
                                 For advanced users only.
                        -->
                        <maxqueuelength>80</maxqueuelength>

                        <!-- Live encoding/reencoding:
                                 Currrently, the parameters given here for encoding MUST
                                 match the input data for channels and sample rate. That 
                                 restriction will be relaxed in the future.
                        -->
                        <encode>  
                                <nominal-bitrate>64000</nominal-bitrate> <!-- bps. e.g. 64000 for 64 kbps -->
                                <samplerate>44100</samplerate>
                                <channels>2</channels>
                        </encode>
                </instance>

                <!-- Now, we define a 2nd stream instance.
                         Here, we only define the basic server parameters - everything
                         else takes the default values.
                         No reencoding is done.
                -->
                <instance>
                        <hostname>localhost</hostname>
                        <port>8000</port>
                        <password>hackme</password>
                        <mount>/example2.ogg</mount>
                    <!-- Stream saving. Save the outgoing stream to the specified file
                             This is commented out since we don't want it by default -->
                        <!--
            <savefile>streamdump.ogg</savefile>
             -->
                </instance>

        </stream>
</ices>

The playlist.txt contains just one song: ten.mp3
Checking the logs the server is started correctly, but if I try to connect via winamp I get the following:

"GET / example1.ogg HTTP/1.1" 404 109 "-" "Winamp" 0

And winamp doesn't play anything.
I'm really confused with all the config-files for icecast and ices, so pointing me in the right direction would be nice.
thx in advance

<p>-------- Original Message --------
Subject: Re-4: [icecast] Newbie-Question (22-Sep-2003 11:47)
From:    d.moritz at edv-partner.com
To:      d.moritz at edv-partner.com

> Aaah, now so far so good.
> 
> Next problem.
> 
> I started ices, using the default ices_playlist.xml (with a few minor 
> changes).
> Everything seems fine, but I can't connect to the server using winamp.
> 
> -------- Original Message --------
> Subject: Re: Re-2: [icecast] Newbie-Question (22-Sep-2003 11:35)
> From:    tomg at future-i.com
> To:      d.moritz at edv-partner.com
> 
> > Do you have a basedir specified in the <paths> element and have 
> > <chroot>1</chroot> in the <security> element below?
> > 
> > If so, the paths you specify in <logdir> and <webroot> need to be 
> > *relative* to the basedir.
> > 
> > eg,
> > 
> > <paths>
> >    <basedir>/usr/local/icecast2</basedir>
> >    <logdir>/logs</logdir>
> >    <webroot>/web</webroot>
> > </paths>
> > 
> > ....
> > 
> > <security>
> >    <chroot>1</chroot>
> >    <changeowner>
> >      <user>icecast</user>
> >      <group>icecast</group>
> >    </changeowner>
> > </security>
> > 
> > Try this and see if it helps?
> > 
> > Tom
> > 
> > d.moritz at edv-partner.com wrote:
> > > Hmm, I made sure my icecast user has write access (by actually writing sth 
> > > to the direcotry from the console) but no change there.
> > > 
> > > Still getting the same error-messages
> > > 
> > > -------- Original Message --------
> > > Subject: Re: [icecast] Newbie-Question (22-Sep-2003 11:11)
> > > From:    crupp at umc-web.de
> > > To:      d.moritz at edv-partner.com
> > > 
> > > 
> > >>>FATAL: could not open error loggin
> > >>>FATAL: could not open access loggin
> > >>>FATAL: could not start logging
> > >>> 
> > >>>Is there a short documentation anywhere which contains how to set up the 
> > 
> > 
> > >>>whole stuff?
> > >>
> > >>You have to check the settings of your log files in your icecast.xml 
> > >>configuration file:
> > >>
> > >>
> > >><logdir>/home/chris/icecast2/icecast-2.0-alpha-2/share/log</logdir>
> > >> 
> > >><webroot>/home/chris/icecast2/icecast-2.0-alpha-2/share/web</webroot>
> > >> 
> > >><adminroot>/home/chris/icecast2/icecast-2.0-alpha-2/share/admin</
> > adminroot>
> > >>
> > >>Just make sure that those paths are correct, that the directories exist 
> > >>and that your icecast user has write access.
> > >>
> > >>HTH,
> > >>Chris
> > >>
> > >>--- >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.
> > > 
> > > 
> > > --- >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.
> > 
> > 
> > --- >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.
> 
> --- >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.

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