/rtmp-server

A Docker setup to forward an authenticated RTMP stream to YouTube, Twitch, and a recording file

Primary LanguageRustMIT LicenseMIT

MOD! Magazine RTMP Tools

This repository holds tools used by MOD! Magazine to stream (to YouTube and Twitch) and record simultaneously while only opening one network connection from the host computer (instead of connecting to Twitch, to YouTube, and recording all at once).

Usage

  1. Clone this repository.
  2. Remove the relevant commented lines in rtmp/nginx.conf and fill in your stream keys.
  3. docker-compose build
  4. docker-compose up

Architecture

Nginx

Nginx runs the RTMP server that forwards to both YouTube and Twitch as well as recording. It is accessible via rtmp://server_ip:1935/stream.

Authentication Server

The authentication server is a simple Rust/Rocket.rs web server that authenticates clients via stream keys.