https://github.com/coalaura/opfw-replay
Stream instant replay service in golang.
https://github.com/coalaura/opfw-replay
Last synced: 3 months ago
JSON representation
Stream instant replay service in golang.
- Host: GitHub
- URL: https://github.com/coalaura/opfw-replay
- Owner: coalaura
- Created: 2025-02-16T01:56:25.000Z (3 months ago)
- Default Branch: master
- Last Pushed: 2025-02-16T02:57:21.000Z (3 months ago)
- Last Synced: 2025-02-16T03:18:16.826Z (3 months ago)
- Language: Go
- Size: 10.8 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OPFW-Replay
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.
## Features
- 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## Installation
1. Download the pre-built binary from the [`bin`](bin/replay) directory
2. Create a working directory (e.g., `/var/replay`)
3. Copy the binary to the working directory
4. Create a configuration file (see below)
5. Set up the systemd [service](replay.service) (optional)## Configuration
Create a configuration file (`config.json`) in the same directory as the binary:
```json
{
"panel": "/path/to/panel",
"duration": 30
}
```|Key|Description|Default|
|---|---|---|
|`panel`|Path to the panel directory|-|
|`duration`|Buffer duration (in seconds)|`30`|