dash-mpd-cli icon indicating copy to clipboard operation
dash-mpd-cli copied to clipboard

Parallelize the segment downloads?

Open Waffleboy opened this issue 1 year ago • 2 comments

Just wondering if there's a way to fetch the video segments in parallel? Think its going 1 by 1 now right now which is quite slow for large files

Waffleboy avatar Sep 23 '24 05:09 Waffleboy

This is not currently implemented. It's a common feature in other downloaders, but I am a little concerned that content servers will one day (it would be trivial to do so) detect access patterns that are very different from a normal web client and block the corresponding clients. It does make downloads slower, but remains supportable in my experience. I keep this issue open as a wishlist item, however.

emarsden avatar Sep 24 '24 11:09 emarsden

This is not currently implemented. It's a common feature in other downloaders, but I am a little concerned that content servers will one day (it would be trivial to do so) detect access patterns that are very different from a normal web client and block the corresponding clients. It does make downloads slower, but remains supportable in my experience. I keep this issue open as a wishlist item, however.

@emarsden That's a fair point! However, it's worth noting that dash-mpd-cli currently downloads all audio segments first and then all video segments. A normal client would download the corresponding audio and video segments simultaneously. Thus, currently, dash-mpd-cli doesn't use the access pattern of a normal client anyway. I'm pretty sure that providing an option for multiple download threads for all segments could still be a beneficial feature for many users who want to trade safety for speed.

sr0lle avatar Sep 21 '25 16:09 sr0lle

wow this is a pretty major omission, jesus. any serious DASH implementation MUST support threaded downloads, its really not an option because many servers intentionally throttle single threads

3052 avatar Dec 08 '25 12:12 3052