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

Vimeo download: urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] #12976

Closed
mperovic opened this issue May 3, 2017 · 3 comments
Closed

Vimeo download: urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] #12976

mperovic opened this issue May 3, 2017 · 3 comments

Comments

@mperovic
Copy link

@mperovic mperovic commented May 3, 2017

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.05.01. 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.05.01

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

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

$ youtube-dl --verbose https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba&oauth2_token_id=897711146
[1] 6631
MacBook-Pro-5:Practical Instruments myAccount$ [debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.01
[debug] Python version 2.7.10 - Darwin-16.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.2.2, ffprobe 3.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 214318003: Requesting header
WARNING: Could not send HEAD request to https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)>
[generic] 214318003: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)> (caused by URLError(SSLError(1, u'[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590)'),))
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 498, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2106, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 437, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 469, in error
    result = self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 656, in http_error_302
    return self.parent.open(new, timeout=req.timeout)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 431, in open
    response = self._open(req, data)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 449, in _open
    '_open', req)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "/usr/local/bin/youtube-dl/youtube_dl/utils.py", line 1089, in https_open
    req, **kwargs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1197, in do_open
    raise URLError(err)

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

Tried to reinstall openssl without result:
brew uninstall --ignore-dependencies openssl
rm -rf /usr/local/etc/openssl
brew install openssl

--referer switch doesn't work also
youtube-dl --verbose https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba&oauth2_token_id=897711146 --referer https://videos.raywenderlich.com/courses/74-practical-instruments/lessons/1

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 3, 2017

Can't reproduce on latest Sierra:

$ youtube-dl -v "https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba&oauth2_token_id=897711146"
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'-v', u'https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba&oauth2_token_id=897711146']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.05.01
[debug] Python version 2.7.10 - Darwin-16.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.3, ffprobe 3.3
[debug] Proxy map: {}
[generic] 214318003: Requesting header
[redirect] Following redirect to https://skyfire.vimeocdn.com/1493854019-0xecb80922d07a68fe68654a885148c456915b698b/214318003/video/738297538,738297546,738297539,738297578/subtitles/4937453-English-en/master.m3u8?absolute=1
[generic] master: Requesting header
WARNING: Could not send HEAD request to https://skyfire.vimeocdn.com/1493854019-0xecb80922d07a68fe68654a885148c456915b698b/214318003/video/738297538,738297546,738297539,738297578/subtitles/4937453-English-en/master.m3u8?absolute=1: HTTP Error 403: Forbidden
[generic] master: Downloading webpage
[generic] master: Downloading m3u8 information
[debug] Invoking downloader on u'https://skyfire.vimeocdn.com/1493854022-0xae70e31fe408411701106b2fde094876c27536ac/214318003/video/738297578/playlist.m3u8'
[download] Destination: master-master.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
' -i https://skyfire.vimeocdn.com/1493854022-0xae70e31fe408411701106b2fde094876c27536ac/214318003/video/738297578/playlist.m3u8 -c copy -f mp4 file:master-master.mp4.part
ffmpeg version 3.3 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.41)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.3 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, hls,applehttp, from 'https://skyfire.vimeocdn.com/1493854022-0xae70e31fe408411701106b2fde094876c27536ac/214318003/video/738297578/playlist.m3u8':
  Duration: 00:04:15.47, start: 0.700000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:master-master.mp4.part':
  Metadata:
    encoder         : Lavf57.71.100
    Stream #0:0: Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
^Cframe=  539 fps=183 q=-1.0 Lsize=    2550kB time=00:00:17.98 bitrate=1161.7kbits/s speed=6.12x
video:2013kB audio:523kB subtitle:0kB other streams:0kB global headers:1kB muxing overhead: 0.584819%
Exiting normally, received signal 2.

ERROR: Interrupted by user

I guess there are connection issues between your machine and the vimeo server. Can you open this URL in browsers? And could you run

curl -v https://player.vimeo.com/external/214318003.m3u8?s=b6e5a8b0912bd3fd485351e7c04a51d22e75d8ba&oauth2_token_id=897711146

and see what's the output?

@mperovic
Copy link
Author

@mperovic mperovic commented May 4, 2017

I can open url and I see the video. Yesterday I was able to watch this video in my browser, too.

Now I can download it, too. It's strange.

Thanks for your time.

@Fazel94
Copy link

@Fazel94 Fazel94 commented Sep 23, 2020

The same error happens to me in the middle of the download, it actually starts downloading but after some time it gives the error when I retry it start downloading some more then gives this error again.
I use Linux

→ youtube-dl --version
2020.09.20

Installed using conda install -c conda-forge youtube-dl

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.