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 12-20-2014, 07:06 PM
claudiogc claudiogc is offline
Junior Member
 
Join Date: Dec 2014
Posts: 7
claudiogc is on a distinguished road
Default

Rtmpdump not recording video streaming: How to fix it?


Hi!

I'm using Debian Wheezy 64bit and i'm trying to capture/record some streaming videos from internet using "rtmpdump", but is not working!

I'm getting the following error message when i enter with the "rtmpdump" command(see the entire command bellow).
Quote:
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close
When i put "-V" in the end of "rtmpdump" command i get:
Quote:
...
...
DEBUG: RTMP_ClientPacket, received: invoke 125 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.>
DEBUG: Property: NULL
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.
My question is: What is that means? What i'm doing wrong and how can i fix it?

The entire error code i'll put in pastebin, he is too big and i thin it will pollute this post.
http://pastebin.com/gFuVes6t

Bellow, exactly what i'm trying to do in the command terminal:
1. iptables -t nat -A OUTPUT -p tcp --dport 1935 -m owner ! --uid-owner root -j REDIRECT
2. rtmpsuck

When i enter "rtmpsuck" and open the video using Firefox, i get this:
Quote:
RTMP Proxy Server v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu; license: GPL

Streaming on rtmp://0.0.0.0:1935
WARNING: Trying different position for client digest!
Processing connect
app: cameraprive_main/5433
flashVer: LNX 11,2,202,425
swfUrl: https://assets.cameraprive.com/chat/...swf?1419084533
tcUrl: rtmp://dolphin.cameraprive.com.br/cameraprive_main/5433
pageUrl: http://cameraprive.com/br/room/amandinha-show
Playpath: cam1
Saving as: cam1
INFO: Metadata:
INFO: height 240.00
INFO: width 320.00
Playpath: cam1
Saving as: cam101
3. iptables -t nat -D OUTPUT -p tcp --dport 1935 -m owner ! --uid-owner root -j REDIRECT
4. rtmpdump -r rtmp://dolphin.cameraprive.com.br/cameraprive_main/5433 -a cameraprive_main/5433 -y cam1 -W https://assets.cameraprive.com/chat/...swf?1419084533 -f "LNX 11,2,202,425" -o test.flv

I already read these two tutorials that someone suggested and i don't unerstand what i'm doing wrong! rtmpdump: Not working properly, how to fix it?
http://pclosmag.com/html/issues/201104/page19.html
http://stream-recorder.com/forum/use...als-t8911.html

Has that "https from ""swfUrl: https://..." something to do with this error, or maybe "ViewerApp.swf?1419084533" from "swfUrl"?
Reply With Quote
  #2  
Old 12-21-2014, 05:29 AM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Hi,

so if you check the link data you get then you see that you get many parameters and some of them getting each time new values.If you want to play any stream in your player then it will not work if you still running the stream in your browser.Close the stream tab and then start the stream from your PC and now it works.If you want both (play & record = 2 x same stream) then you need to change one parameter.

Exsample: Just change the hash a little.
Code:
.....-C S:public -C S:3d4cc99358b21581f64c088d2ab6a6ca -C Z: -C Z: -C Z: -y "cam1"

.....-C S:public -C S:3d4cc99358b21581f64c088d2ab6a6cb -C Z: -C Z: -C Z: -y "cam1"
Now you can start the stream again.Use the first one for your player to watch the stream and the second you changed you can use to record the stream etc.Note that the stream data you get is used in your browser already = dosen't work if you not change the hash.Just play a little.

greetz
Reply With Quote
  #3  
Old 12-21-2014, 07:16 AM
claudiogc claudiogc is offline
Junior Member
 
Join Date: Dec 2014
Posts: 7
claudiogc is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Thanks for your answer, dude!

Quote:
.If you want to play any stream in your player then it will not work...
So, i just want save the stream, with that "-o test.flv" and IF is possible, watch it at the same time with "mplayer ~/test.flv".

Quote:
start the stream from your PC
But i'm doing this from pc? Could you explain better this part?

