PDA

View Full Version : Need help on this Stream


philj
02-25-2015, 03:32 PM
HI All

I am using linux, CENTOS 6, and have trouble using rmtpdump to record it. Any thoughts..

http://www.homerun.re/cricket/281230/2/afghanistan-vs-scotland-live-stream-online.html

Thanks in advance

troller12
02-25-2015, 04:37 PM
You could check the memory too to find all paramters but you have not enough time to build a link so its not long valid to execute it and token you need too.Here exsample link..
rtmpdump -v -r "rtmp://93.174.93.173:1935/zmtvliveme" -a "zmtvliveme" -W "http://static.zoomtv.me/player/jwplayer.6.5.3.swf" -p "http://www.zoomtv.me" -C S:qLEOVtXDAw -C S:1424906726 -C S:dbd538d18b01883ec74894a1c4282148 -C S:"V>JWhui^@2ESdu0?}>AN" --live -T "Q!lrB@G1)ww(-dQ4J4" -y "qLEOVtXDAw" | "player" -
RTMPDump v2.4 GIT-2015-01-15 (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...
Starting Live Stream
INFO: Metadata:
INFO: presetname Custom
INFO: creationdate Wed Feb 25 21:17:52 2015
INFO: videodevice USB 2861 Device
INFO: framerate 25.00
INFO: width 512.00
INFO: height 288.00
INFO: videocodecid avc1
INFO: videodatarate 500.00
INFO: avclevel 31.00
INFO: avcprofile 66.00
INFO: videokeyframe_frequency 5.00
INFO: audiodevice Line (USB Audio Device)
INFO: audiosamplerate 22050.00
INFO: audiochannels 1.00
INFO: audioinputvolume 67.00
INFO: audiocodecid .mp3
INFO: audiodatarate 40.00
955.768 kB / 14.54 sec
Below the dynamic string values on each new load.

-C S:1424906726
-C S:dbd538d18b01883ec74894a1c4282148
Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F

07E35C20 00 00 00 00 00 00 00 00 00 00 00 00 30 2C 31 37 ............0,17
07E35C30 39 00 06 73 77 66 55 72 6C 02 00 31 68 74 74 70 9..swfUrl..1http
07E35C40 3A 2F 2F 73 74 61 74 69 63 2E 7A 6F 6F 6D 74 76 ://static.zoomtv
07E35C50 2E 6D 65 2F 70 6C 61 79 65 72 2F 6A 77 70 6C 61 .me/player/jwpla
07E35C60 79 65 72 2E 36 2E 35 2E 33 2E 73 77 66 00 05 74 yer.6.5.3.swf..t
07E35C70 63 55 72 6C 02 00 23 72 74 6D 70 3A 2F 2F 39 33 cUrl..#rtmp://93
07E35C80 2E 31 37 34 2E 39 33 2E 37 31 3A 31 39 33 35 2F .174.93.71:1935/
07E35C90 7A 6D 74 76 6C 69 76 65 6D 65 00 04 66 70 61 64 zmtvliveme..fpad
07E35CA0 01 00 00 0C 63 61 70 61 62 69 6C 69 74 69 65 73 ....capabilities
07E35CB0 00 40 6D E0 00 00 00 00 00 00 0B 61 75 64 69 6F .@m?.......audio
07E35CC0 43 6F 64 65 63 73 00 40 AB EE 00 00 00 00 00 00 Codecs.@«î......
07E35CD0 0B 76 69 64 65 6F 43 6F 64 65 63 73 00 40 6F 80 .videoCodecs.@o€
07E35CE0 00 00 00 00 00 00 0D 76 69 64 65 6F 46 75 6E 63 .......videoFunc
07E35CF0 74 69 6F 6E 00 3F F0 00 00 00 00 00 00 00 07 70 tion.??........p
07E35D00 61 67 65 55 72 6C 02 00 35 68 74 74 70 3A 2F 2F ageUrl..5http://
07E35D10 77 77 77 2E 7A 6F 6F 6D 74 76 2E 6D 65 2F 65 6D www.zoomtv.me/em
07E35D20 62 65 64 2E 70 68 70 3F 76 3D 68 65 72 62 69 65 bed.php?v=herbie
07E35D30 26 76 77 3D 36 36 30 26 76 68 3D 34 35 30 00 0E &vw=660&vh=450..
07E35D40 6F 62 6A 65 63 74 45 6E 63 6F 64 69 6E 67 00 00 objectEncoding..
07E35D50 00 00 00 00 00 00 00 00 00 09 02 00 0A 71 4C 45 .............qLE
07E35D60 4F 56 74 58 44 41 77 02 00 0A 31 34 32 34 39 30 OVtXDAw...142490
07E35D70 35 38 32 34 02 00 20 34 38 64 37 37 66 66 32 65 5824.. 48d77ff2e
07E35D80 32 33 65 64 64 61 62 63 38 39 36 34 38 39 34 38 23eddabc89648948
07E35D90 30 39 30 38 36 66 66 02 00 1A 56 26 67 74 3B 4A 09086ff...V>J
07E35DA0 57 68 75 69 5E 40 32 45 53 64 75 30 3F 7D 26 67 Whui^@2ESdu0?}&g
07E35DB0 74 3B 41 4E 00 00 00 00 00 00 00 00 00 00 00 00 t;AN............

