Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 06-19-2009, 07:29 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

SWF Verification of RTMPE stream: How to get SWFHash


Hi

How to get "swfhash|-w hexstring SHA256 hash of the decompressed SWF file (32 bytes)"?

but in this case it´s a mp4 file
Code:
rtmpe://cp71915.edgefcs.net/ondemand/?auth=eaEd_d_d_d_d_d_d_d_d_d_d_d_d_d_d_d_b7a2btdNb lcaaFcWdbdEbidybEcGdMb7-bkopb3-vga-4qoGDqRxmEt&aifp=v006&slist=c1/s/1314116/video.mp4
could you please help me ?

thanks
Reply With Quote
  #2  
Old 06-19-2009, 07:38 AM
Stream Recorder
 
Posts: n/a
Default

Re: SWF Verification of RTMPE stream: How to get SWFHash


According to RTMPDump 1.6 Readme by Andrej Stepanchuk:
Quote:
Download the swf player you want to use for SWFVerification, unzip it using
Code:
$ flasm -x file.swf
It will show the decompressed filesize, use it for --swfsize

Now generate the hash
Code:
$ openssl sha -sha256 -hmac "Genuine Adobe Flash Player 001" file.swf
and use the --swfhash "01234..." option to pass it. e.g.
Code:
$ ./rtmpdump --swfhash "123456..." --swfsize 987...
Reply With Quote
  #3  
Old 06-19-2009, 08:53 AM
flysub flysub is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
flysub is on a distinguished road
Default

Re: SWF Verification of RTMPE stream: How to get SWFHash


How to get "swf player"? before i catched with Replay Media Catcher or Jaksta but now doesn't work..
Reply With Quote
  #4  
Old 06-19-2009, 08:58 AM
Stream Recorder
 
Posts: n/a
Default

Re: SWF Verification of RTMPE stream: How to get SWFHash


Quote:
Originally Posted by flysub View Post
How to get "swf player"? before i catched with Replay Media Catcher or Jaksta but now doesn't work..
SWF files are cached by your web-browser. You may copy them from there.

You may clear the cache of your web-browser and download SWF files with Replay Media Catcher or Jaksta,...

You may also view the source of a page and find the URL of the SWF file.
Reply With Quote
  #5  
Old 06-19-2009, 10:41 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

Re: SWF Verification of RTMPE stream: How to get SWFHash


Hi

i follow the procedure, everything looks ok but appears:

"ERROR: ReadN, RTMP recv error 10060
ERROR: ReadPacket, failed to read RTMP packet header"

any ideas ?


thanks
Reply With Quote
  #6  
Old 06-22-2009, 01:15 PM
flysub flysub is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
flysub is on a distinguished road
Default

Re: SWF Verification of RTMPE stream: How to get SWFHash


i'm just trying to download with rtmpdump. i'm trying to download RTMPE with SWF Verification but i had no luck. i followed all intructions but doesn't work... this is how i trying:

according to rtmpdump's README:
Code:
Download the swf player you want to use for SWFVerification, unzip it using
        $ flasm -x file.swf
    It will show the decompressed filesize, use it for --swfsize
    Now generate the hash
        $ openssl sha -sha256 -hmac "Genuine Adobe Flash Player 001" file.swf
    and use the --swfhash "01234..." option to pass it.  e.g.
        $ ./rtmpdump --swfhash "123456..." --swfsize 987...
Code:
name:player3.swf
size:557 kb
 
$ flasm -x player3.swf
 
name=player3.$wf
swfzise=336 kb
 
$ openssl sha -sha256 -hmac "Genuine Adobe Flash Player 001" player3.swf
 
swfhash : HMAC-SHA256(player3.swf)= f8331c93aad6d8c57dd4ab70913697c24a71a28f2d876eda07b70ac20af34460

url: rtmpe://xxxx.mp4

Code:
C:\>rtmpdump --swfhash "f8331c93aad6d8c57dd4ab70913697c24a71a28f2d876eda07b70ac2
0af34460" --swfsize 336 -r "rtmpe:xxxx.mp4" -o video.mp4
RTMPDump v1.6
(c) 2009 Andrej Stepanchuk, license: GPL
DEBUG: Parsing...
DEBUG: Parsed protocol: 3
DEBUG: Parsed host    : xxxxx
DEBUG: Parsed app     : ondemand/?auth=eaEd_d_d_d_d_d_d_d_d_d_d_d_d_d_d_d_aWcMa8
cFabdZcda6dscacoc0cHbsdAay-bko7kw-vga-4qoGDqRxmEt&aifp=v006&slist=c1/s/1
314116/video.mp4
DEBUG: Parsed playpath: c1/s/1314116/video.mp4
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: Protocol : RTMPE
DEBUG: Hostname : xxxx
DEBUG: Port     : 1935
DEBUG: Playpath : c1/s/1314116/video.mp4
DEBUG: tcUrl    : rtmpe://xxxx:1935/ondemand/?auth=eaEd_d_d_d_d_d
_d_d_d_d_d_d_d_d_d_d_aWcMa8cFabdZcda6dscacoc0cHbsdAay-bko7kw-vga-4qoGDqRxmEt&amp
;aifp=v006&slist=c1/s/1314116/video.mp4
DEBUG: app      : ondemand/?auth=eaEd_d_d_d_d_d_d_d_d_d_d_d_d_d_d_d_aWcMa8cFabdZ
cda6dscacoc0cHbsdAay-bko7kw-vga-4qoGDqRxmEt&aifp=v006&slist=c1/s/1314116
/video.mp4
DEBUG: flashVer : LNX 9,0,124,0
DEBUG: live     : no
DEBUG: timeout  : 300 sec
DEBUG: SWFSHA256:
F8 33 1C 93 AA D6 D8 C5 7D D4 AB 70 91 36 97 C2 4A 71 A2 8F 2D 87 6E DA 07 B7 0A
 C2 0A F3 44 60
