Giter Site home page Giter Site logo

church-rtmp-server's Introduction

Streaming server

A multicast server using Nginx.

Prerequisites

Installation

To install the prerequisites above you can navigate to each link above and follow the instructions. Alternatively, you can use a package manager like Homebrew or Chocolatey. Here are some quick scripts to install the prerequisites above with either of these two package managers.

Homebrew:

brew cask install \
    virtualbox \
    vagrant &&
brew install ansible

Chocolatey:

cinst virtualbox vagrant -y

Configuration

To configure the server, you will need to fetch RTMP urls and stream keys for the services you want to stream to and add them to the list of keys in the bootstrap.yml file. For example, if you'd like to stream to Facebook and YouTube at the same time, find the URLs and stream keys for both and replace this:

streams:
    - url: "webcast.sermonaudio.com/sa"
      key: "some-sa-key"
   

With This:

streams:
    - url: "rtmp.facebook.com/live1"
      key: "some-facebook-key"
    - url: "a.rtmp.youtube.com/live2"
      key: "some-youtube-key"

You can also add any number of other RTMP stream provider endpoints by just adding another key in the map.

streams:
    - url: "rtmp.facebook.com/live1"
      key: "some-facebook-key"
    - url: "a.rtmp.youtube.com/live2"
      key: "some-youtube-key"
    - url: "rtmp.twitch.com/live3"
      key: "some-twitch-key"
    - url: "rtmp.example.com/live4"
      key: "some-example-key"

All of the keys above are example keys and don't reflect what the URLs or keys will actually be. Look at your stream providers documentation to get the URL and key you'll need.

Installation

Clone the repository, make your config changes, and run vagrant up in your terminal. The scripts should run and build out your server automatically!

Using the server

Open up your OBS streaming settings and point your URL to rtmp://10.0.1.15/live, type in something for your stream key. It doesn't matter what your local stream key is. Start your stream and verify that the services you configured are receiving the stream.

Sources:

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.