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

Use fallback Youtube server if local cache is unavailable #11779

Open
ceyt opened this issue Jan 19, 2017 · 2 comments
Open

Use fallback Youtube server if local cache is unavailable #11779

ceyt opened this issue Jan 19, 2017 · 2 comments
Labels

Comments

@ceyt
Copy link

@ceyt ceyt commented Jan 19, 2017

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.01.18. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2017.01.18

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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

When Google CDN server peered or hosted by local ISP (blah-blah-blah.googlevideo.com) that holds media files is unavailable, youtube-dl just hangs on TCP connect and returns a system error after a timeout. It's an obvious, straightforward behavior. However, the website (at least default Javascript player served for Firefox) checks if any data from server is available after 5 seconds, and automatically reconnects to a different (global/anycast?) CDN server (in my case, r6---sn-4g57kn6e.googlevideo.com) to play the video. I guess they bothered to handle that case because of the total amount of Google cache nodes, and ubiquitous network problems and misconfigurations.

I think it's a rare case where youtube-dl is less resilient and useful than the official way of watching Youtube.

Steps to reproduce: set iptables to drop packets to CDN servers Google picks for your IP address range, check what player on the website does.

@ghost
Copy link

@ghost ghost commented Jan 20, 2017

I'm currently having this same problem as of yesterday. The URLs I'm getting (https://r6---sn-bvvbax-hjpe.googlevideo.com/videoplayback?blahblahblah) don't load at all, which would seem to be a problem at Youtube's end. Some kind of option to try for a different mirror would be great, as right now I'm at Google's mercy to fix this particular mirror.

Edit: Looks like there's https://redirector.googlevideo.com, which I'd assume is to redirect you to different mirrors (it's defined as "fallback_host" in https://www.youtube.com/get_video_info?&video_id=_____), but it keeps sending me to the same mirror. Not sure how to make it give me a different one.

@dstftw dstftw added the request label Jan 21, 2017
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 3, 2017

Related: #3721

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

Successfully merging a pull request may close this issue.

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