Docker image for video streaming server that supports RTMP, RTMPS, HLS, and DASH streams.
100K+
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 & RTMPS* Ingest, RTMP & RTMPS (via Stunnel) Pushing, and RTMP, HLS & DASH playback 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.
http://<server ip>:<server port>/stats./usr/local/nginx/html/players.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.
docker run -d -p 1935:1935 -p 1936:1936 -p 8080:8080 -e PUID=$UID -e PGID=0 -e SSL_DOMAIN='rtmp.domain.loc' -v /your/local/assets/:/assets jamiephonic/rtmps-hls-server:latest
When you start the container, the default players and configuration files will be copied into /your/local/assets/ to allow you to easily access and edit them.
This will only be done once when you first start the container. If you want to restore the default configs, delete /your/local/assets/.initialized and restart the container.
For more examples, see the Wiki
rtmp://<server ip>:1935/live/<stream_key>
where <stream_key> is any stream key you specify.
rtmp://<server ip>:1935/live.testSee the Wiki for how to stream to the server with RTMPS
Using 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>:8080/hls/<stream-key>.m3u8 and
http://<server ip>:8080/dash/<stream-key>_src.mpd respectively.Using provided web players:
The provided demo players assume the stream-key is called test and the player is opened from localhost.
http://<server ip>:8080/players/rtmp.htmlhttp://<server ip>:8080/players/hls_basic.htmlhttp://<server ip>:8080/players/hls.htmlhttp://<server ip>:8080/players/dash.htmlNotes:
src attribute in the video tag in the html file and then reload the page.Released under MIT license.
GitHub repo: https://github.com/JamiePhonic/rtmp-hls-server.git
Docker Hub image: https://hub.docker.com/r/jamiephonic/rtmps-hls-server
Content type
Image
Digest
sha256:be5f3dcba…
Size
77.7 MB
Last updated
about 4 years ago
docker pull jamiephonic/rtmps-hls-server