A robust way of streaming media content live using the NGINX web server and its RTMP module.
Builds of the image are available on Docker Hub.
docker pull codeworksio/streaming-server
Alternatively you can build the image yourself.
docker build --tag codeworksio/streaming-server \
github.com/codeworksio/docker-streaming-server
Start container using:
docker run --detach --restart always \
--name streaming-server \
--hostname streaming-server \
--publish 1935:1935 \
--publish 8080:8080 \
--publish 8443:8443 \
codeworksio/streaming-server
-
Start the streaming server and consumer from the command line
cd ./documents/examples docker-compose up -d
-
Use Open Broadcaster Software to stream your content
- Add media source
Sources
>+
>Video Capture Device
- Configure streaming server
Controls
>Settings
>Stream
- Stream type:
Custom Streaming Server
- URL:
rtmp://localhost/live
- Stream key:
test
- Stream type:
- Press
Start Streaming
button
- Add media source
-
Go to
http://localhost:9999
URL address in your browser to view the media live.