[icecast] dual streaming example

Kerry Cox kerry.cox at ksl.com
Fri Sep 26 14:39:31 PDT 2003


Just wanted to share with everyone a working dual-streaming config 
based on Geoff Shang's dual streaming example. With this I am sending
two separate streams; one at 96 KBPS and at 41 KHZ  and the other at 33
KBPS and at 22 KHZ. At least, this is what I see when I connect using
XMMS-1.2.7. It works and sounds great. I had a small problem getting the
sample rate just right, but this works VERY nicely for setting up dual
streams.
Kudos to Geoff for being willing to share his example and being patient
with the lot of us. I hope this helps someone else. It works great for
my purposes. I'll be posting this example to my icecast docs page at
http://quasi.ksl.com/icecast/ sometime in the near future.

<p><p><?xml version="1.0"?>
<ices>
    <background>0</background> <!-- run in background? (unimplemented)
-->
    <logpath>/usr/local/icecast2</logpath> <!-- where logs, etc go. -->
    <logfile>/usr/local/icecast2/logs/ices.log</logfile>
    <loglevel>4</loglevel> <!-- 1=error,2=warn,3=info,4=debug -->
    <consolelog>1</consolelog>
        <!-- set this to 1 to log to console of file above -->
    <stream>
        <!-- metadata used for stream listing (not currently used) -->
        <metadata>
            <name>Test Stream</name>
            <genre>Talk Radio</genre>
            <description>Testing</description>
        </metadata>
        <input>
            <module>oss</module>
            <param name="rate">41000</param>
            <param name="channels">2</param>
            <param name="device">/dev/dsp</param>
            <param name="metadata">0</param>
            <param name="metadatafilename">live</param>
        </input>

<!--
       <instance>
            <hostname>xx.xx.xx.xx</hostname>
            <port>8000</port>
            <password>********</password>
            <mount>/stream.ogg</mount>
            <yp>0</yp>
            <reconnectdelay>2</reconnectdelay>
            <reconnectattempts>5</reconnectattempts>
            <maxqueuelength>80</maxqueuelength>
        </instance>
-->

        <instance>
            <hostname>xx.xx.xx.xx</hostname>
            <port>8000</port>
            <password>********</password>
            <mount>/highband.ogg</mount>
            <yp>0</yp>
            <reconnectdelay>2</reconnectdelay>
            <reconnectattempts>5</reconnectattempts>
            <maxqueuelength>80</maxqueuelength>

            <encode>
                <quality>2</quality>
                <nominal-bitrate>96000</nominal-bitrate>
                <samplerate>41000</samplerate>
                <channels>2</channels>
            </encode>
        </instance>

        <instance>
            <hostname>xx.xx.xx.xx</hostname>
            <port>8000</port>
            <password>*******</password>
            <mount>/lowband.ogg</mount>
            <yp>0</yp>
            <reconnectdelay>2</reconnectdelay>
            <reconnectattempts>5</reconnectattempts>
            <maxqueuelength>80</maxqueuelength>

            <downmix>1</downmix>

            <resample>
                <in-rate>41000</in-rate>
                <out-rate>22050</out-rate>
            </resample>

            <encode>
                <nominal-bitrate>32000</nominal-bitrate>
                <samplerate>22050</samplerate>
                <channels>1</channels>
                <quality>2</quality>
            </encode>
        </instance>
    </stream>
</ices>

<p>I hope this helps someone else.
KJ

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
Url : http://lists.xiph.org/pipermail/icecast/attachments/20030926/762d0a9d/signature.pgp


More information about the Icecast mailing list