[icecast] dual streaming example

Kerry Cox
Fri, 06 Aug 2004 14:23:34 -0000

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.

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

    <stream>

        <metadata>
            <name>Test Stream</name>
            <genre>Talk Radio</genre>
            <description>Testing</description>
        </metadata>

            <module>oss</module>
41000
2
/dev/dsp
0
live


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

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