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
Youtube download limited to 25 kb/s #7716
Comments
When I made my own youtube vid downloader (directly from the googlevideo links not manifest), and it was limited to 50kb/s per host, but then I did parallel downloading, and it seemed YouTube only limits speed for individual hosts not ip. if this issue becomes widespread then I suggest adding parallel downloading, which isn't heavy on memory if you iterate through small chunks. I recommend 10-20 parallel downloaders (using asyncio.gather(*tasks) for example) edit: misread, saw proxy worked for you, I guess YouTube maybe blacklisted ur ip for too much scraping |
I can provide access to allow you to reproduce the bug @pukkandan As with the other nsig-related limitations (although that doesn't seem to be what you're talking about), it's a problem that only occurs for certain people and is difficult to reproduce. But in my case, the problem is systematic and I can provide the tools to enable you to check this. |
This is all that the |
@triplesixman Try this after getting a fresh ip from your ISP. |
@triplesixman I'm guessing you are running yt-dlp on a server and mass downloading stuff? |
I have a fixed ip so it's not possible.
Same thing with my personal IP, unfortunately. |
Usually they ban the whole IP range, you should try using a mobile hotspot connection to test things out. |
Yup as shown under proxy it works. But I dare to hope that we can find a solution as for this similar topic I opened in the past ytdl-org/youtube-dl#29326 |
Not sure what solution can be for an IP ban other then proxy/new ip !! |
It is not a complete ban. They can still play on browser without throttling. So there is possibility of some solution. We are investigating the details in DMs. Will update when there's something concrete. |
I was away for 3 days after this topic was created, and since my return I've had no more limitations from youtube. I will reopen a topic with more details if a new problem occurs. Thanks |
Hello @pukkandan , it happens again, the limitation is 210kb/s (and no longer 25 kb/s as was the case a few days ago). On the browser (in private browsing), loading is also slow. If I'm connected to an google account, it's very fast.
If needed, the contents of the command with --dump-pages. |
Just wanted to add that this has also been happening to me for at least a few months now sadly. Definitely being throttled as download speed from other sites is much, much higher, much more reasonable speeds. Limited to just about the same speed as triplesixman. Thanks for making this post and others here trying to help find a solution. |
Was trying to edit previous post with some hopefully useful additional information but the edit isn't saving for some reason. But just some things I wanted to add. I think it may be possible to reproduce for everyone, you just need to scrape enough for it to happen to you lol We just don't know what exactly that 'threshold' (or thresholds) is to trigger that 'flag' in their system to throttle the user. And then there may be exceptions for certain locations where they're more lax and lenient before the throttles kick in. Remember this is YouTube, with some very impressive algorithms for things like recommended videos, it's scary how good it is. So this throttling system of theirs could be pretty complex. Notice how triplesix's speeds actually started to increase after not downloading for a few months then the throttle returned shortly after, which was very interesting and it's hard to make sense of why it works like that. So it could be some kind of 'monitoring' going on for previously throttled IPs for whatever reason, maybe they're teaching the system, who knows. It's not crazy to speculate that they may have some kind of system set up to watch certain users who may be scraping for what could be months before taking action and throttling, I've seen it being done in online games with very small communities of just a few thousand with the lead developer and creator of the game admitting it himself. But I can tell you that the throttle seems to kick in after scraping thousands of videos or maybe just X amount of bandwidth usage in Y time. It's definitely a lot compared to the average yt-dl user probably so that may be why some are finding it difficult to reproduce in a short amount of time. It took me months of daily archiving for the throttles to hit me whereas for others the throttle may kick in much sooner for whatever reason. |
This comment was marked as resolved.
This comment was marked as resolved.
Still limited to 30kb/s. Currently yt-dlp is no longer functional on my side with YouTube, even when changing IP (proxy or VPN), I sometimes get a 403 error. |
this worked for me thank you! |
DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE
Checklist
Provide a description that is worded well enough to be understood
Since yesterday, youtube video downloads are all blocked at 25kb/s on my machines. The problem doesn't recur with a proxy. I didn't have any particular problems the days before. 25 kb/s without proxy, 4-5Mb/s with proxy
Provide verbose output that clearly demonstrates the problem
yt-dlp -vU <your command line>
)'verbose': True
toYoutubeDL
params instead[debug] Command-line config
) and insert it belowComplete Verbose Output
The text was updated successfully, but these errors were encountered: