PDA

View Full Version : How to record rtmp from TotalReality.tv?


StevenRobertson
09-21-2014, 05:02 PM
For example, let's say that I want to record http://totalreality.tv/utopia.php

I'm absolutely stuck. The most successful attempt was this, which resulted in an error:

rtmpdump -v -r "rtmp://173.193.197.46/flash/B19573?MTQxMTMzODgyNjs3ZTMyMDA2NGIwOTA1ZTZiNmExMTB mNjgwZjU0MmJhNw=="

which resulted in an error:

RTMPDump v2.4
(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
ERROR: rtmp server requested close

I'm new to rtmp scraping. I used wireshark and captured the following

connect.?..........app...flash..flashVer...LNX 11,2,202,406..swfUrl..$http://static3.sawlive.tv/player.swf..tcUrl...rtmp://17.3.192.81.172/flash..fpad....capabilities.@m........audioCodecs. @.........videoCodecs.@o.......
videoFunction.?.........pageUrl....http://sawlive.tv..objectEncoding..............Ka'X\.k+.( .s...>P.L.ae.3..Y....*......_." ..GY.0..=.Q ...V.......x....l.a:#I....N...4J...R..g..'8..+.m.. ...........R...e6}../.7C.+..I.}L\h+j.4..1G&..`
.NV.Z..G...3rE..T.....=$...Q.Bt...-C.2PW.............&%..............&%................................................. .._result.?..........fmsVer...FMS/3,5,7,7009..capabilities.@?........mode.?......... ....level...status..code...NetConnection.Connect.S uccess..description...Connection succeeded...data.......version..
3,5,7,7009.....clientid.A.........objectEncoding.. ...........`.!.........&%................createStream.@........B.....
...........C.....a....getStreamLength.@..........B 19573?MTQxMTMzODgyNjs3ZTMyMDA2NGIwOTA1ZTZiNmExMTBm NjgwZjU0MmJhNw==..............._result.@.........? .............V........play............B19573?MTQxM TMzODgyNjs3ZTMyMDA2NGIwOTA1ZTZiNmExMTBmNjgwZjU0MmJ hNw==.........................._result.@.......... ........................................onStatus.. ...........level...status..code...NetStream.Play.R eset..description...Playing and resetting 19573...clientid.A.........................onStatu s.............level...status..code...NetStream.Pla y.Start..description...Started playing 19573...clientid.A........
isFastPlay....timecodeOffset...70253970L...E...... ....|RtmpSampleAccess..........,........onStatus.. .code...NetStream.Data.Start................ ....E.........
onMetaData...duration...........width.@.........he ight.@v.......
videodatarate.@|........framerate.@.@.......videoc odecid.@........
audiodatarate.@KX.......audiosamplerate.@......... audiosamplesize.@0........stereo....audiocodecid.@ $...........................d......gd....@./.p.........`..-....h...,F.......W.................C...ye.../.........FYl@^Z.....
.'.............OZ.k.B..uh..eX8..2....Ir_f.]...(.:j&S'..P..L..C.P.

peterpan
09-21-2014, 10:07 PM
rtmpdump -r "rtmp://173.192.200.78:443/flash" -a "flash" -f "WIN 13,0,0,214" -W "http://static3.sawlive.tv/player.swf" -p "http://sawlive.tv/embed/watch/RjN2NlMzM0OTQ0ZWY2YWU4NTA0ZDdjYjU_/Z2lkcmVhZzE6ZTc0ZDMzMDA0Yzc0NDJkZTFhMDIwM2QxMGMxMG NkMjc6NjMwNmExNT" -y "19573?MTQxMTM1ODU3MTs3YTQ4ZjE0YWY5YTg1MzFmMTVkYzRj MGZmODNkZDM5Nw==" -o "2014-09-21_09-03-11_19573.flv"

http://i.imgur.com/zEx3dyBl.png

StevenRobertson
09-22-2014, 10:52 AM
Thank you! It works. How did you get those values?

peterpan
09-22-2014, 11:12 AM
Just make sure you have the latest rtmpdump file ;)

StevenRobertson
09-22-2014, 11:35 AM
The command you've posted works. But how did you found all values for your command? Did you use Wireshark? Can you give me any link or any other resource where I can see how to make sense of those packets?

peterpan
09-22-2014, 11:50 AM
I just use rtmpdump.

StevenRobertson
09-22-2014, 12:36 PM
Sorry, I don't want to bother you with stupid questions! But I just don't get the process. So let's say I want to get a feed 3 from http://totalreality.tv/utopia.php. If I'll repeat the process you followed to get those information required for rtmpdump what I should do? You correctly gave me values like:

-W "http://static3.sawlive.tv/player.swf"
-p "http://sawlive.tv/embed/watch/RjN2NlMzM0OTQ0ZWY2YWU4NTA0ZDdjYjU_/Z2lkcmVhZzE6ZTc0ZDMzMDA0Yzc0NDJkZTFhMDIwM2QxMGMxMG NkMjc6NjMwNmExNT"
-y "19573?MTQxMTM1ODU3MTs3YTQ4ZjE0YWY5YTg1MzFmMTVkYzRj MGZmODNkZDM5Nw=="

How have you found those values? As I've said your code works, I just don't get how you figure out the right pageUrl (-p) playpath (-y) and etc.

StevenRobertson
09-24-2014, 09:39 AM
So, I'll answer my own question. I managed to get values using rtmpsrv. Although I had to modify the rtmpsrv source code a little and re-compile it to make it work with the non-standard port.