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 dockeirorock/streaming-serverAlternatively you can build the image yourself.
git clone https://github.com/dockeiro/docker-streaming-server.git && \
cd docker-streaming-server && \
ARCH=$(dpkg --print-architecture) && \
echo ARCH loaded: ${ARCH} && \
docker build --no-cache \
--build-arg IMAGE=dockeirorock/streaming-server \
--build-arg BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
--build-arg VERSION=$(cat VERSION) \
--build-arg VCS_REF=$(git rev-parse --short HEAD) \
--build-arg VCS_URL=$(git config --get remote.origin.url) \
--tag dockeirorock/streaming-server:$(cat VERSION)-${ARCH} \
--rm .Start container using:
docker run --detach --restart always \
--name streaming-server \
--hostname streaming-server \
--publish 1935:1935 \
--publish 8080:8080 \
--publish 8443:8443 \
dockeirorock/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 Streamingbutton
- Add media source
-
Go to
http://localhost:9999URL address in your browser to view the media live.