Record multiple Twitch streams at the same time and manage them from a web dashboard. Inspired by Junian's script.
- Install requirements:
pip3 install -r requirements.txt
- Create a
.env
in the project root withCLIENT_ID
andCLIENT_SECRET
from the Twitch Developer Console. - Run
./bin/start
to connect to Twitch and start up the server - Open http://localhost:5001, enter the username you want to record and hit Start. You should see some console output showing the download progress.
Streamlink pipes HLS streams from Twitch to a raw recording file in out/recording/{streamer_name}/{stream_name}.mp4
. These recordings are passed through ffmpeg and stored in out/processed/{streamer_name}/{stream_name}.mp4
. This application is a wrapper around those subprocesses.
The web dashboard keeps track of stream recordings and provides an interface for starting/stopping streams and manually processing recordings mid-stream.