Offset 0 1 2 3 4 5 6 7 8 9 A B C D E F

07C10030 73 s
07C10040 65 63 75 72 65 54 6F 6B 65 6E 12 51 21 6C 72 42 ecureToken.Q!lrB
07C10050 40 47 31 29 77 77 28 2D 64 51 34 4A 34 13 73 65 @G1)ww(-dQ4J4.se
07C10060 63 75 72 65 54 6F 6B 65 6E 52 65 73 70 6F 6E 73 cureTokenRespons
07C10070 65 0F
greetz

biezom
02-25-2015, 04:41 PM
HI All

I am using linux, CENTOS 6, and have trouble using rmtpdump to record it. Any thoughts..

http://www.homerun.re/cricket/281230/2/afghanistan-vs-scotland-live-stream-online.html

Thanks in advance

-T 'Q!lrB@G1)ww(-dQ4J4'

rtmpdump -r "rtmp://93.174.93.70:1935/zmtvliveme" -a "zmtvliveme" -f "WIN 16,0,0,235" -W "http://static.zoomtv.me/player/jwplayer.6.5.3.swf" -p "http://www.zoomtv.me/embed.php?v=herbie&vw=660&vh=450" --live -C S:qLEOVtXDAw -C S:1424906869 -C S:deff5929cef8e60b32655a636dd724d3 -C S:'V>JWhui^@2ESdu0?}>AN' -y "qLEOVtXDAw" -o "2015-02-26_12-27-50_qLEOVtXDAw.flv" -T 'Q!lrB@G1)ww(-dQ4J4'

but in red, code changes each loading video, so it works only once, so you have to find your own code with rtmpsrv

green I have added ' ' because of special characters

PS: on my linux debian i need use ' ' and not " " for special characters
PS: @ troller12 sorry I did not see your answer, but I think that is complementary

troller12
02-25-2015, 04:56 PM
Twice answer is better than nothing. :)

greetz

philj
02-25-2015, 05:41 PM
Hi Troller12 and biezom and All

Thanks for the brilliant answer. I just want to be sure I get this.

First question: Once I access the URL new dynamic string values are generated each time.
i.e., -C S:1424906726 and -C S:dbd538d18b01883ec74894a1c4282148 in your examples?

Second question: How do I use rtmpsrv in this case to grab the dump in order to see the dynamic string values?

Thanks in advance

biezom
02-25-2015, 05:59 PM
Hi Troller12 and biezom and All

Thanks for the brilliant answer. I just want to be sure I get this.

First question: Once I access the URL new dynamic string values are generated each time.
i.e., -C S:1424906726 and -C S:dbd538d18b01883ec74894a1c4282148 in your examples?

Second question: How do I use rtmpsrv in this case to grab the dump in order to see the dynamic string values?

Thanks in advance

1) yes
2)
a) in a first administrator terminal
iptables -t nat -A OUTPUT -p tcp --dport 1935 -j REDIRECT
b) in a second administrator terminal
rtmpsrv

c)load your video (it does not start, it's normal)
d) rtmpsrv generate the code like
rtmpdump -r "rtmp://89.248.160.252:1935/zmtvliveme" -a "zmtvliveme" -f "WIN 16,0,0,235" -W "http://static.zoomtv.me/player/jwplayer.6.5.3.swf" -p "http://www.zoomtv.me/embed.php?v=herbie&vw=660&vh=450" --live -C S:qLEOVtXDAw -C S:1424907032 -C S:7e67fbd8fe3dd45ebda7494f78ff508e -C S:V>JWhui^@2ESdu0?}>AN -y "qLEOVtXDAw" -o "2015-02-26_12-30-36_qLEOVtXDAw.flv"
it's an exemple

