Giter VIP home page Giter VIP logo

nginx-rtmp's Introduction

Docker-Image for nginx with RTMP-Module based on Debian Stretch

The intended use is to use this as an RTMP ressource for Tools like Streamlabs OBS or to stream to Twitch directly in conjunction with IPTV encoding devices, e.g. LiveU Solo.

RTMP Endpoints

There are three RTMP-Endpoints configured (local.conf):

  • recode (Port 1735) Recode the input (as 1080p60, veryfast, 6 MBit) and send it directly to Twitch

  • direct2twitch (Port 1835) Send the input directly to Twitch without any encoding

  • live (Port 1935) Become an Standard-RTMP source for use with OBS, VLC, etc.

Webserver / PHP-FPM

nginx is configured to serve files via http (Port 80). php-fpm is also available (PHP 7.0), to add content use the Volume /var/www/.

Build

To build the image, check out this repo and run:

docker build . -t 21x9/nginx-rtmp

Instead of build the image on your own you can also download the Images directly from hub.docker.com.

Start

To start the container run:

docker run --rm -v /local/path:/var/www/ -p 80:80 -p 1935:1935 -p 1835:1835 -p 1735:1735 21x9/nginx-rtmp

Please note, if you don't need the webserver you can omit the -v Parameter (including the Path) and -p 80:80. If you don't need certain RTMP endpoints you can omit the corresponding -p Parameters.

If you want to stream directly to Twitch (using the recode and/or direct2twitch Endpoints) you need to add your Twitch Steamkey using the --env Parameter (e.g. --env TWITCH_STREAMKEY=$MYSECRETTWITCHSTREAMKEY).

nginx-rtmp's People

Contributors

gpkvt avatar

Watchers

 avatar

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.