Welcome to the IPFire Wiki

This wiki is a community-maintained resource about everything there is to know about IPFire. Join us and help us improving it!

Looking for something?

Use the search and find answers to everything about IPFire. If you cannot find what you are looking for, join our community and talk to fellow IPFire users, developers and everybody else involved in the project.

IPFire Community

Icecast Addon

Icecast is a MP3 and Ogg streaming server. Stream your audio signals to shoutcast compatible programs . Its also possible to transmit the sound output from MPFire to clients via the network.

Configuration

MPFire: Turn the additional Streaming output on

In the configuration file of MPFire the Streaming output is preconfigured but not active (just delete the "#" at the beginning of a line to activate an option) . In general you may change the bitrate and/or the quality here. You also should change the password here.

File: /var/ipfire/mpfire/mpd.conf

#
# An example of a shout output (to stream to Icecast):
#
audio_output {
          type                    "shout"<br>
        name                    "MPFire Output Stream"<br>
        host                    "localhost"
        port                    "8000"
        mount                   "/mpd.ogg"
        password                "ipfiresrc"
#       quality                 "5.0"
        bitrate                 "128"
        format                  "44100:16:1"
#       user                    "source"                # optional
#       description             "My Stream Description" # optional
#       genre                   "jazz"                  # optional
#       public                  "no"                    # optional
}
#
# Set this if you have problems

Configure the Icecast server

Create a directory for the log files

mkdir /usr/var
mkdir /usr/var/log
mkdir /usr/var/log/icecast

Allocate it to the user nobody

chown nobody:nobody /usr/var/log/icecast

Start the server

icecast -b -c /usr/etc/icecast.xml

Stop the server

killall icecast

Create the Initscript

File: /etc/init.d/icecast

#!/bin/sh
# Begin $rc_base/init.d/icecast

# Based on sysklogd script from LFS-3.1 and earlier.

. /etc/sysconfig/rc
. $rc_functions

case "$1" in
    start)
        boot_mesg "Starting icecast..."
        loadproc /usr/bin/icecast -b -c /usr/etc/icecast.xml >/dev/null 2>&1
    evaluate_retval
        ;;
    stop)
        boot_mesg "Stopping icecast..."
        killproc /usr/bin/icecast
    evaluate_retval
        ;;
    status)
        statusproc /usr/bin/icecast
        ;;
    restart)
        $0 stop
        sleep 3
        $0 start
        ;;
    *)
        echo "Usage: $0 (start|stop|restart|status)"
exit 1
;;
esac

# End $rc_base/init.d/icecast

Change the rights

chmod 755 /etc/init.d/icecast

Start the server

/etc/init.d/icecast start

Stop the server

/etc/init.d/icecast stop

Restart the server

/etc/init.d/icecast restart

Request the servers status

/etc/init.d/icecast status

Autostart the Icecast server

Enable autostart

ln -s ../init.d/icecast /etc/rc.d/rc3.d/S65icecast
ln -s ../init.d/icecast /etc/rc.d/rc0.d/K35icecast
ln -s ../init.d/icecast /etc/rc.d/rc6.d/K35icecast

Disable autostart

rm /etc/rc.d/rc3.d/S65icecast
rm /etc/rc.d/rc0.d/K35icecast
rm /etc/rc.d/rc6.d/K35icecast

Use Icecast

Icecast has its own webinterface. Access it (per default) via "http://IP-IPFire:8000".

Special: MPFire without a soundcard

The use of MPFire without a soundcard is possible in the IPFire by emulating the soundcard. To use this feature you'll have to insert the following lines into the initscript of the Alsa Soundsystem.

File: /etc/init.d/alsa

case "$1" in`
:start)`
::<b>boot_mesg "Starting Soundcard dummy..."
::modprobe snd_dummy >/dev/null 2>&1
::evaluate_retval
::boot_mesg "Starting ALSA...   Restoring volumes..."
Edit Page ‐ Yes, you can edit!

Older Revisions • August 17 at 6:46 am • Erik Kapfer