Video streaming server that supports RTMP, RTMPS, HLS, and DASH streams
1.1K
Docker image for video streaming server that supports RTMP, RTMPS, HLS, and DASH streams.
This Docker image can be used to create a video streaming server that supports RTMP, HLS, DASH out of the box. It also allows adaptive streaming and custom transcoding of video streams. All modules are built from source on Debian and Alpine Linux base images.
Current Image is built using:
This image was inspired by similar docker images from tiangolo and alfg. It has small build size, adds support for HTTP-based streams and adaptive streaming using FFmpeg.
http://<server ip>:<server port>/stats./usr/local/nginx/html/players.For your development convienence a devcontainer was provided utilizing Ubuntu-22.04 (Jammy).
Use Docker Compose to build and run the container with the following command:
docker-compose up -d
docker run -d -p 1935:1935 -p 8080 kneeki/rtmp-server
To run with custom conf file where custom.conf is the new conf file for Nginx:
docker run -d -p 1935:1935 -p 8080 -v custom.conf:/etc/nginx/nginx.conf kneeki/rtmp-server
Stream live RTMP content to:
rtmp://<server ip>:1935/live/<stream_key>
where <stream_key> is any stream key you specify.
Configure OBS to stream content:
Go to Settings > Stream, choose the following settings:
rtmp://<server ip>:1935/live.testUsing VLC:
rtmp://<server ip>:1935/live/<stream-key>
Replace <server ip> with the IP of where the server is running, and
<stream-key> with the stream key you used when setting up the stream.http://<server ip>/hls/<stream-key>.m3u8 and
http://<server ip>/dash/<stream-key>_src.mpd respectively.Using provided web players:
The provided demo players (http://localhost/players) assume the stream-key is called test and the player is opened in localhost.
http://localhost/players/rtmp.htmlhttp://localhost/players/hls.htmlhttp://localhost/players/hlsjs.htmlhttp://localhost/players/dash.htmlhttp://localhost/players/rtmp_hls.htmlNotes:
src attribute in the video tag in the html file. You can then mount the modified files to the container as follows:
docker run -d -p 1935:1935 -p 8080 -v custom_players:/usr/local/nginx/html/players kneeki/rtmp-server
custom_players is the directory holding the modified html files.Released under MIT license.
Content type
Image
Digest
sha256:e2bd73754…
Size
102.2 MB
Last updated
about 2 years ago
docker pull kneeki/rtmp-server