e) copy the code
f) close your video
g) stop rtmpsrv (CTRL +C)
h ) in the first administrator terminal
iptables -t nat -D OUTPUT -p tcp --dport 1935 -j REDIRECT
i) in an user terminal paste the code without forget add -T 'Q!lrB@G1)ww(-dQ4J4' and the ' ' for V>JWhui^@2ESdu0?}>AN

I think I have forgotten nothing

philj
02-25-2015, 11:31 PM
Hi biezom and All

I appreciate the great response. I am focused on the second question.

In 2(d) you get a rtmp string from rtmpsrv but it does not have the Token and string values? These you get from the process of looking at the process core?

As an exercise I did
http://www.skysportslive.tv/bt-sport-1-live-stream.php

rtmpsrv gave me
rtmpdump -r "rtmp://31.220.0.206/redirect/" -a "redirect/" -f "LNX 11,2,202,442" -W "http://p.jwpcdn.com/6/11/jwplayer.flash.swf" -p "http://reytv.co/embedu.php?live=btx11a&vw=620&vh=490" -y "btx11a" -o btx11a.flv

My problem is I am not sure. With gdb->gcore-> okteta I think gave me

-T '%Zrey(nKa@#Z' and
-C S:BC9ahgShNRQbE4HRU9gujKmpZItJYh5j/+ltVg==

See attached screen shot.

Any thoughts

biezom
02-26-2015, 01:11 AM
in this case no -C S:....... option
if it exists, rtmpsrv normally gives us

so in this case the token enough
rtmpdump -r "rtmp://31.220.0.206/redirect/" -a "redirect/" -f "WIN 16,0,0,235" -W "http://p.jwpcdn.com/6/11/jwplayer.flash.swf" -p "http://reytv.co/embedo.php?live=btx11a&vw=620&vh=490" -y "btx11a" -o "btx11a.flv" -T '%Zrey(nKa@#Z'

philj
02-26-2015, 01:57 AM
Hi biezom and All

When I run it I get
rtmpdump -r "rtmp://31.220.0.206/redirect/" -a "redirect/" -f "WIN 16,0,0,235" -W "http://p.jwpcdn.com/6/11/jwplayer.flash.swf" -p "http://reytv.co/embedo.php?live=btx11a&vw=620&vh=490" -y "btx11a" -o "btx11a.flv" -T '%Zrey(nKa@#Z'

RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

Am I missing something?

biezom
02-26-2015, 02:07 AM
Hi biezom and All

When I run it I get
rtmpdump -r "rtmp://31.220.0.206/redirect/" -a "redirect/" -f "WIN 16,0,0,235" -W "http://p.jwpcdn.com/6/11/jwplayer.flash.swf" -p "http://reytv.co/embedo.php?live=btx11a&vw=620&vh=490" -y "btx11a" -o "btx11a.flv" -T '%Zrey(nKa@#Z'

RTMPDump v2.3
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
ERROR: rtmp server sent error
ERROR: rtmp server requested close

Am I missing something?
try with -T "%Zrey(nKa@#Z" " " instead of ' '

if it doesn't works i think your a too older version of rtmpdump

philj
02-26-2015, 04:16 AM
Hi biezom and All

OK, updated to latest 2.4 version of rtmpdump git. Now can anyone check if http://www.skysportslive.tv/bt-sport-1-live-stream.php

is

rtmpdump -r "rtmp://31.220.0.206/redirect/" -a "redirect/" -f "LNX 11,2,202,442" -W "http://p.jwpcdn.com/6/11/jwplayer.flash.swf" -p "http://reytv.co/embedu.php?live=btx11a&vw=620&vh=490" -y "btx11a" -o btx11a.flv

and the Token is %Zrey(nKa@#Z

If this is correct then I have a bad version of rtmpdump to work on.

Thanks in advanced

troller12
02-26-2015, 05:20 AM
Hi,

so the link is working.Try this again.
rtmpdump -v -r "rtmp://31.220.0.206/redirect/btx11a" -p "http://reytv.co" -T "%Zrey(nKa@#Z" | "Player" -
rtmpdump -v -r "rtmp://31.220.0.195:80/live/btx11a" -p "http://reytv.co" -T "%Zrey(nKa@#Z" | "Player" -
Remember if you execute the links above in a created .bat file then add one more % in the token parameter before the first % sign (%%).If you execute the link directly in CMD then use again the original token with one %.

greetz

philj
02-26-2015, 06:26 AM
Hi Troller12 and All

Ok, it appears that the version of rtmpdump 2.3.1 on el6 was (is) problematic. Upgraded and we have liftoff.....

Again thanks and now I have a bit more of idea on this.