DEBUG: SWFSize  : 336
DEBUG: Connect, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 1215
DEBUG: HandShake: Client digest offset: 410
DEBUG: HandShake: Initial client digest:
81 08 CE 34 40 31 7F 01 64 95 BC 7C A0 4C 5C 5C 14 41 00 E9 A5 F3 2A F5 23 D2 5F
 16 4F 6B AB 47
DEBUG: HandShake: Type Answer   : 06
DEBUG: HandShake: Server Uptime : 1891095136
DEBUG: HandShake: FMS Version   : 3.0.3.1
DEBUG: HandShake: Server DH public key offset: 425
DEBUG: HandShake: Secret key:
D8 78 4D 82 E4 74 AD B2 31 04 24 D9 CA 86 FC 56 14 AD 31 DB 7D 01 D4 E9 AD C1 FB
 B8 E5 6C 43 ED 8D 3C FF 36 50 B8 CB 7E 48 0D 0E 69 20 1E E2 38 BA 5A 6F 79 84 A
5 C4 AB B7 CB 2E F7 12 A3 B1 58 81 1F BE 12 22 ED 41 C1 E4 F9 D1 29 61 68 42 80
50 80 15 55 40 E3 14 9B A9 4E 86 1A 11 13 B9 F0 1B 8F AD DD 6B 18 6D 3D 80 D8 E4
 AA E9 50 F6 8D 73 7B CF 76 D2 50 C4 20 67 00 58 77 D2 25 F0 ED
DEBUG: RC4 Out Key:
A6 7E 2E 1E 6A 0E 5D 0C 8B 3E 84 3B 37 50 43 8D
DEBUG: RC4 In Key:
3F 20 B2 45 DC 8E 8E E2 33 78 BD 01 97 FC B1 FA
DEBUG: HandShake: Client signature digest position: 410
DEBUG: HandShake: Digest key:
3E 80 DA 42 21 4A 56 CF 61 9B 99 1C CB F2 4B 5A 9D 0D 89 63 E8 DF 37 E8 A1 77 CE
 7D 89 30 31 3D
DEBUG: HandShake: Signature calculated:
32 CB 3B FF E9 B9 4F 43 40 D0 E1 50 9E A5 23 20 6C DC 2F DA 57 AF 29 38 61 6A 07
 B9 E6 55 0C DC
DEBUG: HandShake: Server sent signature:
32 CB 3B FF E9 B9 4F 43 40 D0 E1 50 9E A5 23 20 6C DC 2F DA 57 AF 29 38 61 6A 07
 B9 E6 55 0C DC
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Calculated digest key from secure key and server digest:
35 3D 6C E9 33 43 ED 05 A6 CA 06 3C 3D 98 A9 6B 40 B7 6B 80 A8 7F B4 2E 59 83 E5
 C9 1A DA D5 F6
DEBUG: HandShake: Client signature calculated:
D8 88 8B EB 3B 29 74 DF FE DE A7 AC F8 79 F6 EB 23 90 90 73 C8 3D 87 1B 35 35 65
 E4 A7 2B D6 AB
DEBUG: HandShake: Handshaking finished....
DEBUG: Connect, handshaked
Connected...
Starting download at 0.000 KB
DEBUG: GetNextMediaPacket, received: invoke 134 bytes
DEBUG: Property: <Name:                  no-name., STRING:      _error>
DEBUG: Property: <Name:                  no-name., NUMBER:      1.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:                  no-name., OBJECT>
DEBUG: Property: <Name:                     level, STRING:      error>
DEBUG: Property: <Name:                      code, STRING:      NetConnection.Co
nnect.Rejected>
DEBUG: Property: <Name:               description, STRING:      [ AccessManager.
Reject ] : Access denied!>
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG: GetNextMediaPacket, received: invoke 18 bytes
DEBUG: Property: <Name:                  no-name., STRING:      close>
DEBUG: Property: <Name:                  no-name., NUMBER:      0.00>
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
Closing connection... done!
can anyone help me ? thanks
Reply With Quote
Reply Post New Thread
Tags: , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 02:39 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons