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

404 on youtube video with low view in (bestvideo/best)[height<=480] format #18863

Closed
ridowan007 opened this issue Jan 15, 2019 · 0 comments
Closed
Labels

Comments

@ridowan007
Copy link

@ridowan007 ridowan007 commented Jan 15, 2019

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 this: [x])
  • Use the Preview tab to see what your issue will actually look like

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

Before submitting an issue make sure you have:

  • 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

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 the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), 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 -v -f '(bestvideo/best)[height<=480]' https://www.youtube.com/watch?v=-3RORZDpPh8
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-f', '(bestvideo/best)[height<=480]', 'https://www.youtube.com/watch?v=-3RORZDpPh8']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.10
[debug] Python version 3.5.2 (CPython) - Linux-4.4.0-1072-aws-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] -3RORZDpPh8: Downloading webpage
[youtube] -3RORZDpPh8: Downloading video info webpage
[debug] Invoking downloader on 'https://r1---sn-npoeen7k.googlevideo.com/videoplayback?dur=0.000&initcwndbps=1895000&ei=l3I9XOfDM43Ez7sP756JqAc&otf=1&expire=1547552503&aitags=133%2C134%2C135%2C136%2C137%2C160&sparams=aitags%2Cdur%2Cei%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cotf%2Cotfp%2Cpl%2Crequiressl%2Csource%2Cexpire&source=yt_otf&signature=31D9EEE065B7EF647EA738CB9B4564508155DB06.2DFF7D68AA96C2E3E7BD4BEAE70CCB1429E9D6AC&c=WEB&otfp=1&key=yt6&lmt=1546584586917786&keepalive=yes&itag=135&fvip=1&mm=31%2C29&mn=sn-npoeen7k%2Csn-npoe7ne6&mime=video%2Fmp4&id=o-AN5QOnS84tpUSWnQO9jopgtJHiPcKVJgLIba5JZRXyY_&pl=22&ipbits=0&ip=13.126.53.186&requiressl=yes&mt=1547530819&mv=m&ms=au%2Crdu&ratebypass=yes'
ERROR: unable to download video data: HTTP Error 404: Not Found
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1909, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 1848, in dl
    return fd.download(name, info)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/downloader/common.py", line 364, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/downloader/http.py", line 341, in real_download
    establish_connection()
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/downloader/http.py", line 109, in establish_connection
    ctx.data = self.ydl.urlopen(request)
  File "/usr/local/lib/python3.5/dist-packages/youtube_dl/YoutubeDL.py", line 2212, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python3.5/urllib/request.py", line 472, in open
    response = meth(req, response)
  File "/usr/lib/python3.5/urllib/request.py", line 582, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.5/urllib/request.py", line 510, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.5/urllib/request.py", line 590, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 404: Not Found

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

Some video(mostly with low view) can't be downloaded when specifying '(bestvideo/best)[height<=480]'. It seems those videos don't have different video link previously so bestvideo did not worked. But with /best option I can previously resort to link with both video and audio. But for some reason(a change in youtube.com I guess?) youtube-dl now try to download the video using a bestvideo link but problem is that link don't work. So it gets a 404. Removing [height<=480] seems work so it has a bestvideo link at higher resolution but not in lower ones.

The problem is also present in api mode from python.

@dstftw dstftw closed this Jan 15, 2019
@dstftw dstftw added the duplicate label Jan 15, 2019
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.