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

Cbsnews - rtmpdump exited with code 1 #7394

Closed
MaryCoding opened this issue Nov 7, 2015 · 3 comments
Closed

Cbsnews - rtmpdump exited with code 1 #7394

MaryCoding opened this issue Nov 7, 2015 · 3 comments

Comments

@MaryCoding
Copy link

@MaryCoding MaryCoding commented Nov 7, 2015

Hi,

I am trying to download a video from the cbsnews wesbite. Downloading videos from cbsnews used to work in previous versions but now all of the sudden I am getting an rtmp error. Below is the lengthy output of the issue. The link is: http://www.cbsnews.com/videos/gop-candidate-ben-carson-backs-off-west-point-claim/ . Please help me.

 youtube-dl -v --no-warnings -o "/media/%(title)s.%(ext)s" "http://www.cbsnews.com/videos/gop-candidate-ben-carson-backs-off-west-point-claim/"
[debug] System config: [u'--ffmpeg-location', u'/home/braves/bin/ffmpeg']
[debug] User config: []
[debug] Command-line args: [u'-v', u'--no-warnings', u'-o', u'/media/%(title)s.%(ext)s', u' http://www.cbsnews.com/videos/gop-candidate-ben-carson-backs-off-west-point-claim/']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2015.11.02
[debug] Python version 2.7.9 - Linux-3.19.0-30-generic-x86_64-with-Ubuntu-15.04-vivid
[debug] exe versions: ffmpeg 2.6.git, ffprobe 2.6.git, rtmpdump 2.4
[debug] Proxy map: {}
[CBSNews] gop-candidate-ben-carson-backs-off-west-point-claim: Downloading webpage
[debug] Invoking downloader on u'rtmp://cp98363.edgefcs.net/ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}'
[download] Destination: /media/GOP candidate Ben Carson backs off West Point claim.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmp://cp98363.edgefcs.net/ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}' -o '/media/sf_linux_sandbox/crawler/video-downloads/GOP candidate Ben Carson backs off West Point claim.flv.part' --swfVfy 'http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf' --pageUrl http://www.cbsnews.com --app 'ondemand?auth=cbs' --playpath 'mp4:rtmp://cp98363.edgefcs.net/ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}' --resume --skip 1
[rtmpdump] RTMPDump v2.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    : cp98363.edgefcs.net
[rtmpdump] DEBUG: Parsed app     : ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] ERROR: RTMP_HashSWF: couldn't contact swfurl http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf (HTTP error 301)
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : cp98363.edgefcs.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:rtmp://cp98363.edgefcs.net/ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}
[rtmpdump] DEBUG: tcUrl    : rtmp://cp98363.edgefcs.net:1935/ondemand?auth=cbs
[rtmpdump] DEBUG: swfUrl   : http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf
[rtmpdump] DEBUG: pageUrl  : http://www.cbsnews.com
[rtmpdump] DEBUG: app      : ondemand?auth=cbs
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: Setting buffer time to: 36000000ms
[rtmpdump] Connecting ...
[rtmpdump] DEBUG: RTMP_Connect1, ... connected, handshaking
[rtmpdump] DEBUG: HandShake: Type Answer   : 03
[rtmpdump] DEBUG: HandShake: Server Uptime : 395948662
[rtmpdump] DEBUG: HandShake: FMS Version   : 5.0.7.1
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleServerBW: server BW = 1250000
[rtmpdump] DEBUG: HandleClientBW: client BW = 1250000 2
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 242 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:             fmsVer, STRING:  FMS/5,0,7,7055>
[rtmpdump] DEBUG: Property: <Name:       capabilities, NUMBER:  127.00>
[rtmpdump] DEBUG: Property: <Name:               mode, NUMBER:  1.00>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:              level, STRING:  status>
[rtmpdump] DEBUG: Property: <Name:               code, STRING:  NetConnection.Connect.Success>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Connection succeeded.>
[rtmpdump] DEBUG: Property: <Name:     objectEncoding, NUMBER:  0.00>
[rtmpdump] DEBUG: Property: <Name:               data, ECMA_ARRAY>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:            version, STRING:  5,0,7,7055>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call <connect>
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking createStream
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 21 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <onBWDone>
[rtmpdump] DEBUG: Invoking _checkbw
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 29 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call <createStream>
[rtmpdump] DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:rtmp://cp98363.edgefcs.net/ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}
[rtmpdump] DEBUG: Invoking play
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 10275 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_onbwcheck>
[rtmpdump] DEBUG: Invoking _result
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 149 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name:              level, STRING:  error>
[rtmpdump] DEBUG: Property: <Name:               code, STRING:  NetStream.Play.Failed>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Invalid tincan object name (stream ID: 1).>
[rtmpdump] DEBUG: Property: <Name:           clientid, STRING:  qAAnAUCA>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <onStatus>
[rtmpdump] DEBUG: HandleInvoke, onStatus: NetStream.Play.Failed
[rtmpdump] ERROR: Closing connection: NetStream.Play.Failed
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
[rtmpdump] RTMPDump v2.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    : cp98363.edgefcs.net
[rtmpdump] DEBUG: Parsed app     : ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] ERROR: RTMP_HashSWF: couldn't contact swfurl http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf (HTTP error 301)
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : cp98363.edgefcs.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:rtmp://cp98363.edgefcs.net/ondemand/?auth=cbs&aifp=v001&slist={slistPrefix}{break}{slistFilePath}media/2015/11/07/561321027989/1106_EN_CORDES_BenCarson_464552_796.mp4{slistFilePath}
[rtmpdump] DEBUG: tcUrl    : rtmp://cp98363.edgefcs.net:1935/ondemand?auth=cbs
[rtmpdump] DEBUG: swfUrl   : http://www.cbsnews.com/[[IMPORT]]/vidtech.cbsinteractive.com/player/3_3_0/CBSI_PLAYER_HD.swf
[rtmpdump] DEBUG: pageUrl  : http://www.cbsnews.com
[rtmpdump] DEBUG: app      : ondemand?auth=cbs
[rtmpdump] DEBUG: live     : no
[rtmpdump] DEBUG: timeout  : 30 sec
[rtmpdump] DEBUG: Failed to get last keyframe.
[rtmpdump] DEBUG: Closing connection.


