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

Yandex Video 408 errors or only downloading the preview #25000

Closed
5 tasks done
1byte2bytes opened this issue Apr 26, 2020 · 1 comment
Closed
5 tasks done

Yandex Video 408 errors or only downloading the preview #25000

1byte2bytes opened this issue Apr 26, 2020 · 1 comment

Comments

@1byte2bytes
Copy link

Checklist

  • I'm reporting a broken site support
  • I've verified that I'm running youtube-dl version 2020.03.24
  • I've checked that all provided URLs are alive and playable in a browser
  • I've checked that all URLs and arguments with special characters are properly quoted or escaped
  • I've searched the bugtracker for similar issues including closed ones

Verbose log

Mabel: ~/Downloads > youtube-dl "https://yandex.ru/portal/video?stream_id=4362958a44d495cb82b231578d19c3c0" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://yandex.ru/portal/video?stream_id=4362958a44d495cb82b231578d19c3c0', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.16 (CPython) - Darwin-19.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[YandexVideo] 4362958a44d495cb82b231578d19c3c0: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 408: Request time out (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/youtube-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 2238, 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 435, in open
    response = meth(req, response)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Mabel: ~/Downloads >
Mabel: ~/Downloads > youtube-dl "https://yandex.ru/efir?stream_id=4362958a44d495cb82b231578d19c3c0" --verbose
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'https://yandex.ru/efir?stream_id=4362958a44d495cb82b231578d19c3c0', u'--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.16 (CPython) - Darwin-19.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.2.2, ffprobe 4.2.2, rtmpdump 2.4
[debug] Proxy map: {}
[generic] efir?stream_id=4362958a44d495cb82b231578d19c3c0: Requesting header
WARNING: Falling back on generic information extractor.
[generic] efir?stream_id=4362958a44d495cb82b231578d19c3c0: Downloading webpage
[generic] efir?stream_id=4362958a44d495cb82b231578d19c3c0: Extracting information
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://video-preview.s3.yandex.net/vh/15349253385330922683_vmaf-preview-350.mp4'
[download] Все о совах — Смотреть в Эфире-15349253385330922683_vmaf-preview-350.mp4 has already been downloaded
[download] 100% of 674.20KiB
Mabel: ~/Downloads >

Description

I've tried to format this URL using formats provided in the yandexvideo.py, but all of them either result in this error. Additionally, using the URL I get from my browser (https://yandex.ru/efir?stream_id=4362958a44d495cb82b231578d19c3c0) does download a video, but only the low quality 5 second preview, not the full video. I've verified this behaviour on multiple videos on the Yandex site.

I'm downloading from the US west coast. Chrome reports a DOMContentLoaded time of 1.56 seconds and a load time of 2.40 seconds for me, and the video plays back perfectly fine in the browser. The error takes about that same amount of time to show up (time says the command executes for 1.04 seconds when it gets a 408 error), unless the timeout is very short I wouldn't expect it to be hitting it.

Thank you in advance!

@ildar
Copy link

ildar commented Sep 16, 2020

may be related: #25494

ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this issue Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants