youtube-dl record live stream segmentation
I have been able to capture live webstreams with youtube-dl using this command:
youtube-dl -f best "stream url" -o "path to output file"
You can use streamlink
to download a live stream to a file on your local machine:
streamlink -o output.mp4 <url> best
Here, <url>
can be a YouTube live stream URL.
You could wrap this call in a script that is periodically started (e.g. via cron
)
Try my ee.yrewind
utility. You can find it on Github.
This program can download required time interval of any Youtube livestream.