Open Offbeatmammal opened 6 years ago
For anyone out there who are also struggling with this. A viable option might be to change the format of the stream. For me the default format, which was 1080p MP4, was failing even with 1200 fragment retries. Then I tried downloading 1080p webm, and it worked.
Something along these command lines:
$ youtube-dl <url> -F
... pick the best format after the default one...
$ youtube-dl <url> -f <video-format>+bestaudio
if that doesn't work, try picking a lower/higher resolution video
I was just Google searching for this very option. It seems like it would be a very useful option, since retrying the same fragment in rapid succession doesn't yield any improvement (at least in my experience). However, a delay between retries would improve the chances of the missing fragment being retrieved.
Make sure you are using the latest version: run
youtube-dl --version
and ensure your version is 2018.10.29. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
Description of your issue, suggested solution and other information
when downloading a fragmented file I sometimes have intermittent issues. Setting fragment-retries to a high number does eventually brute force it, but would be nice if there was a way to either: (a) set a time delay between retries to avoid hammering the server (b) if possible skip the fragments after n retries but then reattempt to download just those specific fragment(s) at the end of the main download before assembling the eventual mp4 to optimize the download time and allow the intermittent issue to hopefully clear (iterative passes creating progressively higher fidelity download)