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

chaturbate.com: SecureToken problems

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

greenythebeast 01-30-2012 06:29 AM

Re: SecureToken problems


 
Quote:

Originally Posted by svnpenn (Post 38153)
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.

KSV 01-30-2012 07:44 AM

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


greenythebeast 01-30-2012 02:00 PM

Re: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 38158)
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!

timba1210 02-09-2012 11:29 PM

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!

KSV 02-10-2012 12:02 AM

Re: SecureToken problems


 
modified rtmpdump works on those streams atm. get the modified version. release thread is down currently.

greenythebeast 02-11-2012 07:23 AM

Re: SecureToken problems


 
I can confirm KSV's modified rtmpdump works fine still. A shame you can't download private shows anymore =(

ultravox 02-12-2012 04:40 PM

Re: SecureToken problems


 
Hi!

Someone willing to share KSV's build of rtmpdump?

Thanks a lot!

KSV 02-12-2012 10:41 PM

Re: SecureToken problems


 
here is the latest build

Code:

http://www.mediafire.com/file/bwk1zv6j5vf25bd/rtmpdump-2.4.zip

Mo7aMeD74 02-13-2012 04:29 PM

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

Bahman 02-13-2012 05:14 PM

Re: SecureToken problems


 
Quote:

Originally Posted by Mo7aMeD74 (Post 40041)
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


All times are GMT -6. The time now is 03:19 AM.