[Icecast] Re: Sample Rates

Andy Baxter andy at earthsong.free-online.co.uk
Fri Sep 3 20:19:14 UTC 2004


On Tue, 31 Aug 2004 16:23:53 -0700, Young, Heidi A. wrote:

> Hi there -
> 
>  
> 
> I am currently in the middle of a project where I need to configure an
> Icecast Server and I am using Ices as the encoder.  I want to configure Ices
> to take in a stream with a sample rate of 128 kHz and output it to the
> Icecast server.  My question is, what are the minimum and maximum sample
> rates that Ices will continue to work with? 
> 
>  
> 
> Thank you,
> 
>  
> 
> Heidi Young
> 
> Software Developer
> 
> SAIC - Sea Technology and Services Division
> 
> 1007 Scott Ave. Suite A
> 
> Bremerton, WA 98310
> 
> (360) 415-5768

I've managed to get it down to a bitrate (not sample rate) of about 20-22
kbit/s mono using a config file like this (change the input section to
suit your setup). I don't know what the max bitrate is, but probably not
much point going much above 128 kbit/s stereo, as the quality at that rate
is pretty good.

<?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 -->
    <logsize>2048</logsize> <!-- the size the log file must be before rotation -->
    <consolelog>0</consolelog> <!-- set this to 1 to log to the console instead
                                    of to the file above -->
    <pidfile>/var/ices/ices.pid</pidfile> <!-- file to write process id to -->

        <stream>

                <!-- input module -->
                <input>
                        <module>jack</module>
                        <param name="channels">1</param>
                        <param name="clientname">ices32</param>
                </input>

        <runner>
            <!-- Stream instance -->
            <instance>
                <shout>
                    <!-- Server details: -->
                    <hostname>localhost</hostname>
                    <port>8000</port>
                    <password>hackme</password>
                    <mount>/mono.ogg</mount>

                    <reconnectdelay>2</reconnectdelay>
                    <reconnectattempts>5</reconnectattempts>
                </shout>

                <resample>
                    <out-rate>22050</out-rate>
                    </resample>
                <encode>
                    <!-- VBR mode can be selected via quality or nominal-bitrate -->
                    <!-- selecting enabling managed has to be done separately as -->
                    <!-- it's slower, but can be used to limit a high threshold -->
                    <managed>1</managed>
                    <maximum-bitrate>22000</maximum-bitrate>
                    <nominal-bitrate>22000</nominal-bitrate>
                </encode>
            </instance>
        </runner>
        </stream>
</ices>







More information about the Icecast mailing list