YoutubeExplode: DownloadMediaStreamAsync taking too long

When using DownloadMediaStreamAsync to download even a short video it will use up to a minute to return. PS: It worked fine a few days ago.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 33 (18 by maintainers)

Commits related to this issue

Most upvoted comments

I’m not using YouTubeExplode here, but that doesn’t really work. It scales a bit and certainly helps with large files because the DASH throttle doesn’t kick in as fast (but we’re still talking several minutes with many connections to download an hour video, better than the hour it could take but not suitable for real-time). With youtube-dl: https://github.com/GieselaDev/Giesela/commit/222d41796d0318b0fd61472c7703751d0577d85e#commitcomment-27136405

Mixcloud has been doing this for a long time @Tyrrrz – similar to what you described. That’s why efficient Mixcloud downloaders use an approach by proxy and serving multiple client connections.

So good news, I guess. I quickly threw together a segmented downloader and it managed to download a 3:50 video in less than a second, compared to ~2 minutes from before.

I’ve given alpha4 a light test and it seems it downloads audio streams at full speed. I’ve tried out around 15 videos with lengths varying from a few seconds to a half hour and they all seem to be downloading just as fast as the muxed streams.

I’ll give some longer videos a try later, but right now everything seems to be working smoothly 👍