View Single Post
  #25  
Old 06-07-2011, 03:12 AM
DumberThanPalin DumberThanPalin is offline
Junior Member
 
Join Date: Jun 2011
Posts: 2
DumberThanPalin is on a distinguished road
Default

Re: How to download Amazon Video on Demand (VOD) videos with freeware rtmpdump


Quote:
Originally Posted by srpenn82 View Post
ive been able to download some amazon vod using this syntax:

rtmpdump --verbose --flv output.flv --protocol 2 --host cp79203.edgefcs.net --app "ondemand?ovpfv=2.1.4&auth=da.alaYdwbJbFbXdOdodHdd bhbabTdKdjce-bngs5z-iYG-KvI1Cyt-k7scjhnfm9m3qckVpXpbtWoSk5jfl3pTlRscjcn5mcmaqbjdo5 qTsen9lTj5mWpUlTtWj8oVm9m9qekSohp8&aifp=v001&slist =ans/107536/h264/HBO/2/-ep/452/p39/ics/p/" --playpath mp4:ans/107536/h264/HBO/2/-ep/452/p39/ics/p/7d43426a-fd92-4c85-a36a-09635932402e-094.mp4 --swfVfy http://ecx.images-amazon.com/images/G/01/digital/video/streaming/3.56-0/UnboxScreeningRoomClient._V175683007_.swf

Anyway, I took a look at your syntax and unpacked the Amazon Flash client to extract the new swf player address. I have changed the --swfvfy URL to http://ecx.images-amazon.com/images/...179179119_.swf

Still fails, though. All versions of rtmpdump after 2.1d have trouble convincing the server to accept a type 6 handshake instead of a type 9:

Code:
C:\Program Files\get_iplayer\rtmpdump-2.2d>c:

C:\Program Files\get_iplayer\rtmpdump-2.2d>cd "C:\Program Files\get_iplayer\rtmp
dump-2.2d"

