-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is download speed throttled by YouTube? #37
Comments
Probably ever since I have used this library, I occasionally had downloads that ran at speeds of ~65k, and just restarting the download (thanks to closing the channel), fixed this problem every single time. I can't really tell if the frequency of those slow downloads has increased lately. |
After reading through the youtube-dl issue I got to this working implementation and a notable comment from the pytube maintainer. |
@fabi321 thanks for the links, looks interesting. I'll have a look at it to see if we can integrate that in |
Just found this while reading some |
I would really be happy if you guys implemented a solution to this, currently my app makes its users wait more than 5+ minutes on average for a video that could be downloaded in 30 secs or so. I wish I knew enough rust to help but I am so new so all I can do currently is to wish you all the best and try and take more attention to this issue from some helpful people |
I gonna have a look into a possible fix, like the one in youtube-dl. |
Is this issue fixed? edit: forked repo has fix: https://github.com/Discursif/rustube Edit: I dont think this fork is fixed anymore, downloads are still quite slow compared to pytube |
When I use this fork, the download "completes" immediately without actually downloading any part of the video, is it just me? |
@cjburkey01 The fix I provided works well on audio but I haven't tested on video so can't really tell but it seems to work for others and passes tests. |
The provided fix doesn't seem to work at all for me. Videos don't really download at all and just complete instantly. Downloading audio only streams is just as slow as without the fix. It seems like pytube and ytdl-core don't have this issue anymore. |
@mrvalk My Youtube Music terminal player uses my fork and works well (On audio only). Audio downloading shouldn't be slow from my experimentation. I don't know if YT-dl or pytube found a better fix but that's probable. |
I am still facing extremely slow downloads. A 1MB webm audio file takes an entire minute to download, whereas ytdl-core does it in 1 or 2 seconds. |
Note that the fix that was used in Ytermusic doesn't work anymore there is probably some more reverse engineering to do on my side |
Is this fixed? I've used forked repo, but it's not working for me |
has there been any development on this? Downloads are still extremely slow, and maybe worth mentioning, that sometimes when downloading a few videos consecutively (or from a playlist, like my repo) it will pull a 403 error, which is quite inconvenient to work around |
To save bandwidth, google (YT) only loads some part of the video based on your internet connectivity (I suppose). I forked the repo and tried downloading it in parts, and it is MUCH faster, with just 4 parts it becomes If anyone wants this feature.. lmk I'll formalize stuff and create a PR. Edit: To optimize it further, we can make a complete pipeline to parallely try to merge the parts as soon as they finish downloading (but this won't give much advantage as the parts in the middle might now have finish downloading before other parts). One more edit: I misinterpreted the issue.. but I don't think my comment is far off :p |
that would be great. the speed is the main issue for this repo tbh |
The above SS shows download time for 1. "failed attempt" to download in parts, 2. default implementation 3. my wrapper to download in parts (10 parts in this case) @nednoodlehead I blindly implemented my solution.. but that does not seems to work... I'll have to dig in to fix this but I do not have much time in hand.. I'll try my best to create a PR asap |
Is this issue still not fixed yet? I ask because I tried this library today and my code was just not exiting! I even picked a video shorter than 1 minute to try to get the download to finish, but it just takes so long! |
Unfortunately I don't see this getting fixed (unless someone wants to convert all the yt-dlp logic in Rust). The best bet in my head for compatibility is just making a cli wrapper around that instead, a lot of work goes into keeping that up to date |
use rusty_ytdl. it is so much faster @Mintype @cjburkey01 |
pytube
(#1033) andyoutube-dl
(#29326) have open issues regarding YouTube throttling the download speed.It would be interesting to know if that also affects us!
This comment from
youtube-dl
has a potential solution.The text was updated successfully, but these errors were encountered: