made to record livestreams with the help of streamlink
100K+
Automated Dockerfile to record livestreams with streamlink
This is a Docker Container to record a livestream. It uses the official Python Image with the Tag buster , installs streamlink and uses the Script streamlink-recorder.sh to periodically check if the stream is live.
To run the Container:
$ docker run -v /path/to/vod/folder/:/home/download -e streamLink='' -e streamQuality='' -e streamName='' -e streamOptions='' -e uid='' -e gid='' lauwarm/streamlink-recorder
Example:
$ docker run -v /home/:/home/download -e streamLink='twitch.tv/twitch' -e streamQuality='best' -e streamName='twitch' -e streamOptions='--twitch-disable-hosting' -e uid='1001' -e gid='1001' lauwarm/streamlink-recorder
/home/download - the place where the vods will be saved. Mount it to a desired place with -v option.
/home/script - the place where the scripts are stored. (entrypoint.sh and streamlink-recorder.sh)
/home/plugins - the place where the streamlink plugins are stored.
streamLink - the url of the stream you want to record.
streamQuality - quality options (best, high, medium, low).
streamName - name for the stream.
streamOptions - streamlink flags (--twitch-disable-hosting, separated by space)
uid - USER ID, map to your desired User ID (fallback to 9001)
gid - GROUP ID, map to your desired Group ID (fallback to 9001)
The File will be saved as streamName-YearMonthDay-HourMinuteSecond.mkv
Content type
Image
Digest
sha256:153520f90…
Size
703.7 MB
Last updated
5 months ago
docker pull lauwarm/streamlink-recorder