C:\Program Files\get_iplayer\rtmpdump-2.2d>rtmpdump
RTMPDump v2.2d
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a hostname (--host) or url (-r "rtmp://host[:port]/playp
ath") containing a hostname

C:\Program Files\get_iplayer\rtmpdump-2.2d>rtmpdump --verbose --flv output.flv -
-protocol 2 --host cp79203.edgefcs.net --app "ondemand?ovpfv=2.1.4&auth=da.alaYd
wbJbFbXdOdodHdd bhbabTdKdjce-bngs5z-iYG-KvI1Cyt-k7scjhnfm9m3qckVpXpbtWoSk5jfl3pT
lRscjcn5mcmaqbjdo5 qTsen9lTj5mWpUlTtWj8oVm9m9qekSohp8&aifp=v001&slist =ans/10753
6/h264/HBO/2/-ep/452/p39/ics/p/" --playpath mp4:ans/107536/h264/HBO/2/-ep/452/p3
9/ics/p/7d43426a-fd92-4c85-a36a-09635932402e-094.mp4 --swfVfy http://ecx.images-
amazon.com/images/G/01/digital/video/streaming/5.4-0/UnboxScreeningRoomClient._V
179179119_.swf
RTMPDump v2.2d
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified a port (--port) or rtmp url (-r), using default p
ort 1935
DEBUG: Protocol : RTMPE
DEBUG: Hostname : cp79203.edgefcs.net
DEBUG: Port     : 1935
DEBUG: Playpath : mp4:ans/107536/h264/HBO/2/-ep/452/p39/ics/p/7d43426a-fd92-4c85
-a36a-09635932402e-094.mp4
DEBUG: tcUrl    : rtmpe://cp79203.edgefcs.net:1935/ondemand?ovpfv=2.1.4&auth=da.
alaYdwbJbFbXdOdodHdd bhbabTdKdjce-bngs5z-iYG-KvI1Cyt-k7scjhnfm9m3qckVpXpbtWoSk5j
fl3pTlRscjcn5mcmaqbjdo5 qTsen9lTj5mWpUlTtWj8oVm9m9qekSohp8&aifp=v001&slist =ans/
107536/h264/HBO/2/-ep/452/p39/ics/p/
DEBUG: swfUrl   : http://ecx.images-amazon.com/images/.../video/streami
ng/5.4-0/UnboxScreeningRoomClient._V179179119_.swf
DEBUG: app      : ondemand?ovpfv=2.1.4&auth=da.alaYdwbJbFbXdOdodHdd bhbabTdKdjce
-bngs5z-iYG-KvI1Cyt-k7scjhnfm9m3qckVpXpbtWoSk5jfl3pTlRscjcn5mcmaqbjdo5 qTsen9lTj
5mWpUlTtWj8oVm9m9qekSohp8&aifp=v001&slist =ans/107536/h264/HBO/2/-ep/452/p39/ics
/p/
DEBUG: live     : no
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: 08 f5 00 95 e0 35 af 01 ac 31 1e 9d 29 b7 f8 01
DEBUG: 7a 07 eb 32 69 a5 c4 6a ef ab ea c6 2a 09 b0 d8
DEBUG: SWFSize  : 881927
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 166
DEBUG: HandShake: Client digest offset: 879
DEBUG: HandShake: Initial client digest:
DEBUG: 5a 19 52 77 e5 5b 4c 8a 57 21 70 96 db 22 5f 44
DEBUG: 89 47 d5 7b 00 eb 7e d2 2d 58 e1 3e 60 ba 81 f5
DEBUG: HandShake: Type Answer   : 09
WARNING: HandShake: Type mismatch: client sent 6, server answered 9
DEBUG: HandShake: Server Uptime : 1027854980
DEBUG: HandShake: FMS Version   : 3.5.6.1
DEBUG: HandShake: Server DH public key offset: 326
DEBUG: HandShake: Secret key:
DEBUG: 9d 08 22 1f cc 7b cf 6b 5a 14 69 21 f8 1a 32 7c
DEBUG: 46 45 5f ff 33 51 4b 9d d9 1e 52 a3 ac 9b d8 a3
DEBUG: e8 15 3e ed dd 6f e0 ee c6 fb 2b 99 27 2e 07 da
DEBUG: f6 4f 53 22 46 4a fe 2b aa e7 bd 2c 29 cb 2f 7c
DEBUG: a1 56 65 3f 98 f4 a3 2a a1 ed c9 03 28 98 76 ce
DEBUG: 51 d0 34 5b 7f 51 0e 3c 45 35 98 9b 27 2e 26 8a
DEBUG: 37 e1 c0 56 d0 31 34 8e 29 44 38 86 5c 1d 82 50
DEBUG: e7 b9 f5 ec 4f ad 0c bc 30 2e c6 e9 71 55 3d ad
DEBUG: RC4 Out Key:
DEBUG: b9 b6 90 8e 1c e3 dd 92 d0 f4 3e 15 6d 71 38 d2
DEBUG: RC4 In Key:
DEBUG: 34 31 4e 0d 85 6e 00 6d 8a 0a 9a bb 25 54 a3 63
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: 27 19 95 9d cd b4 31 46 e6 9f 1d 69 98 f8 0f 3f
DEBUG: 84 9d dc ea 7a 7c 51 2a 11 b5 96 7f ff 33 df ef
DEBUG: HandShake: Client signature calculated:
DEBUG: ad 93 da 92 9b 4e 2e 70 fa 94 3e bb 9f 38 d0 0b
DEBUG: 41 a1 33 3e f7 d4 52 23 6f 83 ca 2f b3 48 58 0f
DEBUG: HandShake: Server sent signature:
DEBUG: 06 e2 40 f4 7e fc d5 b2 f6 04 6e a8 91 f6 e2 04
DEBUG: 81 f1 3c ff 74 2b 03 f3 81 3f b9 92 f6 4f 55 9a
DEBUG: HandShake: Digest key:
DEBUG: 15 5c 9f 1b 3e a0 71 1a 26 7c fa d3 c8 ea d2 82
DEBUG: fb 2e aa 5c 49 04 2d b1 77 b0 3f a8 cd e3 64 2a
DEBUG: HandShake: Signature calculated:
DEBUG: 1c 76 36 3b 31 4b 46 53 67 87 ab d4 48 1c 6d eb
DEBUG: 1b 81 d3 58 ee 26 ef 53 ad eb 7f 05 1b a4 5c af
WARNING: HandShake: Server not genuine Adobe!
ERROR: RTMP_Connect1, handshake failed.
DEBUG: Closing connection.


C:\Program Files\get_iplayer\rtmpdump-2.2d>pause
Press any key to continue . . .
Anybody with older rtmpdump wanna give it a shot? Once again, the updated URL for swfVfy instruction is: --swfVfy http://ecx.images-
amazon.com/images/G/01/digital/video/streaming/5.4-0/UnboxScreeningRoomClient._V
179179119_.swf
Reply With Quote