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

Adding ratebypass to download url #20

Closed
DavidBarishev opened this issue Apr 21, 2017 · 1 comment
Closed

Adding ratebypass to download url #20

DavidBarishev opened this issue Apr 21, 2017 · 1 comment

Comments

@DavidBarishev
Copy link

Hello again,
I noticed a very big speed gap between downloads with this library, and youtube dl which i took for reference.
Downloading itag 251, takes about 20 minute for 1 hour video, as with youtube dl - around 9 seconds.

I have dug a bit in their code, and found that an option is missing from the final stream url, which is 'ratebypass=true',and i confirmed that adding it, allows YouTube to send data at constant speed (usually is first 40 seconds at max speed, rest at watching speed).The parameter is present both at dash and non dash streams.

Relevant code in youtube dl - https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/youtube.py#L1644

@Tyrrrz
Copy link
Owner

Tyrrrz commented Apr 21, 2017

Thank you for the find

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants