Record HLS streams and replay them afterwards.
streamrr (or streamrr.exe on Windows) from a terminal.streamrr to your $PATH to run it from anywhere.)cargo install --git https://github.com/THEOplayer/streamrr.git
This will build the streamrr CLI tool, and then add it to your $PATH.
The streamrr CLI has two main commands: record and replay.
streamrr record will record an HLS VOD or live stream to a directory on your local disk.
streamrr record https://example.com/mystream.m3u8 recordings/mystream/
This will start recording the first variant stream of the HLS master playlist, along with all it segments. If it’s an HLS live stream, the tool will repeatedly fetch the latest playlist, and download all newly added segments.
Run streamrr record --help for the full instructions.
streamrr replay will spawn a local HTTP server and serve a previously recorded stream.
streamrr replay recordings/mystream/
The replayed stream is available at http://localhost:8080/index.m3u8.
Run streamrr replay --help for the full instructions.
All files necessary to replay the stream are saved directly to the given recording directory. You can easily share these recordings with others by putting them in an archive:
tar -cvf myrecording.tar recordings/mystream/
This software is distributed under the BSD 3-Clause Clear License. See the license file for more information.