OPFW-Replay is a Go-based service that captures and replays HLS (HTTP Live Streaming) video streams, converting them into downloadable MP4 files. This tool is particularly useful for creating video recordings from live HLS streams while maintaining both video and audio quality.
- HLS stream capture and buffering
- Real-time MP4 conversion
- Configurable buffer duration
- HTTP API for stream access
- Automatic stream cleanup
- Support for H.264 video and AAC audio codecs
- Download the pre-built binary from the
bin
directory - Create a working directory (e.g.,
/var/replay
) - Copy the binary to the working directory
- Create a configuration file (see below)
- Set up the systemd service (optional)
Create a configuration file (config.json
) in the same directory as the binary:
{
"panel": "/path/to/panel",
"duration": 30
}
Key | Description | Default |
---|---|---|
panel |
Path to the panel directory | - |
duration |
Buffer duration (in seconds) | 30 |