Would you please help me to record live stream as some segments with Youtube-dl?
For example record a live stream every 30mins automatically
63 Answers
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" 1 You can use streamlink to download a live stream to a file on your local machine:
streamlink -o output.mp4 <url> bestHere, <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.