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

Broken C-SPAN IE #2098

Closed
ajsgithub opened this issue Jan 5, 2014 · 1 comment
Closed

Broken C-SPAN IE #2098

ajsgithub opened this issue Jan 5, 2014 · 1 comment

Comments

@ajsgithub
Copy link

@ajsgithub ajsgithub commented Jan 5, 2014

The C-SPAN IE is broken. I have tried several videos that all fail similarly (including the URL in the test case in youtube_dl / extractor / cspan.py

They all fail with '[rtmpdump] ERROR: RTMP_ReadPacket, failed to read RTMP packet header'

I've upgraded you yesterday's (2014-01-03) version.

On 2013-09-22 I successfully downloaded http://c-spanvideo.org/program/JonahGol, but now I get:

[debug] System config: ['--prefer-free-formats']
[debug] User config: []
[debug] Command-line args: ['--verbose', '-t', 'http://www.c-spanvideo.org/program/JonahGol']
[debug] Encodings: locale 'UTF-8', fs 'UTF-8', out 'UTF-8', pref: 'UTF-8'
[debug] youtube-dl version 2014.01.03
[debug] Python version 2.7.5 - Linux-3.12.6-300.fc20.x86_64-x86_64-with-fedora-20-Heisenbug
[debug] Proxy map: {}
[CSpan] JonahGol: Downloading webpage
[CSpan] 275720: Downloading video info
[CSpan] 275720: Extracting information
[download] Destination: After Words with Jonah Goldberg-275720.flv
[debug] rtmpdump command line: rtmpdump --verbose -r rtmp://cspan-146.c-spanarchives.org:443/bwcheck -o 'After Words with Jonah Goldberg-275720.flv.part' --playpath mp4:downloads/305/305697-1/305697-1-MP4-STD/305697-1-MP4-STD_01.mp4 --resume --skip 1
[rtmpdump] RTMPDump v2.4
rtmpdump 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host : cspan-146.c-spanarchives.org
[rtmpdump] DEBUG: Parsed app : bwcheck
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : cspan-146.c-spanarchives.org
[rtmpdump] DEBUG: Port : 443
[rtmpdump] DEBUG: Playpath : mp4:downloads/305/305697-1/305697-1-MP4-STD/305697-1-MP4-STD_01.mp4
[rtmpdump] DEBUG: tcUrl : rtmp://cspan-146.c-spanarchives.org:443/bwcheck
[rtmpdump] DEBUG: app : bwcheck
[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 : 96850052
[rtmpdump] DEBUG: HandShake: FMS Version : 3.0.1.1
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleServerBW: server BW = 2500000
[rtmpdump] DEBUG: HandleClientBW: client BW = 2500000 2
[rtmpdump] DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
[rtmpdump] DEBUG: HandleCtrl, Stream Begin 0
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
[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
[rtmpdump] DEBUG: Invoking _checkbw
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 349 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: fmsVer, STRING: FMS/3,5,7,7009>
[rtmpdump] DEBUG: Property: <Name: capabilities, NUMBER: 31.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: data, OBJECT>
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: <Name: version, STRING: 3,5,7,7009>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: Property: <Name: clientid, NUMBER: 1518343280.00>
[rtmpdump] DEBUG: Property: <Name: objectEncoding, NUMBER: 0.00>
[rtmpdump] DEBUG: Property: <Name: secureToken, STRING: 16d980a6a3795daafd1ea061efe768f6e01a207637e9419e736848d1c0c91e96f46ba851>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_result>
[rtmpdump] DEBUG: HandleInvoke, received result for method call
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking createStream
[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
[rtmpdump] DEBUG: SendPlay, seekTime=0, stopTime=0, sending play: mp4:downloads/305/305697-1/305697-1-MP4-STD/305697-1-MP4-STD_01.mp4
[rtmpdump] DEBUG: Invoking play
[rtmpdump] DEBUG: sending ctrl. type: 0x0003
[rtmpdump] DEBUG: Invoking deleteStream
[rtmpdump] ERROR: RTMP_ReadPacket, failed to read RTMP packet header
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
[rtmpdump] RTMPDump v2.4
rtmpdump 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
[rtmpdump] DEBUG: Parsing...
[rtmpdump] DEBUG: Parsed protocol: 0
[rtmpdump] DEBUG: Parsed host : cspan-146.c-spanarchives.org
[rtmpdump] DEBUG: Parsed app : bwcheck
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMP
[rtmpdump] DEBUG: Hostname : cspan-146.c-spanarchives.org
[rtmpdump] DEBUG: Port : 443
[rtmpdump] DEBUG: Playpath : mp4:downloads/305/305697-1/305697-1-MP4-STD/305697-1-MP4-STD_01.mp4
[rtmpdump] DEBUG: tcUrl : rtmp://cspan-146.c-spanarchives.org:443/bwcheck
[rtmpdump] DEBUG: app : bwcheck
[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/lib64/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib64/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/bin/youtube-dl/main.py", line 18, in
youtube_dl.main()
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 744, in main
_real_main(argv)
File "/usr/bin/youtube-dl/youtube_dl/init.py", line 734, in _real_main
retcode = ydl.download(all_urls)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 915, in download
self.extract_info(url)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 504, in extract_info
return self.process_ie_result(ie_result, download, extra_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 531, in process_ie_result
return self.process_video_result(ie_result, download=download)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 721, in process_video_result
self.process_info(new_info)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 886, in process_info
success = fd.download(filename, info_dict)
File "/usr/bin/youtube-dl/youtube_dl/downloader/common.py", line 290, in download
return self.real_download(filename, info_dict)
File "/usr/bin/youtube-dl/youtube_dl/downloader/rtmp.py", line 177, in real_download
self.report_error(u'rtmpdump exited with code %d' % retval)
File "/usr/bin/youtube-dl/youtube_dl/downloader/common.py", line 143, in report_error
self.ydl.report_error(_args, *_kargs)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 380, in report_error
self.trouble(error_message, tb)
File "/usr/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 347, in trouble
tb_data = traceback.format_list(traceback.extract_stack())

@phihag phihag closed this in ca9e792 Jan 5, 2014
@phihag
Copy link
Contributor

@phihag phihag commented Jan 5, 2014

Thank you for the report. I believe this issue to be fixed in youtube-dl 2014.01.05. Type sudo youtube-dl -U to update.

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.