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

googlevideo.com to video.google.com redirection #3584

Closed
umrashrf opened this issue Aug 25, 2014 · 6 comments
Closed

googlevideo.com to video.google.com redirection #3584

umrashrf opened this issue Aug 25, 2014 · 6 comments

Comments

@umrashrf
Copy link

@umrashrf umrashrf commented Aug 25, 2014

It seems googlevideo.com is changed to video.google.com which broke youtube-dl for me. I can't download youtube videos anymore.

Actually youtube.com is blocked in PK :) I used to download videos with youtube-dl and it worked even though it was blocked here. But now after change of domain it seems it's blocked for this utility as well.

@phihag
Copy link
Contributor

@phihag phihag commented Aug 25, 2014

Sorry, I don't follow. Why should video.google.com be relevant for YouTube downloads? For what it's worth, youtube-dl works fine for me:

$ youtube-dl  http://www.youtube.com/watch?v=BaW_jenozKc
[youtube] Setting language
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[download] Destination: youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4
[download] 100% of 1.53MiB in 00:00

Can you post the full output you get when using the -v option? Does it work if you use a VPN outside of the Pakistan?

@umrashrf
Copy link
Author

@umrashrf umrashrf commented Aug 25, 2014

If you use youtube-dl with -v (verbose) then you will see that it downloads it from googlevideo.com

@phihag
Copy link
Contributor

@phihag phihag commented Aug 25, 2014

Oh, that's no googlevideo.com, but one of the subdomains (and, at least that's my impression, unrelated to the google video service). And it's still something.googlevideo.com for me:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=BaW_jenozKc']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.10
[debug] Python version 2.7.8 - Linux-3.0.101-x86_64-with-debian-jessie-sid
[debug] Proxy map: {}
[youtube] Setting language
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[debug] Invoking downloader on u'https://r3---sn-oxujvavbox-jboe.googlevideo.com/videoplayback?requiressl=yes&itag=22&expire=1409000116&upn=i-9pc9iw-u0&sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&fexp=901088%2C902408%2C927622%2C931330%2C931983%2C932625%2C934024%2C934030%2C936117%2C937432%2C942460%2C946023&initcwndbps=84875&key=yt5&sver=3&signature=72389315270F6AD741F95077FE59FEA9427BE437.D66810732E6F97B305B3B92DC186637D26B588D6&ms=au&id=o-ACyKmtCMnfsBOenCl6FKoVDuVnJSavuZYlBdwR5pZq1N&mv=u&mt=1408978192&mm=31&source=youtube&ratebypass=yes&ipbits=0&ip=2001%3A4d88%3A1ffc%3A3ee%3A%3A1'
[download] Destination: youtube-dl test video ''_ä↭𝕐-BaW_jenozKc.mp4
[download] 100% of 1.53MiB in 00:00

Sorry, but without your output of youtube-dl when called with -v, we cannot understand and therefore solve your problem. Since you seem unwilling to provide this output, I'm closing this issue. We'll reopen it once we get the actual output.

@phihag phihag closed this Aug 25, 2014
@umrashrf
Copy link
Author

@umrashrf umrashrf commented Aug 25, 2014

$  youtube-dl -v http://www.youtube.com/watch?v=BaW_jenozKc
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=BaW_jenozKc']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.08.10
[debug] Python version 2.7.3 - Linux-3.2.0-60-generic-x86_64-with-Ubuntu-12.04-precise
[debug] Proxy map: {}
[youtube] Setting language
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading video info webpage
[youtube] BaW_jenozKc: Extracting video information
[debug] Invoking downloader on u'https://r7---sn-uh-30ael.googlevideo.com/videoplayback?sparams=id%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Cmm%2Cms%2Cmv%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&fexp=902408%2C915514%2C927622%2C927879%2C931983%2C932625%2C934024%2C934030%2C937427%2C938672%2C942461%2C946023%2C948513&itag=22&initcwndbps=161000&upn=rwHCCYlLAEg&ip=39.44.236.230&key=yt5&requiressl=yes&signature=C3F3412B6193D5E0818A51C2E446185AF7A97111.4E23EE75B82A951A80DA794EE9462C2D96D5E5EC&mm=31&ipbits=0&ratebypass=yes&mv=m&mt=1408978479&ms=au&id=o-AO9sxC2qI-j4iOJAzCIEjPFSft2RBTwDBiC2tONVrU3g&source=youtube&expire=1409000175&sver=3'
ERROR: unable to download video data: <urlopen error [Errno 104] Connection reset by peer>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1022, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 998, in dl
    return fd.download(name, info)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/downloader/common.py", line 291, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/downloader/http.py", line 58, in real_download
    data = self.ydl.urlopen(request)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/YoutubeDL.py", line 1231, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 400, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 418, in _open
    '_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.7/dist-packages/youtube_dl/utils.py", line 598, in https_open
    return self.do_open(HTTPSConnectionV3, req)
  File "/usr/lib/python2.7/urllib2.py", line 1177, in do_open
    raise URLError(err)
URLError: <urlopen error [Errno 104] Connection reset by peer>
@phihag phihag reopened this Aug 25, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Aug 25, 2014

This is almost certainly censorship by your ISP (I guess they didn't censor connections before). Unfortunately, there is little that youtube-dl can do to mitigate that.

You can look whether it's just DNS, although I highly doubt that: If host r7---sn-uh-30ael.googlevideo.com outputs something else than 210.187.22.210, you may be able to avoid the ban by choosing another DNS server.

Most likely, a VPN or proxy to a non-censoring country is your only option here. While I can offer you one personally (contact me in private, there is little that youtube-dl can do in general when faced with censorship.

@phihag phihag closed this Aug 25, 2014
@umrashrf
Copy link
Author

@umrashrf umrashrf commented Aug 25, 2014

Yes I understand it. I already use a VPN but was curious to know if it's part of youtube-dl. Thanks for your help!

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
2 participants
You can’t perform that action at this time.