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 06-14-2014, 11:05 AM
jhb50 jhb50 is offline
Member
 
Join Date: Nov 2011
Posts: 54
jhb50 is on a distinguished road
Default

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.
Reply With Quote
  #2  
Old 06-20-2014, 06:16 PM
al101 al101 is offline
Junior Member
 
Join Date: May 2013
Posts: 10
al101 is on a distinguished road
Default

Re: New RTMPDUMP requirement


+1 please.
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 12:05 AM.


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