Skip to content

Just some Nginx config files and scripts for streaming webcasts.

Notifications You must be signed in to change notification settings

accerqueira/auditorium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auditorium

This is just a collection of simple scripts and configuration for setting up a "virtual auditorium".

Streams can be published through RTMP, handled by nginx with rtmp module. Published streams are transcoded, on-the-fly, into multiple bitrate/resolution hls variants with ffmpeg. People can watch in almost any browser. Powered by video.js.

Getting Started

  • Make sure you have buildah and podman installed

  • Build images:

    set -a
    source env-samples/default.env # copy and modify, if necessary
    set +a
    
    echo -n nginx nginx-rtmp-module ffmpegd confd | xargs -rn1 -P4 bash -c 'scripts/build/${0}'
  • Create volumes/db/data/auditorium.yml with the following contents:

    auditorium:
    domain: {{ $domain }}
    servers:
        - rtmp-n01
    streams:
        {{ $stream.id }}:
        key: {{ $stream.key }}
    • replace the variables in curly braces:
      • domain: where it will be hosted (e.g.: auditorium.grana.guru)
      • stream.id: public identifier (e.g.: < /dev/urandom tr -dc 'a-zA-Z0-9' | fold -w12 | head -n1)
      • stream.key: secret key, used by caster (e.g.: < /dev/urandom tr -dc 'a-zA-Z0-9' | fold -w32 | head -n1)
  • Execute:

    set -a
    source env-samples/default.env # copy and modify, if necessary
    set +a
    
    scripts/deploy/standalone-rootless/start

Features

  • multiple simultaneous streams
  • RTMP publish
  • HLS play
    • resolution/bitrate variants
  • replace confd
  • letsencrypt automation
  • stream catalog
  • authentication/authorization (keycloak)
  • manager module
    • manage streams
    • scheduled streams

About

Just some Nginx config files and scripts for streaming webcasts.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published