Go to file
an 9a89162f3f
continuous-integration/drone/push Build is passing Details
dash parameters
2020-07-08 16:25:03 +02:00
static first commit 2016-10-23 18:49:28 -07:00
.drone.yml add .drone.yml 2020-07-07 14:23:16 +02:00
Dockerfile use phusion/baseimage:bionic-1.0.0 2020-07-07 14:21:39 +02:00
LICENSE use phusion/baseimage:bionic-1.0.0 2020-07-07 14:21:39 +02:00
README.md changed README.md 2020-07-07 14:31:01 +02:00
nginx.conf dash parameters 2020-07-08 16:25:03 +02:00
player.html add dash config 2020-07-08 15:42:37 +02:00

README.md

Build Status


docker-nginx-rtmp

A Dockerfile installing NGINX, nginx-rtmp-module and FFmpeg from source with default settings for HLS live streaming. Built on Ubuntu 18.04.

  • Nginx 1.13.9 (compiled from source)
  • nginx-rtmp-module 1.2.1 (compiled from source)
  • ffmpeg 3.4.2 (compiled from source)
  • Default HLS settings (See: nginx.conf)

Usage

Server

  • Pull docker image and run:
docker pull alfg/nginx-rtmp
docker run -it -p 1935:1935 -p 8080:80 --rm alfg/nginx-rtmp

or

  • Build and run container from source:
docker build -t nginx-rtmp .
docker run -it -p 1935:1935 -p 8080:80 --rm nginx-rtmp
  • Stream live content to:
rtmp://<server ip>:1935/stream/$STREAM_NAME

OBS Configuration

  • Stream Type: Custom Streaming Server
  • URL: rtmp://localhost:1935/stream
  • Stream Key: hello

Watch Stream

  • In Safari, VLC or any HLS player, open:
http://<server ip>:8080/live/$STREAM_NAME.m3u8
  • Example: http://localhost:8080/live/hello

FFmpeg Build

ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 5.3.0 (Alpine 5.3.0)
  configuration: --enable-version3 --enable-gpl --enable-nonfree --enable-small --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libvpx --enable-libtheora --enable-libvorbis --enable-libopus --enable-libfdk-aac --enable-libass --enable-libwebp --enable-librtmp --enable-postproc --enable-avresample --enable-libfreetype --enable-openssl --disable-debug
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100

  configuration:
    --enable-version3
    --enable-gpl
    --enable-nonfree
    --enable-small
    --enable-libmp3lame
    --enable-libx264
    --enable-libx265
    --enable-libvpx
    --enable-libtheora
    --enable-libvorbis
    --enable-libopus
    --enable-libfdk-aac
    --enable-libass
    --enable-libwebp
    --enable-librtmp
    --enable-postproc
    --enable-avresample
    --enable-libfreetype
    --enable-openssl
    --disable-debug

Resources