Would you please help me to record live stream as some segments with Youtube-dl?
For example record a live stream every 30mins automatically
Would you please help me to record live stream as some segments with Youtube-dl?
For example record a live stream every 30mins automatically
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
)