I want to download certain sections from a youtube stream, currently I'm using this command to get the job done:
yt-dlp --download-sections "*30:15-1:40:25" $LINK
the problem is that if the connection is lost just for a few minutes, the download has to start all over again, I'm also aware of this command:
youtube-dl --youtube-skip-dash-manifest -g "URL"
The two url outputs gets saved into urls[] in python and:
ffmpeg -y -ss "00:41:10" -i urls[0] -ss "00:41:10" -i urls[1] -map 0:v -map 1:a -ss 5 -t "01:50:11" -c:v libx265 -c:a aac ../Clips/stream.mkv
That also has the problem of losing all downloaded if the connection is lost for a few minutes
I can't download the whole stream because it would take forever, so simply using:
youtube-dl $LINK
or
yt-dlp $LINK
it's not an option even though they offer reconnecting