Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
HTTP error 403 Forbidden on Youtube Live Stream #1407
Comments
|
Thanks for reporting. it seems to be a problem with ffmpeg, in my case it tries to download the key from The actual url for the key is longer than that: |
|
Thanks for looking into this. Hope there will be a fix. |
|
Reported to ffmpeg in https://ffmpeg.org/trac/ffmpeg/ticket/2976 |
|
They have fixed it in the git repo, you'll have to install from it. |
|
which branch fixed this? I want to see the code... |
Thank you so much if anyone can help!
./youtube-dl -v "http://www.youtube.com/watch?v=rdcvn4W-6xM"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.youtube.com/watch?v=rdcvn4W-6xM']
[debug] youtube-dl version 2013.09.10
[debug] Python version 2.7.2 - Darwin-12.4.0-x86_64-i386-64bit
[debug] Proxy map: {}
[youtube] Setting language
[youtube] rdcvn4W-6xM: Downloading video webpage
[youtube] rdcvn4W-6xM: Downloading video info webpage
[youtube] rdcvn4W-6xM: Extracting video information
[youtube] rdcvn4W-6xM: Downloading formats manifest
[download] Destination: Table Tennis - Men Team Finals & VC - London 2012 Olympic Games-rdcvn4W-6xM.mp4
ffmpeg version 1.2.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Sep 10 2013 15:22:59 with Apple clang version 4.1 (tags/Apple/clang-421.11.65) (based on LLVM 3.1svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/1.2.1 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=cc --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid
libavutil 52. 18.100 / 52. 18.100
libavcodec 54. 92.100 / 54. 92.100
libavformat 54. 63.104 / 54. 63.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 42.103 / 3. 42.103
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[http @ 0x7fbd72250400] HTTP error 403 Forbidden
Unable to open key file http://www.youtube.com/api/drm/hlskey?id=add72f9f85beeb13&itag=96&source=youtube&ratebypass=yes&pfa=1&pbr=yes&hls_chunk_host=www.youtube.com&gir=yes&clen=5547517760&lmt=1347749241948586&dur=8870.400&cp=U0hWTVhUU19NU0NONl9QTldIOnNZMW4xTDgxaFRa&playlist_type=DVR&maudio=1&pmbypass=yes&upn=FAVTiUAHwBs&fexp=935203,932247,916807,935010,916624,924606,929117,929121,929906,929907,929922,929127,929129,929131,929930,936403,925726,936310,925720,925722,925718,925714,929917,906945,929933,920302,906842,927704,913428,919811,913563,919373,930803,938701,931924,940501,936308,909549,900816,912711,904494,904497,939903,935012,900375,900382,934507,907231,936312,906001&sver=3&ip=128.138.43.238&ipbits=8&expire=1378895789&sparams=ip,ipbits,expire,id,itag,source,ratebypass,pfa,pbr,hls_chunk_host,gir,clen,lmt,dur,cp,playlist_type,maudio,pmbypass&signature=2F6F9F6E907B4DE46AFA7B2F7263866D0C166F7B.2E1CF42BD6C49CD8AEBBEBEB6EC9F50B1CB5ECAF&key=dg_yt0&ek=00d1d2078d07e911274516317c3229cce139c648113fc4167a59e8a6
[hls,applehttp @ 0x7fbd72006600] Error when loading first segment 'http://www.youtube.com/videoplayback/id/add72f9f85beeb13/itag/96/source/youtube/range/0-1606463/file/seg.ts?ratebypass=yes&pfa=1&pbr=yes&hls_chunk_host=www.youtube.com&gir=yes&clen=5547517760&lmt=1347749241948586&dur=8870.400&cp=U0hWTVhUU19NU0NONl9QTldIOnNZMW4xTDgxaFRa&playlist_type=DVR&maudio=1&pmbypass=yes&upn=FAVTiUAHwBs&fexp=935203,932247,916807,935010,916624,924606,929117,929121,929906,929907,929922,929127,929129,929131,929930,936403,925726,936310,925720,925722,925718,925714,929917,906945,929933,920302,906842,927704,913428,919811,913563,919373,930803,938701,931924,940501,936308,909549,900816,912711,904494,904497,939903,935012,900375,900382,934507,907231,936312,906001&sver=3&ip=128.138.43.238&ipbits=8&expire=1378895789&sparams=ip,ipbits,expire,id,itag,source,ratebypass,pfa,pbr,hls_chunk_host,gir,clen,lmt,dur,cp,playlist_type,maudio,pmbypass&signature=2F6F9F6E907B4DE46AFA7B2F7263866D0C166F7B.2E1CF42BD6C49CD8AEBBEBEB6EC9F50B1CB5ECAF&key=dg_yt0'
http://www.youtube.com/api/manifest/hls_playlist/id/add72f9f85beeb13/itag/96/source/youtube/ratebypass/yes/pfa/1/pbr/yes/hls_chunk_host/www.youtube.com/gir/yes/clen/5547517760/lmt/1347749241948586/dur/8870.400/cp/U0hWTVhUU19NU0NONl9QTldIOnNZMW4xTDgxaFRa/playlist_type/DVR/maudio/1/pmbypass/yes/upn/FAVTiUAHwBs/fexp/935203,932247,916807,935010,916624,924606,929117,929121,929906,929907,929922,929127,929129,929131,929930,936403,925726,936310,925720,925722,925718,925714,929917,906945,929933,920302,906842,927704,913428,919811,913563,919373,930803,938701,931924,940501,936308,909549,900816,912711,904494,904497,939903,935012,900375,900382,934507,907231,936312,906001/sver/3/ip/128.138.43.238/ipbits/8/expire/1378895789/sparams/ip,ipbits,expire,id,itag,source,ratebypass,pfa,pbr,hls_chunk_host,gir,clen,lmt,dur,cp,playlist_type,maudio,pmbypass/signature/2F6F9F6E907B4DE46AFA7B2F7263866D0C166F7B.2E1CF42BD6C49CD8AEBBEBEB6EC9F50B1CB5ECAF/key/dg_yt0/file/index.m3u8: Invalid data found when processing input
ERROR: ffmpeg exited with code 1
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "./youtube-dl/main.py", line 18, in
youtube_dl.main()
File "./youtube-dl/youtube_dl/init.py", line 667, in main
_real_main(argv)
File "./youtube-dl/youtube_dl/init.py", line 651, in _real_main
retcode = ydl.download(all_urls)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 573, in download
videos = self.extract_info(url)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 339, in extract_info
return self.process_ie_result(ie_result, download=download)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 422, in process_ie_result
for r in ie_result['entries']
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 369, in process_ie_result
self.process_info(ie_result)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 548, in process_info
success = self.fd._do_download(filename, info_dict)
File "./youtube-dl/youtube_dl/FileDownloader.py", line 398, in _do_download
return self._download_m3u8_with_ffmpeg(filename, url)
File "./youtube-dl/youtube_dl/FileDownloader.py", line 368, in _download_m3u8_with_ffmpeg
self.report_error(u'ffmpeg exited with code %d' % retval)
File "./youtube-dl/youtube_dl/FileDownloader.py", line 148, in report_error
self.ydl.report_error(_args, *_kargs)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 217, in report_error
self.trouble(error_message, tb)
File "./youtube-dl/youtube_dl/YoutubeDL.py", line 184, in trouble
tb_data = traceback.format_list(traceback.extract_stack())