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
  #11  
Old 01-30-2012, 07:29 AM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

Re: SecureToken problems


Quote:
Originally Posted by svnpenn View Post
If you cant program, that is your problem. This is not a forum to teach that.
Thank you for that valuable contribution to this thread. I'm not asking anyway how to teach me to program. All I'm asking is for an example of a similar situation that I can look at and then I'll figure out how to modify it for this situation.
Reply With Quote
  #12  
Old 01-30-2012, 08:44 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: SecureToken problems


the following code should be sufficient to accomplish this.
Code:
@@ -2426,6 +2501,45 @@
 	    }
 	  else
 	    {
+	      char *host = r->Link.hostname.av_len ? r->Link.hostname.av_val : "";
+	      char *pageUrl = r->Link.pageUrl.av_len ? r->Link.pageUrl.av_val : "";
+	      if (strstr(host, "chaturbate.com") || strstr(pageUrl, "chaturbate.com"))
+		{
+		  char pbuf[256], *pend = pbuf + sizeof (pbuf);
+		  char *enc = pbuf, **params = NULL;
+		  AVal av_Command, av_ModelName;
+		  AVal av_CheckPublicStatus = AVC("CheckPublicStatus");
+
+		  strsplit(pageUrl + 7, FALSE, '/', &params);
+		  av_ModelName.av_val = params[1];
+		  av_ModelName.av_len = strlen(params[1]);
+
+		  enc = AMF_EncodeString(enc, pend, &av_CheckPublicStatus);
+		  enc = AMF_EncodeNumber(enc, pend, 0);
+		  *enc++ = AMF_NULL;
+		  enc = AMF_EncodeString(enc, pend, &av_ModelName);
+		  av_Command.av_val = pbuf;
+		  av_Command.av_len = enc - pbuf;
+
+		  SendCustomCommand(r, &av_Command);
+		}
 	      if (r->Link.lFlags & RTMP_LF_PLST)
 	        SendPlaylist(r);
 	      SendPlay(r);
updated package with patch:
Code:
http://stream-recorder.com/forum/showpost.php?p=38157&postcount=63
working command line
Code:
rtmpdump -r "rtmpe://edge1-a.stream.chaturbate.com/live-edge" -a "live-edge" -f "WIN 11,1,102,55" -W "http://ccstatic.chaturbate.com/static/flash/CBV_2p51.swf" -p "http://chaturbate.com/reddiva/" -C S:AnonymousUser -C S:reddiva -T "m9z#$dO0qe34Rxe@sMYxx%" --live -y "mp4:public-reddiva" -o "mp4_public-reddiva.flv"
Code:
RTMPDump v2.4 GIT-2011-12-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
Starting Live Stream
4363.373 kB / 83.33 sec
Reply With Quote
  #13  
Old 01-30-2012, 03:00 PM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

Re: SecureToken problems


Quote:
Originally Posted by KSV View Post
the following code should be sufficient to accomplish this.
Code:
@@ -2426,6 +2501,45 @@
 	    }
 	  else
 	    {
+	      char *host = r->Link.hostname.av_len ? r->Link.hostname.av_val : "";
+	      char *pageUrl = r->Link.pageUrl.av_len ? r->Link.pageUrl.av_val : "";
+	      if (strstr(host, "chaturbate.com") || strstr(pageUrl, "chaturbate.com"))
+		{
+		  char pbuf[256], *pend = pbuf + sizeof (pbuf);
+		  char *enc = pbuf, **params = NULL;
+		  AVal av_Command, av_ModelName;
+		  AVal av_CheckPublicStatus = AVC("CheckPublicStatus");
+
+		  strsplit(pageUrl + 7, FALSE, '/', &params);
+		  av_ModelName.av_val = params[1];
+		  av_ModelName.av_len = strlen(params[1]);
+
+		  enc = AMF_EncodeString(enc, pend, &av_CheckPublicStatus);
+		  enc = AMF_EncodeNumber(enc, pend, 0);
+		  *enc++ = AMF_NULL;
+		  enc = AMF_EncodeString(enc, pend, &av_ModelName);
+		  av_Command.av_val = pbuf;
+		  av_Command.av_len = enc - pbuf;
+
+		  SendCustomCommand(r, &av_Command);
+		}
 	      if (r->Link.lFlags & RTMP_LF_PLST)
 	        SendPlaylist(r);
 	      SendPlay(r);
updated package with patch:
Code:
http://stream-recorder.com/forum/showpost.php?p=38157&postcount=63
working command line
Code:
rtmpdump -r "rtmpe://edge1-a.stream.chaturbate.com/live-edge" -a "live-edge" -f "WIN 11,1,102,55" -W "http://ccstatic.chaturbate.com/static/flash/CBV_2p51.swf" -p "http://chaturbate.com/reddiva/" -C S:AnonymousUser -C S:reddiva -T "m9z#$dO0qe34Rxe@sMYxx%" --live -y "mp4:public-reddiva" -o "mp4_public-reddiva.flv"
Code:
RTMPDump v2.4 GIT-2011-12-22 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
Starting Live Stream
4363.373 kB / 83.33 sec
Thank you for your help KSV. Now I just have to compile this for Mac with your patch and we should be good to go!
Reply With Quote
  #14  
Old 02-10-2012, 12:29 AM
timba1210 timba1210 is offline
Junior Member
 
Join Date: Feb 2012
Posts: 1
timba1210 is on a distinguished road
Default

Re: SecureToken problems


Hi, KSV. I was wondering if you'd had a chance to look at the most recent updates implemented by chaturbate. Any luck getting rtmpdump to record since those were implemented?

I bow to your superior coding...

Thanks!
Reply With Quote
  #15  
Old 02-10-2012, 01:02 AM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: SecureToken problems


modified rtmpdump works on those streams atm. get the modified version. release thread is down currently.
Reply With Quote
  #16  
Old 02-11-2012, 08:23 AM
greenythebeast greenythebeast is offline
Senior Member
 
Join Date: Dec 2011
Posts: 105
greenythebeast is on a distinguished road
Default

Re: SecureToken problems


I can confirm KSV's modified rtmpdump works fine still. A shame you can't download private shows anymore =(
Reply With Quote
  #17  
Old 02-12-2012, 05:40 PM
ultravox ultravox is offline
Junior Member
 
Join Date: Feb 2012
Posts: 1
ultravox is on a distinguished road
Default

Re: SecureToken problems


Hi!

Someone willing to share KSV's build of rtmpdump?

Thanks a lot!
Reply With Quote
  #18  
Old 02-12-2012, 11:41 PM
KSV KSV is offline
Senior Member
 
Join Date: Apr 2011
Posts: 853
KSV is on a distinguished road
Cool

Re: SecureToken problems


here is the latest build

Code:
http://www.mediafire.com/file/bwk1zv6j5vf25bd/rtmpdump-2.4.zip
Reply With Quote
  #19  
Old 02-13-2012, 05:29 PM
Mo7aMeD74 Mo7aMeD74 is offline
Junior Member
 
Join Date: Feb 2012
Posts: 7
Mo7aMeD74 is on a distinguished road
Default

Re: SecureToken problems


Hi Can anyone help me to find the code that i'll put after the " -T '' here is the stream : http://www.en.aljazeerasport.tv/Live/channel/news
Reply With Quote
  #20  
Old 02-13-2012, 06:14 PM
Bahman Bahman is offline
t.A.T.u.'s fan forever
 
Join Date: Sep 2011
Location: Tehran, Iran
Posts: 381
Bahman is on a distinguished road
Default

Re: SecureToken problems


Quote:
Originally Posted by Mo7aMeD74 View Post
Hi Can anyone help me to find the code that i'll put after the " -T '' here is the stream : http://www.en.aljazeerasport.tv/Live/channel/news
It doesn't use securetoken!! Try rtmpexplorer+rtmpsuck!!

Also, you can use another links:
Code:
http://www.en.aljazeerasport.tv/streaming/multiformat/streaminfo/index.html?eventId=704803&partnerId=1346&presentation=/InformAdaptiveXML.jsp&timestamp=377
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 01:20 AM.


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