PDA

View Full Version : save client data with rtmpsuck


Elgero
02-02-2013, 04:41 PM
Does anybody know if it's possible to let rtmpsuck save the data sent by the client?

C0+C1

C2+Connect request

additional data sent by the client

KSV
02-03-2013, 12:28 AM
Do you mean the data sent with connect request or whole communication?

Elgero
02-03-2013, 02:33 AM
I mean the whole communication. Exact copy (bytes) of what the client sends to the server and also the rtmp url.

Some websites have implemented their own "protocol". They send additional data that the client needs to respond to first or they won't send the stream. For these websites you need to use rtmpsuck. I'm doing some experiments and it seems that when you create a new connection and send the exact same bytes to the server (mimicking the data exchange), then you can trick some servers into sending the stream. This way I might be able to write a tool that can save multiple streams without having to keep a browser tab open for each stream.

KSV
02-03-2013, 04:09 AM
why not use the -z switch and redirect output to file.

rtmpsuck -z 2> Debug.txt

and then filter out lines with DEBUG2: to reduce noise in the dump.

Elgero
02-03-2013, 01:37 PM
That works fine. Thank you.


::edit::

One more question. Is there a way to make rtmpsuck save the actual stream with a different filename if it already exists (appending '(1)' or '- 1'), instead of overwriting the existing file?