Skip to main content

Run In-Venue

In-Venue runs a complete low-latency streaming chain on one machine: an RTMP ingest, Packager, an edge that serves streams and thumbnails, a web player and optional monitoring. Everything starts with Docker Compose, and viewers on the local network watch in sync with no internet connection. See In-Venue use cases for where it fits.

Vindral supplies In-Venue as a package with the container images, a docker-compose.yml and default configuration. The package carries detailed instructions; this page gives the outline. Contact us to get it.

Requirements​

In-Venue runs on Linux, with Ubuntu 22.04 as the reference platform.

  • Install Docker Engine and Docker Compose from Docker's own packages, not from Snap.
  • Use Docker Engine 24 or newer. Update or reinstall older versions.

Windows and macOS​

Windows and macOS suit testing and small audiences; for production, use Linux, which serves many more viewers per machine. Install Docker Desktop following Docker's instructions. The package uses host networking, which Docker Desktop offers only as an opt-in setting in recent versions; without it, follow the comments in docker-compose.yml to use port mappings instead.

Install​

  1. Unpack the package and load the container images.
  2. Read the comments in docker-compose.yml and adjust the settings you need.
  3. Configure Packager in config/packager/config.toml: renditions, resolutions, bitrates and so on.

Before you copy settings from the Packager example configs, which use version 3, check the version line in config/packager/config.toml. If your package uses an earlier format, contact us for an updated package.

Run​

Start all services from the package directory:

bash
docker compose up -d

Use docker-compose up -d with the older standalone Compose, and sudo if your Docker installation requires it. The services restart automatically after a reboot.

Publish your stream over RTMP to the machine. Replace YOUR_SERVER_IP with the machine's address on the venue network, or use localhost for an encoder on the same machine:

  • URL: rtmp://YOUR_SERVER_IP/live/stream
  • Separate server and key: server rtmp://YOUR_SERVER_IP/live/, stream key stream

Viewers open the player on port 80 of the same address, for example http://YOUR_SERVER_IP/, from any device on the network.

Serve over TLS​

Browsers need HTTPS for some features and on some networks. A certificate from a trusted authority works best. A self-signed certificate also works, but every viewer device must trust it.

  1. Follow the TLS comments in docker-compose.yml.
  2. In config/packager/config.toml, change the sink URL from ws://host.docker.internal:9090/publish/?streamKey=stream to wss://host.docker.internal:9090/publish/?streamKey=stream.
  3. In config/prometheus.yml, change http://host.docker.internal:9090 to https://host.docker.internal:9090 under scrape_configs.
  4. Create a folder named certs and put fullchain.pem and key.pem in it.
  5. With a self-signed certificate, make viewer devices trust the certificate, domain or authority.

Updates​

In-Venue installations do not need to follow every Vindral release. Update when a release brings something you need, and plan updates outside events, since restarting the edge disconnects viewers.