Repository: youtube-dl
Issue: Can't download videos from bbs (plays fine in browser)
Labels: cant-reproduce

## 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 _2016.08.28_. If it's not read [this FAQ entry](https://github.com/rg3/youtube-dl/blob/master/README.md#how-do-i-update-youtube-dl) and update. Issues with outdated version will be rejected.
- [ x] I've **verified** and **I assure** that I'm running youtube-dl **2016.08.28**
### Before submitting an _issue_ make sure you have:
- [x ] At least skimmed through [README](https://github.com/rg3/youtube-dl/blob/master/README.md) and **most notably** [FAQ](https://github.com/rg3/youtube-dl#faq) and [BUGS](https://github.com/rg3/youtube-dl#bugs) sections
- [ ]x [Searched](https://github.com/rg3/youtube-dl/search?type=Issues) the bugtracker for similar issues including closed ones
### What is the purpose of your _issue_?
- [ x] 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 ```):

```
keybounceMBP:FrozenPlanet michael$ youtube-dl  -v http://www.bbc.co.uk/programmes/b00mfl7n/clips
[debug] System config: []
[debug] User config: [u'-o', u'%(title)s.%(ext)s', u'-f', u'\nbest[ext=mp4][height>431][height<=480]/\nbest[ext=mp4][height>431][height<=576]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', u'--write-sub', u'--write-auto-sub', u'--sub-lang', u'en,enUS', u'--sub-format', u'srt/ass/best', u'--embed-subs', u'--recode-video', u'mp4', u'--mark-watched']
[debug] Command-line args: [u'-v', u'http://www.bbc.co.uk/programmes/b00mfl7n/clips']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.08.28
[debug] Python version 2.7.5 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.1, ffprobe 3.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk:playlist] b00mfl7n: Downloading webpage
[download] Downloading playlist: Frozen Planet - Clips - BBC One
[bbc.co.uk:playlist] b00mfl7n: Downloading page 2
[bbc.co.uk:playlist] b00mfl7n: Downloading page 3
[bbc.co.uk:playlist] b00mfl7n: Downloading page 4
[bbc.co.uk:playlist] b00mfl7n: Downloading page 5
[bbc.co.uk:playlist] b00mfl7n: Downloading page 6
[bbc.co.uk:playlist] b00mfl7n: Downloading page 7
[bbc.co.uk:playlist] playlist Frozen Planet - Clips - BBC One: Downloading 142 videos
[download] Downloading video 1 of 142
[bbc.co.uk] p03phqgj: Downloading video page
[bbc.co.uk] p03phqgp: Downloading media selection XML
[bbc.co.uk] p03phqgp: Downloading media selection XML
[debug] Invoking downloader on u'rtmp://cp44293.edgefcs.net/ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4'
[download] Destination: Arctic spring melt from Space, To the Ends of the Earth, Frozen Planet - BBC One.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://cp44293.edgefcs.net/ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4' -o 'Arctic spring melt from Space, To the Ends of the Earth, Frozen Planet - BBC One.flv.part' --swfVfy http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf --pageUrl http://www.bbc.co.uk --app 'ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4' --playpath mp4:public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4 --resume --skip 1
[rtmpdump] RTMPDump 2.4
[rtmpdump] (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host    : cp44293.edgefcs.net
[rtmpdump] DEBUG: Parsed app     : ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : cp44293.edgefcs.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4
[rtmpdump] DEBUG: tcUrl    : rtmp://cp44293.edgefcs.net:1935/ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x
[rtmpdump] DEBUG: swfUrl   : http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf
[rtmpdump] DEBUG: pageUrl  : http://www.bbc.co.uk
[rtmpdump] DEBUG: app      : ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: SWFSHA256:
[rtmpdump] DEBUG: b6 74 7f 89 f9 ec 6a 60 c1 a4 b5 8b b1 18 b0 fa
[rtmpdump] DEBUG: 65 18 86 24 c2 8a 1a a3 2f 72 0f 0b 80 59 dd 7f
[rtmpdump] DEBUG: SWFSize  : 595316
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
[rtmpdump] RTMPDump 2.4
[rtmpdump] (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host    : cp44293.edgefcs.net
[rtmpdump] DEBUG: Parsed app     : ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : cp44293.edgefcs.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4
[rtmpdump] DEBUG: tcUrl    : rtmp://cp44293.edgefcs.net:1935/ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x
[rtmpdump] DEBUG: swfUrl   : http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf
[rtmpdump] DEBUG: pageUrl  : http://www.bbc.co.uk
[rtmpdump] DEBUG: app      : ondemand?auth=daEcHd6b3aTbBbwduakabc1cYbGbhbXc4dZ-bxWNiM-bWG-EqtEFnBoMCpHnwC&aifp=v001&slist=public/secure_auth/800kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_med.mp4;public/secure_auth/480kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_low.mp4;public/secure_auth/1500kbps/MP/2c978993539a3ae10153ae381a560975--video--nhufilm-frozenplanet-graphics-sea-ice-1024x576_flv_avc1_high.mp4
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: SWFSHA256:
[rtmpdump] DEBUG: b6 74 7f 89 f9 ec 6a 60 c1 a4 b5 8b b1 18 b0 fa
[rtmpdump] DEBUG: 65 18 86 24 c2 8a 1a a3 2f 72 0f 0b 80 59 dd 7f
[rtmpdump] DEBUG: SWFSize  : 595316
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.


ERROR: rtmpdump 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 "/Users/michael/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/Users/michael/bin/youtube-dl/youtube_dl/__init__.py", line 433, in main
    _real_main(argv)
  File "/Users/michael/bin/youtube-dl/youtube_dl/__init__.py", line 423, in _real_main
    retcode = ydl.download(all_urls)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1788, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 702, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 863, in process_ie_result
    extra_info=extra)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 755, in process_ie_result
    extra_info=extra_info)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 702, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 748, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1432, in process_video_result
    self.process_info(new_info)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1696, in process_info
    success = dl(filename, info_dict)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1638, in dl
    return fd.download(name, info)
  File "/Users/michael/bin/youtube-dl/youtube_dl/downloader/common.py", line 354, in download
    return self.real_download(filename, info_dict)
  File "/Users/michael/bin/youtube-dl/youtube_dl/downloader/rtmp.py", line 202, in real_download
    self.report_error('rtmpdump exited with code %d' % retval)
  File "/Users/michael/bin/youtube-dl/youtube_dl/downloader/common.py", line 162, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 565, in report_error
    self.trouble(error_message, tb)
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 527, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())

keybounceMBP:FrozenPlanet michael$ 
```

Attempting to download the clips for Frozen Planet fails.

I can watch most of the clips in the browser. A few, such as the 4th one (a highlight, not from an episode) does not -- and that one will give a geolocation error from youtube-dl. But the rest can be played without location restriction, but not downloaded.