ERROR: rtmpdump exited with code 1
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/bin/youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 410, in main
    _real_main(argv)
  File "/usr/local/bin/youtube-dl/youtube_dl/__init__.py", line 400, in _real_main
    retcode = ydl.download(all_urls)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1666, in download
    url, force_generic_extractor=self.params.get('force_generic_extractor', False))
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 672, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 718, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1336, in process_video_result
    self.process_info(new_info)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1598, in process_info
    success = dl(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 1540, in dl
    return fd.download(name, info)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 342, in download
    return self.real_download(filename, info_dict)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/rtmp.py", line 202, in real_download
    self.report_error('rtmpdump exited with code %d' % retval)
  File "/usr/local/bin/youtube-dl/youtube_dl/downloader/common.py", line 155, in report_error
    self.ydl.report_error(*args, **kargs)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 536, in report_error
    self.trouble(error_message, tb)
  File "/usr/local/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 498, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
@jaimeMF jaimeMF closed this in 1ebb471 Nov 12, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 12, 2015

It will work in the next version, thanks for the report.

@MaryCoding
Copy link
Author

@MaryCoding MaryCoding commented Nov 20, 2015

@jaimeMF I am still getting errors for cbsnews links. For example, I get an error with this url http://www.cbsnews.com/videos/ex-defense-secy-robert-gates-on-u-s-military-response-to-isis/ Thanks

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 21, 2015

@MaryCoding as explained in the bug reporting instructions open a new issue with the output you get with the --verbose flag.

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.