twitch-dl icon indicating copy to clipboard operation
twitch-dl copied to clipboard

Add the ability to download livestreams while the streamer is live

Open KillauraHacks opened this issue 2 years ago • 5 comments

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

KillauraHacks avatar May 19 '22 00:05 KillauraHacks

@ihabunek do you have ideas on how to implement this?

a37h avatar Jul 12 '22 23:07 a37h

@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.

ihabunek avatar Jul 13 '22 10:07 ihabunek

Streamlink seems to have a solution:

https://streamlink.github.io/cli.html#cmdoption-o

NoBeerAndNoTV avatar Aug 07 '22 14:08 NoBeerAndNoTV

$ ffmpeg -i $(yt-dlp --format best --get-url https://www.twitch.tv/hungry) -c copy -f matroska file:livestream.mkv

garoto avatar Aug 07 '22 15:08 garoto