Streamloop is a cli tool that uses streamlink to actively monitor and record a channel when it goes live.
unix- python
- streamlink
- twitch
- afreecatv
-
kickcoming soon™ -
chzzkcoming soon™ -
youtubecoming soon™
- Download the script and make it executable:
posix
wget https://github.com/kpg-anon/streamloop/raw/main/streamloop.sh && chmod +x streamloop.sh
python (requires argparse)
wget https://github.com/kpg-anon/streamloop/raw/main/streamloop.py && chmod +x streamloop.py
pip install argparse
- Modify your output directory:
OUTPUT_BASE_PATH=~/path/to/STREAMS
- Set your streamlink options:
STREAMLINK_OPTIONS_TWITCH='--twitch-proxy-playlist=https://eu2.luminous.dev --twitch-disable-ads'
STREAMLINK_OPTIONS_AFREECATV='--stream-segment-timeout 90'
Usage: ./streamloop.sh -p <platform> -u <username> [-q <quality>] [-r <retry>]
-p Platform (twitch or afreecatv)
-u Username on the platform
-q Quality of the stream (default: best)
-r Retry interval in seconds (default: 180)
Currently the script is preconfigured to work with the custom streamlink-ttvlol Twitch extractor. You'll want to install that in order to block ads from your Twitch recordings.
-
create python version - add support for kick, chzzk and youtube