Skip to content

dnetcrawler/live-streaming-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live Streaming Demo

Author: James Jones jam.jones@nginx.com

Usage

Prerequisites

  • terraform
  • ansible
  • ffmpeg
  • Nginx Plus repo access cert and key
  • Digital Ocean Account with a ssh key imported

Setup

  1. Clone repo
  2. Copy your Nginx repo access cert and key to './certs'
  3. In './terraform/variables.tf' add the key name to data "digitalocean_ssh_key" "ssh_keys".

Example:

variable "ssh_keys" {
  type = set(string)
  default = [
    "myKeyName"
  ]
}
  1. mkdir ~/.private
  2. Create a file '~/.private/do_token' with mode '0600' and put your Digital Ocean token in it.
  3. Update IP of the ingest node in stream.sh note: The deploy scrip will down the video for you: http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_60fps_stereo_abl.mp4
  4. Start the stream ./stream.sh
  5. Playback using the following address rtmp://<lb-node-ip>/live/bbb

To Deploy

  1. ./deploy.sh

To Destroy

./destroy.sh

About

Nginx Live Streaming Demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 87.7%
  • Shell 9.2%
  • Makefile 3.1%