The community-maintained documentation platform of IPFire

User Tools

Site Tools


Icecast Addon

The Icecast package is not preconfigured yet. Therefore the usage is for experienced users only.

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.


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
  # Begin $rc_base/init.d/icecast
  # Based on sysklogd script from LFS-3.1 and earlier.
  . /etc/sysconfig/rc
  . $rc_functions
  case "$1" in
  		boot_mesg "Starting icecast..."
  		loadproc /usr/bin/icecast -b -c /usr/etc/icecast.xml >/dev/null 2>&1 
  		boot_mesg "Stopping icecast..."
  		killproc /usr/bin/icecast
  		statusproc /usr/bin/icecast
    		$0 stop
    		sleep 3
    		$0 start
  		echo "Usage: $0 (start|stop|restart|status)"
		exit 1
  # 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<br>
rm /etc/rc.d/rc0.d/K35icecast<br>
rm /etc/rc.d/rc6.d/K35icecast<br>

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
  ::<b>boot_mesg "Starting Soundcard dummy..."
  ::modprobe snd_dummy >/dev/null 2>&1
  ::boot_mesg "Starting ALSA...   Restoring volumes..."
addons/icecast/start.txt · Last modified: 2018/09/23 19:57 by Jon