Skip to main content

Usage

Mounting sources

To mount a source you need to use a client that can communicate with Icecast.

For example, you can use Liquidsoap for that:

liquidsoap \
'output.icecast(
host="localhost",
port=10000,
user="source",
password="password",
mount="radio.mp3",
%mp3,
sine()
)'

Now you should hear a sine wave at http://localhost:10000/radio.mp3.

Listening

You can listen to any active mount point. If a mount point is called radio.mp3 then you can reach the stream at http://localhost:10000/radio.mp3.

Icecast is responsible for handling as many listeners as possible and making sure all of them get the live audio.

Administration

There are various endpoints with internal insights and statistics:

  • /admin/listclients.json?mount=/radio.mp3 - list clients listening to /radio.mp3
  • /admin/stats.json - various statistics
  • /admin/publicstats.json - subset of statistics that are safe to expose to the public
  • /admin/listmounts.json - list all active mount points
  • /admin/streamlist.json - list all active streams

All of them return data in JSON format. You need to authenticate with basic auth to access them.