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

Failing to download PBS video #7095

Open
dustinwilson opened this issue Oct 7, 2015 · 3 comments
Open

Failing to download PBS video #7095

dustinwilson opened this issue Oct 7, 2015 · 3 comments

Comments

@dustinwilson
Copy link

When trying to download http://www.pbs.org/wgbh/nova/tech/making-stuff.html#making-stuff-stronger I get an error. Here's the debug output:

--verbose http://www.pbs.org/wgbh/nova/tech/making-stuff.html#making-stuff-stronger
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--verbose', u'http://www.pbs.org/wgbh/nova/tech/making-stuff.html#making-stuff-stronger']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.10.06.2
[debug] Python version 2.7.10 - Darwin-14.5.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.8, ffprobe 2.8, rtmpdump 2.4
[debug] Proxy map: {}
[PBS] making-stuff: Downloading webpage
[PBS] making-stuff: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: NOT FOUND (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 329, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1872, 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 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 475, in error
    return 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 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
@sydlexius
Copy link

Recently I had no issues with PBS, but I'm now getting the following error:

D:\Downloads\Finished\TV>youtube-dl http://www.pbs.org/video/2365659907/ -F --verbose > error.txt
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://www.pbs.org/video/2365659907/', u'-F', u'--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out None, pref cp1252
[debug] youtube-dl version 2016.02.05.1
[debug] Python version 2.7.11 - Windows-10-10.0.11102
[debug] exe versions: ffmpeg N-78313-g6632802, ffprobe N-78313-g6632802
[debug] Proxy map: {}
ERROR: Unable to download JSON metadata: HTTP Error 404: NOT FOUND (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 352, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "c:\python27\lib\site-packages\youtube_dl\YoutubeDL.py", line 1903, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "c:\python27\lib\urllib2.py", line 437, in open
    response = meth(req, response)
  File "c:\python27\lib\urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\python27\lib\urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "c:\python27\lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "c:\python27\lib\urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Additionally, a download that worked just yesterday fails as well. Here are the (non-verbose) logs of the successful download:

D:\Downloads\Finished\TV>youtube-dl http://www.pbs.org/video/2365647653/ -F
[pbs] 2365647653: Downloading JSON metadata
[pbs] 2365647653: Downloading recommended_encoding video url info
[pbs] 2365647653: Downloading m3u8 information
[pbs] 2365647653: Downloading alternate_encoding video url info
[info] Available formats for 2365647653:
format code        extension  resolution note
hls-meta           mp4        multiple   Quality selection URL
mp4-baseline-16x9  mp4        unknown
hls-1117           mp4        480x270    1117k , avc1.640015, mp4a.40.2
hls-2087           mp4        640x360    2087k , avc1.64001e, mp4a.40.2
hls-3362           mp4        768x432    3362k , avc1.64001e, mp4a.40.2
hls-6228           mp4        1280x720   6228k , avc1.64001f, mp4a.40.2 (best)

D:\Downloads\Finished\TV>youtube-dl http://www.pbs.org/video/2365647653/ -f hls-6228
[pbs] 2365647653: Downloading JSON metadata
[pbs] 2365647653: Downloading recommended_encoding video url info
[pbs] 2365647653: Downloading m3u8 information
[pbs] 2365647653: Downloading alternate_encoding video url info
[download] Destination: Nature - Natural Born Hustlers _ Episode 2 _ The Hunger Hustle -2365647653.mp4
ffmpeg version N-78313-g6632802 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 17.100 / 55. 17.100
  libavcodec     57. 24.101 / 57. 24.101
  libavformat    57. 24.100 / 57. 24.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 28.100 /  6. 28.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, hls,applehttp, from 'http://ga.video.cdn.pbs.org/videos/nature/c5f78fb3-8f82-4c91-8b93-4fe7dc0f707b/219406/hd-1080p-mezzanine-16x9/abe08fd6_p464695-001hdi-16x9-hls-2500k.m3u8':
  Duration: 00:53:09.89, start: 10.000000, bitrate: 0 kb/s
  Program 0
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 183 kb/s
Output #0, mp4, to 'file:Nature - Natural Born Hustlers _ Episode 2 _ The Hunger Hustle -2365647653.mp4.part':
  Metadata:
    encoder         : Lavf57.24.100
    Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 183 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=95604 fps= 98 q=-1.0 Lsize=  985272kB time=00:53:10.03 bitrate=2530.2kbits/s speed=3.28x    =76376 fps= 98 q=-1.0 size=  779046kB time=00:42:28.31 bitrate=2504.4kbits/s speed=3.27x
video:932183kB audio:49843kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.330588%
[ffmpeg] 1008918463 bytes
[download] 100% of 962.18MiB

And the failed one today:

D:\Downloads\Finished\TV>youtube-dl http://www.pbs.org/video/2365647653/ -f hls-6228 --verbose
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'http://www.pbs.org/video/2365647653/', u'-f', u'hls-6228', u'--verbose']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2016.02.05.1
[debug] Python version 2.7.11 - Windows-10-10.0.11102
[debug] exe versions: ffmpeg N-78313-g6632802, ffprobe N-78313-g6632802
[debug] Proxy map: {}
[pbs] 2365647653: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 404: NOT FOUND (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "c:\python27\lib\site-packages\youtube_dl\extractor\common.py", line 352, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "c:\python27\lib\site-packages\youtube_dl\YoutubeDL.py", line 1903, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "c:\python27\lib\urllib2.py", line 437, in open
    response = meth(req, response)
  File "c:\python27\lib\urllib2.py", line 550, in http_response
    'http', request, response, code, msg, hdrs)
  File "c:\python27\lib\urllib2.py", line 475, in error
    return self._call_chain(*args)
  File "c:\python27\lib\urllib2.py", line 409, in _call_chain
    result = func(*args)
  File "c:\python27\lib\urllib2.py", line 558, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

@chkuendig
Copy link

FYI: had the same issue with PBS since a few days, but after updating from 2016.01.01 to 2016.02.10 it works again.

@anarcat
Copy link

anarcat commented Nov 9, 2016

same failure here, tried 2016.06.25-2~bpo8 from debian backports, 2016.11.08.1 from git, and the latest standalone package from today.

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

No branches or pull requests

6 participants
@chkuendig @anarcat @sydlexius @dustinwilson @yan12125 and others