ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.29k stars 10.03k forks source link

Crunchyroll: UnicodeEncodeError #4524

Closed Royerson closed 9 years ago

Royerson commented 9 years ago

Strangely I'm getting this error only for certain videos. Did some testing and it seems like episodes 31-99 of One Piece can't be downloaded because of this, but so far every other episode I've tried works fine and reliably.

Here's the verbose output:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.crunchyroll.com/one-piece/episode-31-the-worst-man-in-the-eastern-seas-fishman-pirate-arlong-651087']
[debug] Encodings: locale cp1252, fs mbcs, out None, pref cp1252
[debug] youtube-dl version 2014.12.17.2
[debug] Python version 2.7.8 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg N-68585-gc89751a, ffprobe N-68585-gc89751a, rtmpdump 2.4
[debug] Proxy map: {}
[Crunchyroll] 651087: Downloading webpage
[Crunchyroll] 651087: Downloading media info
[Crunchyroll] 651087: Downloading media info for 360p
[Crunchyroll] 651087: Downloading media info for 480p
[Crunchyroll] 651087: Downloading subtitles for Español
[debug] Invoking downloader on 'rtmpe://c17fs.fplive.net/c17?nvb=20141220031406&nva=20141220071506&token=012fcf6e5836463c0d074'
[download] Destination: One Piece - East Blue (1-61) Episode 31 – The Worst Man in the Eastern Seas! Fishman Pirate Arlong!-651087.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmpe://c17fs.fplive.net/c17?nvb=20141220031406&nva=20141220071506&token=012fcf6e5836463c0d074' -o 'One Piece - East Blue (1-61) Episode 31 – The Worst Man in the Eastern Seas! Fishman Pirate Arlong!-651087.flv.part' --playpath mp4:s/ve1320347/video.mp4 --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: 2
[rtmpdump] DEBUG: Parsed host    : c17fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c17?nvb=20141220031406&nva=20141220071506&token=012fcf6e5836463c0d074
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c17fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve1320347/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c17fs.fplive.net:1935/c17?nvb=20141220031406&nva=20141220071506&token=012fcf6e5836463c0d074
[rtmpdump] DEBUG: app      : c17?nvb=20141220031406&nva=20141220071506&token=012fcf6e5836463c0d074
[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: Client type: 06
[rtmpdump] DEBUG: HandShake: DH pubkey position: 166
[rtmpdump] DEBUG: HandShake: Client digest offset: 879
[rtmpdump] DEBUG: HandShake: Initial client digest: 
[rtmpdump] DEBUG: 76 09 3b 6c 04 11 98 d6 e3 d9 a0 36 50 ca b5 c1
[rtmpdump] DEBUG: e7 96 f6 48 f6 d0 45 52 2f 0b fa 8c 6f e9 09 e6
[rtmpdump] DEBUG: HandShake: Type Answer   : 09
[rtmpdump] WARNING: HandShake: Type mismatch: client sent 6, server answered 9
[rtmpdump] DEBUG: HandShake: Server Uptime : 62114618
[rtmpdump] DEBUG: HandShake: FMS Version   : 4.5.3.1
[rtmpdump] DEBUG: HandShake: Server DH public key offset: 370
[rtmpdump] DEBUG: HandShake: Secret key: 
[rtmpdump] DEBUG: 8e 8f 28 d7 5d 16 b2 7b 94 54 1f e6 a7 f3 74 72
[rtmpdump] DEBUG: 6f ee cb f5 42 a6 2e 82 7e 0f e1 91 66 43 19 bd
[rtmpdump] DEBUG: dd 5f c4 23 31 fb 45 ee f5 08 31 e1 6c be a5 42
[rtmpdump] DEBUG: 44 33 de be 66 fd df d8 db 75 53 24 0d a7 55 5d
[rtmpdump] DEBUG: 6a 70 42 d9 54 13 5d f4 3f a2 6b 79 e5 b4 a0 f4
[rtmpdump] DEBUG: 1b fd 6a 14 cf f2 5f da 6d 78 11 49 88 a7 65 e9
[rtmpdump] DEBUG: 07 65 3f 7e 1b ed 88 a5 aa 9d f2 ae 42 8c 11 bf
[rtmpdump] DEBUG: f2 77 b3 1a f7 e6 7d ab c1 35 fc 41 60 13 ad a8
[rtmpdump] DEBUG: RC4 Out Key: 
[rtmpdump] DEBUG: d3 cc bf 88 3b ab df da c1 4f 77 5d 97 3d 3d 52
[rtmpdump] DEBUG: RC4 In Key: 
[rtmpdump] DEBUG: ec 37 0f dc 9b 61 8d 31 39 1d 77 71 8e 41 b7 49
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest: 
[rtmpdump] DEBUG: fa a2 19 bd cf 31 70 df 14 c9 19 2d b7 46 5f a4
[rtmpdump] DEBUG: 56 82 ef c2 34 14 24 69 2c 5a 90 60 8c e9 08 52
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: 19 8f b8 ce 21 32 5e c7 2c c3 5a c4 5e 26 62 5e
[rtmpdump] DEBUG: da f2 56 a1 a6 d3 36 f9 e5 f4 8f 49 58 bf 7a 05
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: b7 2b 78 97 41 08 c6 63 73 3e 5c 52 25 75 50 bd
[rtmpdump] DEBUG: ab 00 cf ba 8a 56 6b ce b7 56 fc 83 9c 3b 6e 0a
[rtmpdump] DEBUG: HandShake: Digest key: 
[rtmpdump] DEBUG: 09 a2 ce 93 05 23 76 dc ca 1c 9e 35 f0 f7 43 b4
[rtmpdump] DEBUG: 50 92 62 ab 8d 09 46 5a 3c 37 bf 25 51 78 a2 58
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: b7 2b 78 97 41 08 c6 63 73 3e 5c 52 25 75 50 bd
[rtmpdump] DEBUG: ab 00 cf ba 8a 56 6b ce b7 56 fc 83 9c 3b 6e 0a
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 128
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 165 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:  NetConnection.Connect.Rejected>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Connection failed.>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  [ Server.Reject ] : Connection failed.>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_error>
[rtmpdump] ERROR: rtmp server sent error
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <close>
[rtmpdump] ERROR: rtmp server requested close
[rtmpdump] DEBUG: Closing connection.
[rtmpdump] 0 bytes
Traceback (most recent call last):
  File "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 361, in main
  File "youtube_dl\__init__.pyo", line 351, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1166, in download
  File "youtube_dl\YoutubeDL.pyo", line 603, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 649, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 938, in process_video_result
  File "youtube_dl\YoutubeDL.pyo", line 1136, in process_info
  File "youtube_dl\YoutubeDL.pyo", line 1112, in dl
  File "youtube_dl\downloader\common.pyo", line 297, in download
  File "youtube_dl\downloader\rtmp.pyo", line 184, in real_download
  File "youtube_dl\downloader\rtmp.pyo", line 30, in run_rtmpdump
  File "subprocess.pyo", line 710, in __init__
  File "subprocess.pyo", line 958, in _execute_child
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 161: ordinal not in range(128)
IDerr commented 9 years ago

Try to set your locale on a unicode encoding because you're currently cp1252

Royerson commented 9 years ago

Yeah, I tried it on Linux (UTF-8), and a similar error happens there too. Is that good? Can you not reproduce it?

Also, I don't know if it's even useful, but it happens on episodes 145-156 too, but everything else from episode 1-206 works.

Here's the verbose output from Linux.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['--verbose', 'http://www.crunchyroll.com/one-piece/episode-31-the-worst-man-in-the-eastern-seas-fishman-pirate-arlong-651087']
[debug] Encodings: locale UTF-8, fs UTF-8, out None, pref UTF-8
[debug] youtube-dl version 2015.01.03
[debug] Python version 2.7.6 - Linux-3.13.0-37-generic-x86_64-with-LinuxMint-17.1-rebecca
[debug] exe versions: rtmpdump 2.4
[debug] Proxy map: {}
[Crunchyroll] 651087: Downloading webpage
[Crunchyroll] 651087: Downloading media info
[Crunchyroll] 651087: Downloading media info for 360p
[Crunchyroll] 651087: Downloading media info for 480p
[Crunchyroll] 651087: Downloading subtitles for Español
[debug] Invoking downloader on 'rtmpe://c18fs.fplive.net/c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257'
[download] Destination: One Piece - East Blue (1-61) Episode 31 – The Worst Man in the Eastern Seas! Fishman Pirate Arlong!-651087.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmpe://c18fs.fplive.net/c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257' -o 'One Piece - East Blue (1-61) Episode 31 – The Worst Man in the Eastern Seas! Fishman Pirate Arlong!-651087.flv.part' --playpath mp4:s/ve1320347/video.mp4 --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: 2
[rtmpdump] DEBUG: Parsed host    : c18fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c18fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve1320347/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c18fs.fplive.net:1935/c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257
[rtmpdump] DEBUG: app      : c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257
[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: Client type: 06
[rtmpdump] DEBUG: HandShake: DH pubkey position: 472
[rtmpdump] DEBUG: HandShake: Client digest offset: 1383
[rtmpdump] DEBUG: HandShake: Initial client digest: 
[rtmpdump] DEBUG: 14 a4 d2 57 cb 8b 17 06 2b b9 b4 af 88 1d 92 f8
[rtmpdump] DEBUG: 57 7f 43 f1 26 4f dd 58 fa a9 9a d9 18 3a 85 bd
[rtmpdump] DEBUG: HandShake: Type Answer   : 09
[rtmpdump] WARNING: HandShake: Type mismatch: client sent 6, server answered 9
[rtmpdump] DEBUG: HandShake: Server Uptime : 1342184437
[rtmpdump] DEBUG: HandShake: FMS Version   : 4.5.3.1
[rtmpdump] DEBUG: HandShake: Server DH public key offset: 574
[rtmpdump] DEBUG: HandShake: Secret key: 
[rtmpdump] DEBUG: ef 54 b3 7d c0 65 b3 18 0a 17 f0 a5 c4 ad 99 dc
[rtmpdump] DEBUG: 3a da 8e a9 f7 cf 56 a5 d1 df 73 64 b9 35 b5 a1
[rtmpdump] DEBUG: 60 9c dc fb 7a fb 1b 42 41 92 0f 62 48 26 cd d1
[rtmpdump] DEBUG: 1d 16 ec 53 6a 4e d6 19 88 5f d6 af a4 14 94 48
[rtmpdump] DEBUG: 61 29 35 0b ea 99 32 61 9d 29 be 24 5f a8 d0 c2
[rtmpdump] DEBUG: 54 9f 62 5b 6f 61 68 e2 95 aa 2a 07 80 76 eb 59
[rtmpdump] DEBUG: c8 f5 ef e7 8e 9c 12 bf ea c5 60 03 5e d2 2d 68
[rtmpdump] DEBUG: 01 e2 a0 55 d3 36 8a 6b 1e 7d 58 bb a6 c6 56 65
[rtmpdump] DEBUG: RC4 Out Key: 
[rtmpdump] DEBUG: 66 3d d2 14 ac 2d 29 c5 f2 a3 10 50 25 84 c8 e4
[rtmpdump] DEBUG: RC4 In Key: 
[rtmpdump] DEBUG: 5b 6c d0 f8 ee 31 b6 30 7b fd 38 b9 fe 52 2a 13
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest: 
[rtmpdump] DEBUG: dc 89 06 a5 06 3e 54 2f 90 90 2f 45 98 89 90 0d
[rtmpdump] DEBUG: 77 a9 46 87 69 d5 0a 50 4c b2 91 41 40 b7 35 37
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: 46 58 9e 9a f3 c1 17 a1 32 f6 fa 61 70 d7 87 1b
[rtmpdump] DEBUG: 5c 96 95 d3 71 e2 ec 9b 36 f2 e8 c3 0b ac f2 9a
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: d0 ed f6 f4 75 43 3d d1 63 d4 ce 32 a9 84 15 61
[rtmpdump] DEBUG: d6 8c 85 db 32 2d 1f 67 08 d7 73 d0 5f 9e 77 b7
[rtmpdump] DEBUG: HandShake: Digest key: 
[rtmpdump] DEBUG: 4f 90 0f 47 c5 36 74 fe 6f f2 4d bc bd d0 8c 7d
[rtmpdump] DEBUG: 14 2a 70 de 90 85 38 6e ba e8 89 91 e3 31 bc 1b
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: d0 ed f6 f4 75 43 3d d1 63 d4 ce 32 a9 84 15 61
[rtmpdump] DEBUG: d6 8c 85 db 32 2d 1f 67 08 d7 73 d0 5f 9e 77 b7
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 128
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 165 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:  NetConnection.Connect.Rejected>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Connection failed.>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  [ Server.Reject ] : Connection failed.>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_error>
[rtmpdump] ERROR: rtmp server sent error
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <close>
[rtmpdump] ERROR: rtmp server requested close
[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: 2
[rtmpdump] DEBUG: Parsed host    : c18fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c18fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve1320347/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c18fs.fplive.net:1935/c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257
[rtmpdump] DEBUG: app      : c18?nvb=20150103230130&nva=20150104030230&token=08ce67ebda82cad520257
[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 "youtube-dl/__main__.py", line 19, in <module>
    youtube_dl.main()
  File "youtube-dl/youtube_dl/__init__.py", line 361, in main
    _real_main(argv)
  File "youtube-dl/youtube_dl/__init__.py", line 351, in _real_main
    retcode = ydl.download(all_urls)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 1165, in download
    res = self.extract_info(url)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 603, in extract_info
    return self.process_ie_result(ie_result, download, extra_info)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 649, in process_ie_result
    return self.process_video_result(ie_result, download=download)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 938, in process_video_result
    self.process_info(new_info)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 1136, in process_info
    success = dl(filename, info_dict)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 1112, in dl
    return fd.download(name, info)
  File "youtube-dl/youtube_dl/downloader/common.py", line 297, in download
    return self.real_download(filename, info_dict)
  File "youtube-dl/youtube_dl/downloader/rtmp.py", line 206, in real_download
    self.report_error('rtmpdump exited with code %d' % retval)
  File "youtube-dl/youtube_dl/downloader/common.py", line 149, in report_error
    self.ydl.report_error(*args, **kargs)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 478, in report_error
    self.trouble(error_message, tb)
  File "youtube-dl/youtube_dl/YoutubeDL.py", line 440, in trouble
    tb_data = traceback.format_list(traceback.extract_stack())
IDerr commented 9 years ago

Due to licensing restrictions (country), i can't try on my linux. Sorry.

comex commented 9 years ago

I'm having a similar issue with some Crunchyroll videos. Here is a pcap for the RTMP traffic: http://dl.dropbox.com/u/1237941/crunchyroll.pcapng

edit: this is using rtmpdump commit a107cef9b392616dff54fabfd37f985ee2190a6f, the latest.

Log:

[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-v', 'http://www.crunchyroll.com/squid-girl/episode-8-arent-you-a-squiddle-under-the-weather-ink-that-a-new-ability-squidnt-you-bring-an-umbrella-560120', '-o', 'natsu.mp4']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2014.10.30
[debug] Git HEAD: 2dc5c41
[debug] Python version 2.7.9 - Darwin-14.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 2.5, ffprobe 2.5
[debug] Proxy map: {}
[Crunchyroll] 560120: Downloading webpage
[Crunchyroll] 560120: Downloading media info
[Crunchyroll] 560120: Downloading media info for 360p
[Crunchyroll] 560120: Downloading media info for 480p
[Crunchyroll] 560120: Downloading subtitles for English (US)
/usr/local/lib/python2.7/site-packages/youtube_dl-2014.10.30-py2.7.egg/youtube_dl/extractor/crunchyroll.py:268: FutureWarning: The behavior of this method will change in future versions.  Use specific 'len(elem)' or 'elem is not None' test instead.
  if not sub_root:
[Crunchyroll] 560120: Downloading subtitles for Deutsch
[debug] Invoking downloader on 'rtmpe://c19fs.fplive.net/c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355'
[download] Destination: natsu.mp4
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmpe://c19fs.fplive.net/c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355' -o natsu.mp4.part --playpath mp4:s/ve769993/video.mp4 --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: 2
[rtmpdump] DEBUG: Parsed host    : c19fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c19fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve769993/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c19fs.fplive.net:1935/c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355
[rtmpdump] DEBUG: app      : c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355
[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: Client type: 06
[rtmpdump] DEBUG: HandShake: DH pubkey position: 472
[rtmpdump] DEBUG: HandShake: Client digest offset: 1204
[rtmpdump] DEBUG: HandShake: Initial client digest: 
[rtmpdump] DEBUG: d8 24 a1 39 0f 26 54 ab 40 d1 60 f0 4c ad 4a 15
[rtmpdump] DEBUG: 66 6f 56 20 b9 61 5c ae 32 b0 9a 26 b0 95 07 35
[rtmpdump] DEBUG: HandShake: Type Answer   : 09
[rtmpdump] WARNING: HandShake: Type mismatch: client sent 6, server answered 9
[rtmpdump] DEBUG: HandShake: Server Uptime : 255261926
[rtmpdump] DEBUG: HandShake: FMS Version   : 4.5.3.1
[rtmpdump] DEBUG: HandShake: Server DH public key offset: 529
[rtmpdump] DEBUG: HandShake: Secret key: 
[rtmpdump] DEBUG: c3 52 dd b7 ce 82 88 23 02 64 f8 ee e0 15 b9 0c
[rtmpdump] DEBUG: 12 82 67 66 d6 b0 bc cb 88 bf 9f 08 7a 17 a1 81
[rtmpdump] DEBUG: af 96 40 47 54 72 21 59 16 51 ea 24 b2 32 e0 80
[rtmpdump] DEBUG: 08 33 1f 18 ab 5a 6a da ac e9 a2 7c a1 b6 8b d4
[rtmpdump] DEBUG: e5 13 e1 81 fd 76 e3 d2 be be fe d3 80 b4 8c 37
[rtmpdump] DEBUG: 30 8b 74 bb 63 18 b0 1e 1d de 1b ed 1f 6e 21 45
[rtmpdump] DEBUG: af 35 5b 43 40 c9 50 ea cf 92 ad f8 cb be 47 1d
[rtmpdump] DEBUG: ce f2 81 2e ca df 2a 29 d9 64 78 26 d5 cc ef 94
[rtmpdump] DEBUG: RC4 Out Key: 
[rtmpdump] DEBUG: d2 0b 00 b6 b8 34 84 85 6a cc 14 0b 9d 24 ef 6f
[rtmpdump] DEBUG: RC4 In Key: 
[rtmpdump] DEBUG: 1c 33 dd c3 43 55 89 ad 92 8d b6 39 e9 e8 7a 88
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest: 
[rtmpdump] DEBUG: f2 ff eb ff 8b 8a 35 96 45 ca f6 48 f9 b4 13 28
[rtmpdump] DEBUG: 4c b7 d5 3e 49 08 43 94 04 3e 58 e4 88 30 46 f4
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: f1 ae 2d 12 be 7d 37 7d 3c 4a 87 84 04 a2 d3 bc
[rtmpdump] DEBUG: 5e 42 03 0c 6e 3c cf 89 db 04 b6 45 f1 65 36 e2
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: 39 d9 4e e7 14 85 79 8c 7d 80 fa e5 a5 53 02 ac
[rtmpdump] DEBUG: a3 63 6a 95 d2 8e 67 2b 13 20 87 b6 ba e2 c6 1e
[rtmpdump] DEBUG: HandShake: Digest key: 
[rtmpdump] DEBUG: d8 6f be 2a 29 bc 48 a0 5d 7a 3c 57 80 9a 50 8e
[rtmpdump] DEBUG: 54 ea be 45 a1 3f 46 26 68 ea 4e cb 91 e6 6b 67
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: 39 d9 4e e7 14 85 79 8c 7d 80 fa e5 a5 53 02 ac
[rtmpdump] DEBUG: a3 63 6a 95 d2 8e 67 2b 13 20 87 b6 ba e2 c6 1e
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 128
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 165 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:  NetConnection.Connect.Rejected>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Connection failed.>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  [ Server.Reject ] : Connection failed.>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_error>
[rtmpdump] ERROR: rtmp server sent error
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <close>
[rtmpdump] ERROR: rtmp server requested close
[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: 2
[rtmpdump] DEBUG: Parsed host    : c19fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c19fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve769993/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c19fs.fplive.net:1935/c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355
[rtmpdump] DEBUG: app      : c19?nvb=20150324044612&nva=20150324084712&token=0b34d9945f8b465685355
[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
dstftw commented 9 years ago

I believe this will be fixed in the next version of youtube-dl. Thanks for the report.

Royerson commented 9 years ago

thank you, based devs

Royerson commented 9 years ago

Spoke too soon, Still getting pretty much the same thing.

[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://www.crunchyroll.com/one-piece/episode-31-the-worst-man-in-the-eastern-seas-fishman-pirate-arlong-651087']
[debug] Encodings: locale cp1252, fs mbcs, out None, pref cp1252
[debug] youtube-dl version 2015.04.28
[debug] Python version 2.7.8 - Windows-8-6.2.9200
[debug] exe versions: ffmpeg N-71737-gb410c69, ffprobe N-71737-gb410c69, rtmpdump 2.4
[debug] Proxy map: {}
[Crunchyroll] 651087: Downloading webpage
[Crunchyroll] 651087: Downloading media info
[Crunchyroll] 651087: Downloading media info for 360p
[Crunchyroll] 651087: Downloading media info for 480p
[debug] Invoking downloader on 'rtmpe://c17fs.fplive.net/c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4'
[download] Destination: One Piece - East Blue (1-61) Episode 31 – The Worst Man in the Eastern Seas! Fishman Pirate Arlong!-651087.flv
[debug] rtmpdump command line: rtmpdump --verbose -r 'rtmpe://c17fs.fplive.net/c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4' -o 'One Piece - East Blue (1-61) Episode 31 – The Worst Man in the Eastern Seas! Fishman Pirate Arlong!-651087.flv.part' --playpath mp4:s/ve1320347/video.mp4 --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: 2
[rtmpdump] DEBUG: Parsed host    : c17fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c17fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve1320347/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c17fs.fplive.net:1935/c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4
[rtmpdump] DEBUG: app      : c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4
[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: Client type: 06
[rtmpdump] DEBUG: HandShake: DH pubkey position: 166
[rtmpdump] DEBUG: HandShake: Client digest offset: 879
[rtmpdump] DEBUG: HandShake: Initial client digest: 
[rtmpdump] DEBUG: 5a 85 02 f6 f5 e1 1f ab d3 d6 74 bb e2 e2 98 18
[rtmpdump] DEBUG: e8 f8 3f eb 81 ec fa 71 f1 3a 9f 2b 07 3a 07 d2
[rtmpdump] DEBUG: HandShake: Type Answer   : 09
[rtmpdump] WARNING: HandShake: Type mismatch: client sent 6, server answered 9
[rtmpdump] DEBUG: HandShake: Server Uptime : 2138658908
[rtmpdump] DEBUG: HandShake: FMS Version   : 4.5.3.1
[rtmpdump] DEBUG: HandShake: Server DH public key offset: 537
[rtmpdump] DEBUG: HandShake: Secret key: 
[rtmpdump] DEBUG: ef 9d 9a f0 32 0c d9 63 22 87 46 6c de cc 27 7d
[rtmpdump] DEBUG: 4c a9 9e 55 79 e0 2d e5 78 7c b0 61 5b 54 b8 ee
[rtmpdump] DEBUG: 78 73 da 2d 4c 61 9b 95 d4 73 66 fc c8 db 69 fb
[rtmpdump] DEBUG: db c0 fd 8f 3f 36 e8 de 83 57 fc 37 28 86 4d 8a
[rtmpdump] DEBUG: 91 98 38 4c 24 c9 68 55 3d b6 75 1a 93 68 b2 01
[rtmpdump] DEBUG: 76 ee 42 ce 2e 02 c8 a3 b0 ba ac 32 9b de 2f 28
[rtmpdump] DEBUG: 5a 87 f0 8e fe ea 99 53 99 65 ca c4 12 f9 d4 95
[rtmpdump] DEBUG: 5f 3c 99 9f 71 47 0b 9e 99 33 dd 9c b3 82 4c 4e
[rtmpdump] DEBUG: RC4 Out Key: 
[rtmpdump] DEBUG: 70 65 89 75 64 51 32 e6 34 4a 6c f6 5c 0c 0d d2
[rtmpdump] DEBUG: RC4 In Key: 
[rtmpdump] DEBUG: 22 3c 82 ac 5b ac c6 a7 e2 4d 0b a1 26 f6 c5 50
[rtmpdump] DEBUG: HandShake: Calculated digest key from secure key and server digest: 
[rtmpdump] DEBUG: fb 4f ab cb 5a ef be b5 55 b8 e2 49 3e cf e7 8d
[rtmpdump] DEBUG: 80 73 b1 0f 75 38 4d c8 d9 79 c1 71 96 7d 95 fa
[rtmpdump] DEBUG: HandShake: Client signature calculated:
[rtmpdump] DEBUG: 4b 90 1b 4f cf b0 b3 45 17 56 d4 92 e3 d5 3b 04
[rtmpdump] DEBUG: 22 3d f4 d2 56 b7 02 46 12 6c ed bf ea f3 84 f8
[rtmpdump] DEBUG: HandShake: Server sent signature:
[rtmpdump] DEBUG: f1 95 82 5c a1 29 d3 4b 09 dd 80 53 52 b6 40 21
[rtmpdump] DEBUG: b2 63 80 73 f3 de f9 a7 b8 3d 61 60 a5 3d fd 20
[rtmpdump] DEBUG: HandShake: Digest key: 
[rtmpdump] DEBUG: 1e 75 1d 47 23 30 28 da 4b bd fa d7 11 fe a5 21
[rtmpdump] DEBUG: ef 0b 49 09 60 ba c5 20 94 f6 c3 88 32 87 94 2c
[rtmpdump] DEBUG: HandShake: Signature calculated:
[rtmpdump] DEBUG: f1 95 82 5c a1 29 d3 4b 09 dd 80 53 52 b6 40 21
[rtmpdump] DEBUG: b2 63 80 73 f3 de f9 a7 b8 3d 61 60 a5 3d fd 20
[rtmpdump] DEBUG: HandShake: Genuine Adobe Flash Media Server
[rtmpdump] DEBUG: HandShake: Handshaking finished....
[rtmpdump] DEBUG: RTMP_Connect1, handshaked
[rtmpdump] DEBUG: Invoking connect
[rtmpdump] INFO: Connected...
[rtmpdump] DEBUG: HandleChangeChunkSize, received: chunk size change to 128
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 165 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:  NetConnection.Connect.Rejected>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  Connection failed.>
[rtmpdump] DEBUG: Property: <Name:        description, STRING:  [ Server.Reject ] : Connection failed.>
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <_error>
[rtmpdump] ERROR: rtmp server sent error
[rtmpdump] DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
[rtmpdump] DEBUG: (object begin)
[rtmpdump] DEBUG: Property: NULL
[rtmpdump] DEBUG: (object end)
[rtmpdump] DEBUG: HandleInvoke, server invoking <close>
[rtmpdump] ERROR: rtmp server requested close
[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: 2
[rtmpdump] DEBUG: Parsed host    : c17fs.fplive.net
[rtmpdump] DEBUG: Parsed app     : c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Number of skipped key frames for resume: 1
[rtmpdump] DEBUG: Protocol : RTMPE
[rtmpdump] DEBUG: Hostname : c17fs.fplive.net
[rtmpdump] DEBUG: Port     : 1935
[rtmpdump] DEBUG: Playpath : mp4:s/ve1320347/video.mp4
[rtmpdump] DEBUG: tcUrl    : rtmpe://c17fs.fplive.net:1935/c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4
[rtmpdump] DEBUG: app      : c17?nvb=20150429193320&nva=20150429233420&token=0fecb1f68350692e305a4
[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 "__main__.py", line 19, in <module>
  File "youtube_dl\__init__.pyo", line 401, in main
  File "youtube_dl\__init__.pyo", line 391, in _real_main
  File "youtube_dl\YoutubeDL.pyo", line 1473, in download
  File "youtube_dl\YoutubeDL.pyo", line 660, in extract_info
  File "youtube_dl\YoutubeDL.pyo", line 706, in process_ie_result
  File "youtube_dl\YoutubeDL.pyo", line 1151, in process_video_result
  File "youtube_dl\YoutubeDL.pyo", line 1406, in process_info
  File "youtube_dl\YoutubeDL.pyo", line 1355, in dl
  File "youtube_dl\downloader\common.pyo", line 342, in download
  File "youtube_dl\downloader\rtmp.pyo", line 202, in real_download
  File "youtube_dl\downloader\common.pyo", line 155, in report_error
  File "youtube_dl\YoutubeDL.pyo", line 527, in report_error
  File "youtube_dl\YoutubeDL.pyo", line 489, in trouble