I did what you said and look how i mounted my "rtmpdump" command: I tried with other girl streaming because that one i posted in my original post is not online now. I closed my Firefox before run this command.
Code:
rtmpdump -r rtmp://dolphin.cameraprive.com.br/cameraprive_main/5616 -a cameraprive_main/5616 -C S:public -C S:3d4cc99358b21581f64c088d2ab6a6ca -C Z: -C Z: -C Z: -y cam1 -W https://assets.cameraprive.com/chat/...swf?1419182369 -f "LNX 11,2,202,425" -o kelly-linda.flv
rtmpsuck output:
Quote:
app: cameraprive_main/5616
flashVer: LNX 11,2,202,425
swfUrl: https://assets.cameraprive.com/chat/...swf?1419182369
tcUrl: rtmp://dolphin.cameraprive.com.br/cameraprive_main/5616
pageUrl: http://cameraprive.com/br/room/kelly-linda
Playpath: cam1
Saving as: cam1
INFO: Metadata:
INFO: height 240.00
INFO: width 320.00
Playpath: cam1
Error message: I put "-V" in the end of my "rtmpdump" command
Quote:
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : dolphin.cameraprive.com.br
DEBUG: Port : 1935
DEBUG: Playpath : cam1
DEBUG: tcUrl : rtmp://dolphin.cameraprive.com.br:1935/cameraprive_main/5616
DEBUG: swfUrl : https://assets.cameraprive.com/chat/...swf?1419182369
DEBUG: app : cameraprive_main/5616
DEBUG: flashVer : LNX 11,2,202,425
DEBUG: live : no
DEBUG: timeout : 30 sec
DEBUG: SWFSHA256:
DEBUG: 87 3b e9 59 4f 11 61 ec 40 ae 65 72 e2 ad c6 14
DEBUG: ab bc e6 ea 1b f2 a3 04 6f 81 ca 6c 53 45 b0 70
DEBUG: SWFSize : 600925
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 03
DEBUG: HandShake: Client digest offset: 430
DEBUG: HandShake: Initial client digest:
DEBUG: 11 54 86 32 95 fa 5b 81 3d 84 ae 1f e5 1e 8a 6a
DEBUG: d2 5e 49 c8 a5 2f b3 fd 79 e7 86 2e cc 0a b2 15
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 927350893
DEBUG: HandShake: FMS Version : 4.5.5.1
DEBUG: HandShake: Calculated digest key from secure key and server digest:
DEBUG: 38 21 97 ab a0 54 e6 0f b1 5d e9 b8 c5 59 32 fb
DEBUG: d4 c0 11 09 a9 c9 a7 05 12 6f 2c b0 b6 c3 64 c6
DEBUG: HandShake: Client signature calculated:
DEBUG: 6a 5d 94 73 61 04 f5 d6 03 ad 85 3a 95 a8 2b 0a
DEBUG: 32 f1 e5 4b c5 bf fd 4f bb 70 d4 3b fe 35 c1 4a
DEBUG: HandShake: Server sent signature:
DEBUG: 4f 1c 89 02 0b 9a ee b6 f4 d9 85 8b 89 11 ad 95
DEBUG: 60 1e 15 3c 4a 82 06 b6 d4 c5 2f 4f 5a 94 14 8f
DEBUG: HandShake: Digest key:
DEBUG: eb de 6d 41 87 af ed c0 5e e1 41 bf b3 43 fb 13
DEBUG: c2 ea 58 d1 ad 57 a1 65 36 7c 84 0e c6 c6 32 f2
DEBUG: HandShake: Signature calculated:
DEBUG: 4f 1c 89 02 0b 9a ee b6 f4 d9 85 8b 89 11 ad 95
DEBUG: 60 1e 15 3c 4a 82 06 b6 d4 c5 2f 4f 5a 94 14 8f
DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: RTMPSockBuf_Fill, recv returned -1. GetSockError(): 11 (Resource temporarily unavailable)
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
DEBUG: Closing connection.
This code you posted you got from my link/code? Where did you get that? Because if you did, i need to know where did you get that to learn how to change it because i want to record other videos from that site.

Last edited by claudiogc : 12-21-2014 at 11:40 AM.
Reply With Quote
  #4  
Old 12-21-2014, 05:13 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Hi,

