twitch-dl
twitch-dl copied to clipboard
Add the ability to download livestreams while the streamer is live
There's a program called pyinstalive which allows you to download instagram livestreams as they're being livestreamed would be nice to have this for twitch to easily record the livestreams even if the streamer has vods disabled
@ihabunek do you have ideas on how to implement this?
@a37h No, I'd need to investigate. I don't have time for this right now.
Currently you can download ongoing streams by listing the user's videos, the live stream should be listed first, and downloading that. But it will only download upto the current time and stop.
Streamlink seems to have a solution:
https://streamlink.github.io/cli.html#cmdoption-o
$ ffmpeg -i $(yt-dlp --format best --get-url https://www.twitch.tv/hungry) -c copy -f matroska file:livestream.mkv