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 > rtmpdump
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 04-18-2015, 09:06 PM
zdanman zdanman is offline
Junior Member
 
Join Date: Mar 2015
Posts: 8
zdanman is on a distinguished road
Question

Help Downloading an RTMP Stream from Flash Video Object


I read the stickies. I consider myself techsavy yet new to the video streaming world. Had a question about what command line I would use to download a video from the following example object....

The video players code looks like the following:

Code:
<object id="mediaplayer" width="100%" height="100%" type="application/x-shockwave-flash" data="http://yeah.com/assets/js/player.swf" bgcolor="#000000" name="mediaplayer" tabindex="0">
<param name="allowfullscreen" value="true">
<param name="allowscriptaccess" value="always">
<param name="seamlesstabbing" value="true">
<param name="wmode" value="opaque">
<param name="flashvars" value="netstreambasepath=http%3A%2F%2Fyeah.com%2Fmembers%2Fvideos&id=mediaplayer&smoothing=true&bufferlength=10&skin=http%3A%2F%2Fyeah.com%2Fassets%2Fjs%2Fminima12.zip&file=mp4%3A81NlloBFFTwuv7H7We19%2Fja7HWrvj0gA8RzcPGc2l8crly3UcHXwQ&streamer=rtmpe%3A%2F%2Fs3.pepper.com%3A1937%2Fvideo&image=http%3A%2F%2Fyeah.com%2Fassets%2Fimg%2Fplayer.jpg&u=zdanman&controlbar.position=over">
</object>
Translated for the readers convenience, it contains the following parameters:

Code:
data="http://yeah.com/assets/js/player.swf"
netstreambasepath="http://yeah.com/members/videos"
id="mediaplayer"
smoothing="true"
bufferlength="10"
skin="http://yeah.com/assets/js/minima12.zip"
file="mp4:81NlloBFFTwuv7H7We19/ja7HWrvj0gA8RzcPGc2l8crly3UcHXwQ"
streamer="rtmpe://s3.pepper.com:1937/video"
image="http://yeah.com/assets/img/player.jpg"
u="zdanman"
controlbar.position="over"


What parameters would I put in the command line (running rtmpdump from command prompt)?

I tried the following:

Code:
F:\rtmp\rtmpdump-2.3-windows>rtmpdump.exe -r "rtmp://s3.pepper.com:1937/video" -o "f:\temp.flv"
Which returned...

Code:
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: You must specify a playpath (--playpath) or url (-r "rtmp://host[:port]/playpath") containing a playpath

Please help!!!
Reply With Quote
  #2  
Old 04-26-2015, 09:09 AM
zdanman zdanman is offline
Junior Member
 
Join Date: Mar 2015
Posts: 8
zdanman is on a distinguished road
Lightbulb

Re: Help Downloading an RTMP Stream from Flash Video Object


K so here is an update.... I tried the following command line and it came up with the following verbose output ('similar' to the following):

