Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.72 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.72 KB

RESTREAMER

This docker container does the following

  1. Start nginx with RTMP module that restream to many RTMP servers including Facebook with stunnel
  2. Runs stunnel with facebook live server tunneling configuration
  3. Reads SRTMP push servers from the environment variables so no need to change nginx configuration
  4. Uses RTMP application name from environment variables so you can change it easily to some long random token

Starting from dockerhub

  1. Prepare a .env file, use .env.sample file as a reference
  2. run the container
docker run -it --rm -p 1935:1935 --env-file .env --name restreamer emadelsaid/restreamer

Setup

  1. Copy .env.sample content to .env on your machine
  2. Change values in .env to set your secret token
  3. PLATFORMS environment variable is a comma separated names of other environment variables that hold the RTMP values
  4. to stream to FACEBOOK use rtmp://127.0.0.1:1936/rtmp/ instead of rtmps://live-api-s.facebook.com:443/rtmp/

STREAMING URLS Pages

  1. Facebook: https://www.facebook.com/live/producer/
  2. Youtube: https://www.youtube.com/live_dashboard
  3. Twitch https://dashboard.twitch.tv/u/internalerr/settings/channel servers list https://stream.twitch.tv/ingests/
  4. Mixer https://mixer.com/dashboard/channel/broadcast servers list https://watchbeam.zendesk.com/hc/en-us/articles/209659883-How-to-Change-Your-Ingest-Server

Starting from source

docker build . -t restreamer
docker run -it --rm -p 1935:1935 --env-file .env --name restreamer restreamer

OBS config

  1. stream server url rtmp://127.0.0.1/<TOKEN VALUE>

CONSTRIBUTORS

Most of the dockerfile code is from https://github.com/tiangolo/nginx-rtmp-docker so many thanks for him