I need help on saving livestreams automatically
See original GitHub issueIssue
- This is not a bug report, feature request, or plugin issue/request.
- I have read the contribution guidelines.
Description
First of all sorry for my English level 😃
So, I’m currently using the following command to keep a broadcaster on “watch mode” and start downloading the livestream when they go live:
streamlink https://www.website.tv/username best --retry-max 99999999 -o filename.ts, --output filename.ts
The problem is that I can only capture a single live per broadcaster at time. If the person starts a livestream, ends it and then starts a new livestream minutes later, Streamlink will only capture the first one.
I would like to know if is there command which after the livestream ends Streamlink will automatically start searching again for a new live from the same person. Every new livestream has a different .m3u8 url so I can’t use a command to keep trying to reconnect to the old livestream source 😦 I have to get the new one.
There’s a list of codes but I couldn’t find a way to make any of them work: https://streamlink.github.io/cli.html
Thanks in advance.
Love Streamlink? Please consider supporting our collective. Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top GitHub Comments
I think the easiest way is to use python and write a main.py which contains: while True: streamlink https://www.website.tv/username best --retry-max 99999999 -o filename.ts, --output filename.ts time.sleep(1)
Oh sorry I made a mistake. But since you donnot need the m3u8, just use a loop so that the streamlink process can be run all the time. I wonder whether it is ok, and I use ffmpeg to record m3u8 the same way to get videos when losing Internet connections.