so you need to use more parameters in your link.You get them all if you use tools like RtmpDumpHelper but there is no Linux version if I remember right.If you access any site of cam xy then have a look into source code there you can find some of them (performerId,userId,userName,uniqId etc).You could also use URL Snooper or check the memory to find all parameters but this way cost more time and is boring to do this each time manually.If you can then use a Windows OS image (XP SP3 for exsample) in a VM (VMWare (not free) or VirtualPC or VirtualBox (both freeware) where you can use RtmpDumpHelper.So I don't whether there are some lazy & simple alternative tools for Linux to get or not.

greetz
Reply With Quote
  #5  
Old 12-21-2014, 07:54 PM
claudiogc claudiogc is offline
Junior Member
 
Join Date: Dec 2014
Posts: 7
claudiogc is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Ok, i read that RtmpDumpHelper is the same thing that "rtmpsrv". This one mounts all "rtmpdump" command automatically.

I tried with him and did not work because "rtmpsrv", after creates the the command with all parameters, automatically runs "rtmpdump" without delete that iptable rule:
"iptables -t nat -D ......"

So, i saved the command created by "rtmpsrv" and restarted the system and tried run the command as ordinary user. Look what i got:

For you see better the entire code.
http://pastebin.com/fR0NsADF


After remove this part of the command "-C S:7867 -C S: -C S:v-152 -C S:viewer -C S:anonymous-Brazil-3292 -C S:ed8a9da2c55f9f457ce5f0c529b1d3a7841d943f"
And replacing "d" for "b" in "S:3d4cc99358b21581f64c088d2ab6a6cd" like you did above.
Here( INFO: Connected... ), he stay a few seconds, 20 maybe, before shows the rest of the output.
http://pastebin.com/UA2rYS72

Last edited by claudiogc : 12-21-2014 at 09:50 PM.
Reply With Quote
  #6  
Old 12-21-2014, 11:00 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Hi,

try this now.I made static link which you can use so just enter your player at the end or outputfile....
Code:
rtmpdump -v -r "rtmp://dolphin.cameraprive.com.br/" -a "cameraprive_main/5402" -C S:6666 -C S: -C S:v-11 -C S:viewer -C S:anonymous-1000 -C S:1111111111111111111111111111111111111111 -C S:public -C S:11111111111111111111111111111111 -C Z: -C Z: -C Z: -y "cam1" | "player" -
...the only thing you have to change is the app value = performerId for cam xy.
Code:
-a "cameraprive_main/5402"
In browser you can find it too in source code.
Code:
flashvars.performerId = "5402";
Or so...
Code:
rtmpdump -v -r "rtmp://dolphin.cameraprive.com.br/cameraprive_main/5402//cam1" -C S:6666 -C S: -C S:v-11 -C S:viewer -C S:anonymous-1000 -C S:1111111111111111111111111111111111111111 -C S:public -C S:11111111111111111111111111111111 -C Z: -C Z: -C Z: | "player" -
Use the link above and just enter the performerId in the app parameter and then start it.If you got success then you get this..
Code:
RTMPDump v2.4 GIT-2014-07-07 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
WARNING: You haven't specified an output file (-o filename), using stdout
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
Starting Live Stream
INFO: Metadata:
INFO:   width                   320.00
INFO:   height                  240.00
6048.617 kB / 258.40 sec
...you see its already playing for 4 minutes and in browser you got a two minutes limit if you are not regged like me.Try again.

PS: I mean you have to change the first longer hash not the last MD5 hash (sorry,my fault what I did post before).The red marked hash you need to change.

greetz
Reply With Quote
  #7  
Old 12-22-2014, 02:18 PM
claudiogc claudiogc is offline
Junior Member
 
Join Date: Dec 2014
Posts: 7
claudiogc is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Thank you very much, dude! Now is working fine.

Tell me, please, why when the girl enter in a "exclusive chat" "rtmpdump" stops recording? Is there a way to access this part?

Look the output when she enters in "exclusive chat".
Quote:
DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: HandleCtrl, received ctrl. type: 32, len: 6
DEBUG: HandleCtrl, Stream BufferReady 1
1755.737 kB / 76.91 sec
DEBUG: HandleCtrl, received ctrl. type: 31, len: 6
DEBUG: HandleCtrl, Stream BufferEmpty 1
DEBUG: Invoking deleteStream
ERROR: RTMP_ReadPacket, failed to read RTMP packet header
1755.737 kB / 76.91 sec
DEBUG: RTMP_Read returned: 0
Download complete
DEBUG: Closing connection.
When i try to record the video but she is already in "exclusive chat":
Quote:
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMP
DEBUG: Hostname : dolphin.cameraprive.com.br
DEBUG: Port : 1935
DEBUG: Playpath : cam1
DEBUG: tcUrl : rtmp://dolphin.cameraprive.com.br:1935/cameraprive_main/5433
DEBUG: app : cameraprive_main/5433
DEBUG: live : yes
DEBUG: timeout : 30 sec
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Type Answer : 03
DEBUG: HandShake: Server Uptime : 1024091944
DEBUG: HandShake: FMS Version : 4.5.5.1
WARNING: HandShake: client signature does not match!
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: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 125 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.>
DEBUG: Property: NULL
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.
Is there a way to record these videos?
Reply With Quote
  #8  
Old 12-22-2014, 07:54 PM
troller12 troller12 is offline
Senior Member
 
Join Date: Sep 2013
Posts: 433
troller12 is on a distinguished road
Default

Re: Rtmpdump not recording video streaming: How to fix it?


Hi,

most cam sites using any stream protections where you can only stream the public mode and not the private session if you are not also the private or exclusive part.If you're just a guest then the stream get closed for you.So if you're the one who gets in private / exclusive chat (if you are member) then check what kind of new link datas you get so these should be others now (so I think so I am no member on any camsite to check this out) or if not then the site should check the user status (login datas (cookie) / money status / IP etc).Something like this so I think but I am not really sure.

But if you are a paying member then you could also do the same in private as in free / public mode too.

greetz
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 04:56 PM.


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