- Build the Docker image and run the server locally
docker build -t stream-server .
docker run -p1935:1935 -it stream-server
or run this convienence script
- Stream to the server at rtmp://localhost:1935/live/stream You can run the provided test_stream.sh script to stream a local file to the server at rtmp://localhost:1935/live/stream using ffmpeg.
# replace the video file path with one on your file system
# the local file will be streamed to rtmp://localhost:1935/live/stream
sh test_stream.sh data/sample_football_video.mp4
- View the stream in your media player.
Point your video player to rtmp://localhost:1935/live/stream and press play. You should see the video playing in your media player.