[icecast] automating icecast2 startups
Geoff Shang
gshang at uq.net.au
Thu Sep 25 04:53:28 UTC 2003
Hi:
With regard to multiple streams, yes you can use streamtranscoder, but you
can also do it in ices (provide multiple ogg streams, that is). Here's an
excerpt from the config I maintain to show how it's done.
<instance>
<hostname>linux-speakup.org</hostname>
<port>9000</port>
<password>********</password>
<mount>/egoplay.ogg</mount>
<yp>1</yp> <!-- allow stream to be advertised on YP, default
0 -->
<reconnectdelay>2</reconnectdelay>
<reconnectattempts>5</reconnectattempts>
<maxqueuelength>80</maxqueuelength>
<!--
<savefile>streamdump.ogg</savefile>
-->
</instance>
<instance>
<hostname>linux-speakup.org</hostname>
<port>9000</port>
<password>********</password>
<mount>/egoplay64.ogg</mount>
<yp>1</yp> <!-- allow stream to be advertised on YP, default
0 -->
<encode>
<quality>0</quality>
<samplerate>44100</samplerate>
<channels>2</channels>
</encode>
</instance>
<instance>
<hostname>linux-speakup.org</hostname>
<port>9000</port>
<password>********</password>
<mount>/egoplay24.ogg</mount>
<yp>1</yp> <!-- allow stream to be advertised on YP, default
0 -->
<!-- stereo->mono downmixing, enabled by setting this to 1 -->
<downmix>1</downmix>
<resample>
<in-rate>44100</in-rate>
<out-rate>22050</out-rate>
</resample>
<encode>
<quality>-1</quality>
<samplerate>22050</samplerate>
<channels>1</channels>
</encode>
</instance>
A couple of things to note here. The first instance just sends out the
data as it is. If you're inputing from a soundcard, you can't have an
entry that looks like this - you have to encode.
In the last section, you'll notice the downmix, resample and encode
sections. I've put them in this order for clarity. It doesn't matter
which order these sections are in, as long as they're all present.
Hope this helps.
Geoff.
--- >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