Skip to content

NGINX server with rtmp module for HLS live streaming

Notifications You must be signed in to change notification settings

webresto/video-streamer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NGINX RTMP Dockerfile

This Dockerfile installs NGINX configured with nginx-rtmp-module, ffmpeg and some default settings for HLS live streaming.

Note: in the current state, this is just an experimental project to play with RTMP and HLS.

How to use

  1. Build and run the container (docker build -t nginx_rtmp . & docker run -p 8080:80 --rm nginx_rtmp).

  2. Stream your live content to rtmp://localhost:1935/encoder/stream_name where stream_name is the name of your stream.

  3. In Safari, VLC or any HLS compatible browser / player, open http://localhost:8080/hls/stream_name.m3u8. Note that the first time, it might take a few (10-15) seconds before the stream works. This is because when you start streaming to the server, it needs to generate the first segments and the related playlists.

  4. run this command for get RTSP stream ffmpeg -stats -loglevel quiet -err_detect ignore_err -fflags +genpts -stimeout 5000000 -rtsp_transport tcp -i rtsp://strem_url -map_metadata -1 -f flv -map 0:0 -codec:v copy -vsync 0 -copyts -start_at_zero -an rtmp://localhost:1935/encoder/stream

Links

About

NGINX server with rtmp module for HLS live streaming

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • XSLT 79.6%
  • HTML 11.5%
  • Dockerfile 8.9%