On Fri, 21 Mar 2003, Remco B. Brink wrote:
> <quote who="Geoff Shang">
>
> > Is there some XML magic I need to use now to get directory info
> > published?
>
> Can you send over your existing configuration?
Yeah. Ignore the comments, this began as the sample config file and the
comments weren't removed or changed.
<?xml version="1.0"?>
<ices>
<background>0</background> <!-- run in background?
(unimplemented) -->
<logpath>/var/streamers/ices2/egoplay</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>Kirk's Egoplay</name>
<genre>all genres</genre>
<description>An eclectic mix of ogg's from
Kirk's vast collection</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">script</param><!-- Only 'basic'
implemented -->
<param
name="program">/usr/bin/egosched</param> <!-- be sure this
exists -->
</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>bumpy.braille.uwo.ca</hostname>
<port>9000</port>
<password>ahem...</password>
<mount>/egoplay64.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>
<quality>0</quality>
<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>bumpy.braille.uwo.ca</hostname>
<port>9000</port>
<password>ahemm...</password>
<mount>/egoplay.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>
<instance>
<hostname>bumpy.braille.uwo.ca</hostname>
<port>9000</port>
<password>ahem...</password>
<mount>/egoplay24.ogg</mount>
<encode>
<quality>-1</quality>
<samplerate>22050</samplerate>
<channels>1</channels>
</encode>
<!-- stereo->mono downmixing, enabled by setting this to 1
-->
<downmix>1</downmix>
<!-- resampling. Set to the frequency (in Hz) you wish to
resample
to, or 0 to disable -->
<resample>
<in-rate>44100</in-rate>
<out-rate>22050</out-rate>
</resample>
</instance>
</stream>
</ices>
<p><p><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@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.