GithubHelp home page GithubHelp logo

nginx-rtmp-stream's Introduction

nginx-rtmp-stream

Dockerfile for streaming to YouTube, Livecoding, and Twtich simultaneously.

Usage

  1. Clone this repository and change the values for YouTube, Livecoding, and Twitch keys within nginx.conf.
  2. Build the image (you'll need to rebuild the image any time you make modifications to nginx.conf) using docker build -t nginx-rtmp-stream ..
  3. Create the directories logs and vids somewhere, keep note of their location.
  4. Run the docker image using the following: docker run -p 1935:1935 -p 8080:80 -v /path/to/host/logs:/logs -v /path/to/host/vids:/vids --rm nginx-rtmp-latest.
  1. Stream your content to rtmp://localhost:1935/all/name with name being your stream's name (duh). In OBS (or OBS Studio) name will be your stream key.
  2. You should be able to view the output content for each individual stream by using VLC, MPV, or any other video player with the ability to view network streams by using the streaming service with your stream name. For example mpv rtmp://localhost:1935/livecoding/name will give the output of the Livecoding stream.

Notes

Obviously if you do not want to use a service simply turn off its block (live on to live off) and also remove the ffmpeg command within application all โ€ฆ if it has one.

Do the same for the recording of videos; if you don't need that just remove the mount and turn off the recorder altogether (record all to record off).

You may need to change the ingest URLs in nginx.conf; Be sure to double check if the ingest URLs are different and need to be changed before moving on.

nginx-rtmp-stream's People

Watchers

 avatar

Forkers

zengfanyao

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.