LiveStreamingServer
Overview
LiveStreamingServer is a simple web server which serves a simple video player to play an HLS stream. This server utilizes FFmpeg as a server to convert rtmp to hls and uses Video.js as the video player
Contents
Required Installations
Dependencies
Server Options
Usage:
LiveStreamingServer.exe -ffmpeg <path> -output <path> [-host <name>] [-ffmpegport <port:8889>] [-fps <fps:30>] [-keyframe <frames:30>] [-listsize <size:3>] [-hlswrap <count:2>]
Options:
Option | Required? | Default Value | Description |
---|---|---|---|
--help, -h | No | Displays a help message detailing these options. | |
--ffmpeg, -f | Yes | Full path to ffmpeg.exe. | |
--output, -o | Yes | Full path to file output. | |
--host, -d | No | Hostname for web server. | |
--ffmpegport, -p | No | 8889 | Port for ffmpeg server. |
--fps, -r | No | 30 | Target FPS output. |
--keyframe, -k | No | 30 | Frames until key frame. This has a large effect on the stream delay. The formula is roughly 2 to 3 * keyframe / fps. |
--listsize, -l | No | 3 | HLS list size. This is how many video chunks will be listed to the client. |
--hlswrap, -w | No | 2 | HLS file wrap. This is how many video chunks will be created before wrapping around and overwriting old files. |
OBS Setup
- Download OBS from https://obsproject.com/
- Go to Settings > Stream
- Change Service to
Custom...
- Change Server to
rtmp://<ip address>:8889/live/app
- Clear Stream key and uncheck Use authentication
- Start LiveStreamingServer.
- Click Start Streaming.