-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
[9.3.0] Formats Urls download speed very slow. (Adaptive format) #652
Comments
After doing some investigation found that , throttle depends on the file size, if file size is is low like 1MB or 2MB it will take much longer to throttle and stuck to maximum speed upto 100-200kbps , if file size is like 30Mb it will start with speed of upto 100-200kbps after few chunks it will get faster and to the maximum speed. |
The adaptive formats need to be downloaded in chunks, otherwise you will get throttled. YouTube.js/src/utils/FormatUtils.ts Line 58 in d48b9d0
|
I'm not directly downloading , I created API , chunk_size can be modified in formats urls to API response? |
Steps to reproduce
const youtube = await Innertube.create({
retrieve_player: false,
});
let info = await youtube.getBasicInfo(id, "WEB");
let formats = info.streaming_data.formats
Failure Logs
Expected behavior
Normal download speed.
Current behavior
Normal downloading speed when download using the format url .
Version
Default
Anything else?
Adaptive formats download speed is very slow , throttled bellow 100kbps for WEB client. I was previously using ANDROID Client that was very fast. But as of now ANDROID Client not working properly so fallback to WEB client but facing this speed issue.
No VPN/Proxy used.
Is this only me or someone else having the same behaviour?
Checklist
The text was updated successfully, but these errors were encountered: