Skip to content
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

Open
4 tasks done
Croodo opened this issue Apr 28, 2024 · 3 comments
Open
4 tasks done

[9.3.0] Formats Urls download speed very slow. (Adaptive format) #652

Croodo opened this issue Apr 28, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@Croodo
Copy link

Croodo commented Apr 28, 2024

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

none

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

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.
@Croodo Croodo added the bug Something isn't working label Apr 28, 2024
@Croodo Croodo changed the title [9.3.0] Formats Urls download speed very slow. [9.3.0] Formats Urls download speed very slow. (Adaptive format) Apr 28, 2024
@Croodo
Copy link
Author

Croodo commented Apr 28, 2024

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.

@LuanRT
Copy link
Owner

LuanRT commented Apr 29, 2024

The adaptive formats need to be downloaded in chunks, otherwise you will get throttled.

const chunk_size = 1048576 * 10; // 10MB

@Croodo
Copy link
Author

Croodo commented Apr 29, 2024

I'm not directly downloading , I created API , chunk_size can be modified in formats urls to API response?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants