TheFrenchGhosty / TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection

The ultimate collection of scripts for YouTube-DL.
GNU General Public License v3.0
2.32k stars 126 forks source link

Enable --concurrent-fragments #81

Closed ridgewell closed 2 years ago

ridgewell commented 2 years ago

Youtube Dash formats can be slow to download as they download fragment-by-fragment. This is not throttling but a design of Dash formats.

Does it make sense to enable yt-dlp's --concurrent-fragments (-N) with 4 or 8 threads to mitigate this issue? This mitigates the slowness of single-threaded download of dash files without requiring the use of an external downloader such as aria2.

Thank you for looking into this.

TheFrenchGhosty commented 2 years ago

This is a good idea from a download speed perspective, but I'm a bit scared that this will cause some bugs/weirdness when merging the fragments. So I'm not sure it's "safe".

TheFrenchGhosty commented 2 years ago

After running my scripts for a while, I discovered that it's actually needed, otherwise things end up timing out.

Done in https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection/commit/4e3a1bc7d6fb03ef4e8cd182139a56c2493de128