项目作者: jordicenzano

项目描述 :
Simple container with nginx+rtmp module that allows you to test a simple live streaming transmux scenario (RTMP -> HLS)
高级语言: Nginx
项目地址: git://github.com/jordicenzano/docker-live-job-nginx.git
创建时间: 2017-06-04T14:17:38Z
项目社区:https://github.com/jordicenzano/docker-live-job-nginx

开源协议:GNU General Public License v3.0

下载


docker-live-job-nginx

Simple container with nginx+rtmp module that allows you to test a simple live streaming transmux scenario (RTMP -> HLS)

Introduction

Containers are not the best options to keep TCP persistent connections open forever. But this has been developed as a simple POC to see what the nginx + RTMP module can do together.

Build

  • Ensure you have docker in your system
  • Just type make, or pull the container from DockerHub (docker pull jcenzano/livejob)

Test

  • Run the container locally make run
  • The container will expose ports 8080 (HLS) and 1935 (RTMP)
  • Create a RTMP stream pointing to rtmp://localhost:1935/live/streamname (You can use wirecast, ffmpeg, etc)
  • Using any HLS player (Safari, VLC, etc) read the following URL http://localhost:8080/hls/streamname.m3u8

THAT’S IT!!

Thanks