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, '/', ¶ms);
+ 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