Skip to content

Repository files navigation

Multiroom pubsub audio stream thing

This Liquidsoap + Icecast + Docker-Compose setup lets multiple users cast audio into separate "rooms" via Icecast/Shoutcast, to be listened to by other people.

Features

  • Easy Docker Compose setup
  • Multiple "rooms" per server, declared in a simple Liquidsoap configuration file
  • Automagical saving of livestreamed content

Setup (admins)

  • Clone this repository somewhere. Note that you should have ample space wherever you do, since recordings of streamed content will end up in storage/.
  • Copy multiroom.liq.example to multiroom.liq; configure the room names and passwords as desired.
  • Edit docker-compose.yml file to change the default Icecast source password hackme (both instances of it) to something unique and hard-to-guess.
  • Run docker-compose up.
  • Ensure listeners can connect to port 8000 (which should already show you the Icecast UI), and sources can connect to 8080.

By default, all streams are up all the time; if no one is connected, they just output silence. This could be made optional in a future release.

Configuration

Beyond just the declarative configuration of rooms in the multiroom.liq file, the libmultiroom.liq file reads some bits from environment variables. Most of these are already correctly set for you by the Docker Compose file, but there's a couple tweakable bits:

  • STORAGE_SPLIT_METADATA: Set this to 1 or suchlike if you'd like new storage files to be created when the source metadata (tag) changes.

Setup (sources)

Use your Icecast client to connect to server:8080, source name ROOMNAME. Use the password given to you by your friendly server admin.

For instance, for Native Instruments Traktor, if the streaming server is running locally, the setup could be like this:

Traktor example

Image

Setup (listeners)

Navigate to http://server:8000/ and choose a stream to listen to. You can also use the .m3u links to add to your music player.

About

Multiroom pubsub audio stream thing with Liquidsoap

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors