Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   rtmpdump (http://stream-recorder.com/forum/forumdisplay.php?f=54)
-   -  

New RTMPDUMP requirement

(http://stream-recorder.com/forum/showthread.php?t=18417)

jhb50 06-14-2014 10:05 AM

New RTMPDUMP requirement


 
A new technique seems to have surfaced to prevent rtmps from being played.

It requires a specific GET to be issued just prior to the rtmp request.

This can of course be implemented by a program that would issue the GET prior to issuing the rtmpdump command, but an extension to the rtmpdump parameters allowing the GET command to be provided and issued would make life easier.

The specific site is the new hdstreams.tv which following its links yields
Code:

<script type="text/javascript">
var oRequest = new XMLHttpRequest();
var sURL = "t.php?k=Mzc4NTdlMjc3ZWU2MmE1MjdkNzA3ZmUxODEyYWE2NGQ=";

oRequest.open("GET",sURL,false);
oRequest.setRequestHeader("User-Agent",navigator.userAgent);
oRequest.send(null)
</script><div id='container'>The player will be placed here</div>

<script type="text/javascript">
jwplayer("container").setup({
flashplayer: "swf/player.swf",
file: "skysp1?ticket=37857e277ee62a527d707fe1812aa64d",
autostart: "true",height: 350,width: 474,
stretching: "exactfit",
controlbar: "bottom",
provider: "rtmp",
streamer: "rtmp://cdn.cast247.tv:443/live"});
</script>

My implementation is:
Quote:

ffdump -p "rtmp://cdn.cast247.tv:443/live playpath=skysp1?ticket=37857e277ee62a527d707fe1812 aa64d swfUrl=http://www.cast247.tv/swf/player.swf pageUrl=http://www.cast247.tv command=http://www.cast247.tv/t.php?k=Mzc4NTdlMjc3ZWU2MmE1MjdkNzA3ZmUxODEyYWE2NG Q= live=1"
which uses CURL to issue the get,
Quote:

curl -X GET http://www.cast247.tv/t.php?k=Mzc4NT...ODEyYWE2NG Q= -H "Accept-Language: en-US" -H "Accept-Encoding: gzip,deflate" -A "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko"
then rtmpdump to get the stream which is then piped to ffplay.

Much easier would be:
Quote:

rtmpdump.exe" -r "rtmp
://cdn.cast247.tv:443/live" -y "skysp1?ticket=37857e277ee62a527d707fe1812aa64 d"
-W "http://www.cast247.tv/swf/player.swf" -p "http://www.cast247.tv" -G "http://www.cast247.tv/t.php?k=Mzc4NTdlMjc3ZWU2MmE1MjdkNzA3ZmUxODEyYWE2NG Q="
Note however that due to the time dependent keys both commands need to be issued within a minute or so of their determination.

al101 06-20-2014 05:16 PM

Re: New RTMPDUMP requirement


 
+1 please.


All times are GMT -6. The time now is 08:32 AM.