Code:
rtmpdump -r "rtmpe://s3.pepper.com:1937/video" -p "http://yeah.com/members/videos" -W "http://yeah.com/assets/js/player.swf" -y "mp4:8
1NlloBFFTwuv7H7We19/ja7HWrvj0gA8RzcPGc2l8crly3UcHXwQ" -o "test234.flv" -V
RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMPE
DEBUG: Hostname : s3.pepper.com
DEBUG: Port     : 1937
DEBUG: Playpath : mp4:81NlloBFFTwuv7H7We19/ja7HWrvj0gA8RzcPGc2l8crly3UcHXwQ
DEBUG: tcUrl    : rtmpe://s3.pepper.com:1937/video
DEBUG: swfUrl   : http://yeah.com/assets/js/player.swf
DEBUG: pageUrl  : http://yeah.com/members/videos
DEBUG: app      : video
DEBUG: live     : no
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: c5 6d 08 73 89 dc 87 26 96 db 5d 8d 42 2b 02 78
DEBUG: 96 50 48 9d 07 58 71 df 96 5b 7a ea bc 67 53 d3
DEBUG: SWFSize  : 207192
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: a1 65 36 a7 ad 70 e7 fe 81 59 39 15 53 c4 2c 38
DEBUG: 9c b9 4e 2b 95 ec 4f 0a f5 e0 45 da 5f de d4 5a
DEBUG: HandShake: Type Answer   : 06
DEBUG: HandShake: Server Uptime : 1980611102
DEBUG: HandShake: FMS Version   : 3.0.2.1
WARNING: Trying different position for server digest!
DEBUG: HandShake: Server DH public key offset: 772
DEBUG: HandShake: Secret key:
DEBUG: 43 14 2a 26 01 73 d3 8c 23 05 cd 2d 22 45 b1 dd
DEBUG: f8 a5 bd 84 9a 70 f4 b0 52 70 19 92 d4 ce cf 80
DEBUG: e2 6a 64 73 df e3 e5 32 22 dd aa 5f 09 1d 31 95
DEBUG: 54 9e 42 89 8d 4b 2b 7c fb 0a 3a 31 9b be 20 d0
DEBUG: 3f 62 fa 0a 8b 8c dc 82 a2 d2 35 f9 dd e1 99 1b
DEBUG: d7 e4 3a 95 c4 79 6e 79 62 33 6a 50 57 f4 25 da
DEBUG: e0 8b 22 d9 95 a3 a5 38 d1 65 19 bd 97 6c a1 1c
DEBUG: 04 f0 d1 18 1a e3 be 05 a2 ff cf 00 49 83 e9 4d
DEBUG: RC4 Out Key:
DEBUG: 13 0c 8b 47 51 5d aa e2 05 9d 4f 24 16 1b e1 e9
DEBUG: RC4 In Key:
DEBUG: 79 de ec 31 6e ec 60 8d 06 39 18 f5 4b 0c 0a f7
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: 86 61 8e 25 53 54 e4 67 c5 a3 06 5e 97 20 33 aa
DEBUG: 77 44 35 39 ed 5e 51 b7 1b 72 96 12 85 85 d3 44
DEBUG: HandShake: Client signature calculated:
DEBUG: 4a 5e 19 b9 fb 02 9b 6f d8 74 8c 50 00 32 82 6f
DEBUG: bc 33 3c 6e 2a 4a 7d 8d bc 60 0c 3c 7d c8 d0 13
DEBUG: HandShake: Server sent signature:
DEBUG: 0c 5b fc 89 57 3e b1 a2 4a a1 75 14 22 1b 11 4c
DEBUG: d7 54 a0 52 83 c4 97 fe c9 4c 64 f9 03 e9 06 a3
DEBUG: HandShake: Digest key:
DEBUG: 66 bf 82 fa 39 cb a3 99 d9 b0 05 3b ac 72 13 20
DEBUG: 84 ce 08 19 c6 f9 40 fb 65 fc a2 d9 74 04 09 58
DEBUG: HandShake: Signature calculated:
DEBUG: 0c 5b fc 89 57 3e b1 a2 4a a1 75 14 22 1b 11 4c
DEBUG: d7 54 a0 52 83 c4 97 fe c9 4c 64 f9 03 e9 06 a3
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 2500000
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG: HandleCtrl, received ctrl. type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 251 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:     error>
DEBUG: Property: <Name:               code, STRING:     NetConnection.Connect.Rejected>
DEBUG: Property: <Name:        description, STRING:     Connection failed: Application rejected connection.>
DEBUG: Property: <Name:           clientid, NUMBER:     2002384877.00>
DEBUG: Property: <Name:        secureToken, STRING:     7ada86f7887ac77472145d5a328da97171eb22b9cbaea1fd95a682b568d43b1eef8bc643>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_error>
ERROR: rtmp server sent error
DEBUG: RTMP_ClientPacket, received: invoke 18 bytes
DEBUG: (object begin)
DEBUG: Property: NULL
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <close>
ERROR: rtmp server requested close
DEBUG: Closing connection.

The main line of focus is where it says:

Connection failed: Application rejected connection.

What gives?
Reply With Quote
  #3  
Old 05-24-2015, 03:05 PM
zdanman zdanman is offline
Junior Member
 
Join Date: Mar 2015
Posts: 8
zdanman is on a distinguished road
Default

Re: Help Downloading an RTMP Stream from Flash Video Object


nothing?
Reply With Quote
  #4  
Old 05-24-2015, 03:15 PM
biezom biezom is offline
Senior Member
 
Join Date: Sep 2014
Posts: 1,025
biezom is on a distinguished road
Default

Re: Help Downloading an RTMP Stream from Flash Video Object


Quote:
Originally Posted by zdanman View Post
nothing?
hi
1) please include link to the web-page with video
2) you use RTMPDump v2.3 it's an old version
Reply With Quote
  #5  
Old 08-28-2015, 11:20 AM
zdanman zdanman is offline
Junior Member
 
Join Date: Mar 2015
Posts: 8
zdanman is on a distinguished road
Thumbs up

Re: Help Downloading an RTMP Stream from Flash Video Object


Figured it out due to a genius on this forum. They know who they are.

They let me know I was missing 2 things....

1. add the security token with the -T command line switch

example: -T "^056%5KPl{FCy"

They said you can find this token via different ways.... one way is here:

http://stream-recorder.com/forum/can...en-t18788.html

2. use the -C switch to send an arbitrary string containing the username to the RTMP server (im assuming)...

example: -C S:zdanman

So the final command line looked like this...

Code:
rtmpdump -v -r "rtmpe://s3.pepper.com:1937/video" -W "http://yeah.com/assets/js/player.swf" -p "http://yeah.com/members/videos" -y "mp4:81NlloBFFTwuv7H7We19/ja7HWrvj0gA8RzcPGc2l8crly3UcHXwQ" -T "^056%5KPl{FCy" -C S:zdanman -o "test234.flv"
Thanks a BUNCH!!!

[Edit]

Also forgot to add that I'm using the latest RTMP found here...

https://github.com/K-S-V/Scripts/rel...mpdump-2.4.zip

Last edited by zdanman : 08-28-2015 at 12:09 PM.
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:36 AM.


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