Code Monkey home page Code Monkey logo

restreamer's Introduction

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

restreamer's People

Contributors

emad-elsaid avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

restreamer's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.