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

Download temporary direct YouTube media links in chunks #17278

Closed
ritiek opened this issue Aug 19, 2018 · 1 comment
Closed

Download temporary direct YouTube media links in chunks #17278

ritiek opened this issue Aug 19, 2018 · 1 comment

Comments

@ritiek
Copy link

@ritiek ritiek commented Aug 19, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.08.04
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

In the recent past, YouTube began throttling download speeds which was workaround in #15271 (comment) by downloading the media in chunks. This works well when passing YouTube video URL, for example this command downloads without any speed throttle:

$ youtube-dl https://www.youtube.com/watch?v=AOeY-nDp7hI -x

but the speed throttling comes back if using (temporary) direct YouTube media link, for example this throttles:

$ youtube-dl https://r5---sn-ci5gup-pmjs.googlevideo.com/videoplayback?sparams=clen%2C...

It would be nice if youtube-dl could automatically detect if such given URLs belong to YouTube and enable chunk based downloading so these direct URLs won't throttle either.

You could confirm the throttling using this general command:

$ youtube-dl -o "my_song.%(ext)s" $(youtube-dl https://www.youtube.com/watch?v=AOeY-nDp7hI -x -g)

My use case is that sometimes, I only have access (temporary) direct YouTube media link and I need to quickly download a video/audio to local but the throttling increases download times by a big factor. :(

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Aug 19, 2018

You should not use temporary links directly in the first place. Even if you use (you must also pass cookies and headers) you can enforce this option manually.
Bare temporary URL is not enough to decide whether it will be throttled or not.

@dstftw dstftw closed this Aug 19, 2018
@ytdl-org ytdl-org deleted a comment from ritiek Aug 29, 2018
@ytdl-org ytdl-org locked and limited conversation to collaborators Aug 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.