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-25-2012 12:35 AM

chaturbate.com: SecureToken problems


 
I wrote a program for Mac that allowed myself to download videos from a site using rtmpdump by entering the username of the person broadcasting. It used the -T flag of rtmpdump because the site used SecureToken authentication in its .swf file. They just updated the .swf file today and it doesn't work anymore. The code went from this:

Code:

if (_local2.secureToken != null){
this._-7E.call("secureTokenResponse", null, _-0D._-2W(_local2.secureToken, "m9z#$dO0qe34Rxe@sMYxx%"));

to this:
Code:

if (_local2.secureToken != null){
this._-3a.call(_-2I._-3p(-366, 769), null, _-26._-3p(_local2.secureToken, _-2I._-3p(-344, 807)));

What am I supposed to enter for the SecureToken now?

KSV 01-25-2012 01:52 AM

Re: SecureToken problems


 
strings are encrypted now. you have to figure out the obfuscation scheme. or wait till i am back (after 3-4 days) :rolleyes:

greenythebeast 01-25-2012 02:25 AM

Re: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 37953)
strings are encrypted now. you have to figure out the obfuscation scheme. or wait till i am back (after 3-4 days) :rolleyes:

oh my god, if you figure it out i will personally send you 100 virgins for your pleasure =P

greenythebeast 01-25-2012 02:41 AM

Re: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 37953)
strings are encrypted now. you have to figure out the obfuscation scheme. or wait till i am back (after 3-4 days) :rolleyes:

im just curious, but how would one go about figuring out the obfuscation scheme?

greenythebeast 01-26-2012 07:06 PM

Re: SecureToken problems


 
Is there any other way to capture the SecureToken or is deobfuscation the only way?

greenythebeast 01-26-2012 07:47 PM

Re: SecureToken problems


 
After doing some research it looks like the .swf file was obfuscated using SecureSWF. Hope that helps.

Bahman 01-28-2012 10:01 AM

Re: SecureToken problems


 
KSV, Would you mind please teaching us how to figure out the obfuscation scheme too? I'm so interested in knowing it!! A short instruction is enough, please!!:)
The only things that I could find on the net was, It's related to Java!! but I don't have any idea if it be right!! :D

KSV 01-30-2012 02:00 AM

Re: SecureToken problems


 
SecureToken key is still same as shown in post #1. now their flash player sends an extra command CheckPublicAccess before sending play command. you need to modify rtmp.c to emulate this. i am not interested to do so for adult websites. you are on your own. it's easy anyway. checkout the patch file in my package for similar code.

greenythebeast 01-30-2012 05:35 AM

Re: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 38135)
SecureToken key is still same as shown in post #1. now their flash player sends an extra command CheckPublicAccess before sending play command. you need to modify rtmp.c to emulate this. i am not interested to do so for adult websites. you are on your own. it's easy anyway. checkout the patch file in my package for similar code.

Thank you for your hard work in figuring this out. I'm not trying to be rude or anything but do you actually expect someone who can't program to be able to modify this? I'm totally fine in doing the legwork here but are there any hints that you could give me that would help me get started?

svnpenn 01-30-2012 06:19 AM

Re: SecureToken problems


 
If you cant program, that is your problem. This is not a forum to teach that.

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

svnpenn 02-13-2012 09:06 PM

Re: SecureToken problems


 
I pushed KSV changes to a new repo.

github.com/svnpenn/rtmpdump

Mo7aMeD74 02-14-2012 07:27 AM

Re: SecureToken problems


 
Quote:

Originally Posted by Bahman (Post 40048)
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

Thank You

I've used the informations in the link you gave me but I still unable to Make it work .. it says :
ERROR : rtmp server sent error
ERROR : rtmp server requested close

Here is the code i made :
Code:

rtmpdump -r "rtmp://ajslivefs.fplive.net/ajslive-live" -a "ajslive-live" -f "WIN 11,1,102,55" -W "http://www.en.aljazeerasport.tv/ptvFlash/unifiedplayer/aljazeera/multiformat/UnifiedPlayer.swf" -p "http://www.en.aljazeerasport.tv/Live/channel/news" --live -y "ajs_ar_ch332_280?reportingKey=eventId-70494_partnerId-1365"

Bahman 02-14-2012 08:59 AM

Re: SecureToken problems


 
I know, you can't use rtmpdump here. The correct script is sth like this (don't forget to add "streamAuth"):
Code:

rtmpdump -r "rtmp://ajslivefs.fplive.net/ajslive-live/" -a "ajslive-live/?nvb=20120214000537&nva=20120214001107&token=01e69ebd86bf777cc3f48" -f "WIN 11,2,202,197" -W "http://www.en.aljazeerasport.tv/ptvFlash/unifiedplayer/authorized/UnifiedPlayer-Tokenized.swf" -p "http://www.en.aljazeerasport.tv/Live/channel/news" --live -y "ajs_ar_ch332_2400?reportingKey=eventId-704803_partnerId-1346" -o "ajs_ar_ch332_2400.flv"
But you cannot use it for rtmpdump+VLC!! just you can record it via rtmpsuck!!

Also there are some other links for iphone and android!! Maybe you can dump them with ffmpeg!!
Code:

- <availableMediaFormats>
- <mediaFormat id="51">
- <name>
- <![CDATA[ Adaptive 5CH L3
  ]]>
  </name>
- <description>
- <![CDATA[ Adaptive 5CH L3
  ]]>
  </description>
  <playerAlias>adaptive</playerAlias>
  <cdn>LEVEL3</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ SMIL
  ]]>
  </streamType>
- <streamLaunchCode>
- <smil:smil>
- <smil:head>
  <smil:meta base="rtmp://ajslivefs.fplive.net/ajslive-live" />
  </smil:head>
- <smil:body>
- <smil:switch>
  <smil:video src="ajs_ar_ch332_2400" system-bitrate="2400000" />
  <smil:video src="ajs_ar_ch332_1500" system-bitrate="1500000" />
  <smil:video src="ajs_ar_ch332_1000" system-bitrate="1000000" />
  <smil:video src="ajs_ar_ch332_500" system-bitrate="500000" />
  <smil:video src="ajs_ar_ch332_280" system-bitrate="280000" />
  </smil:switch>
  </smil:body>
  </smil:smil>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ nvb=20120214155019&nva=20120214155549&token=0e9b22ce6ae69743cf8e8
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="274">
- <name>
- <![CDATA[ FLV9 280k 16:9 (MI)
  ]]>
  </name>
- <description>
- <![CDATA[ Flash Stream, H.264 - 320x180, 48 kbps
  ]]>
  </description>
  <playerAlias>videolo</playerAlias>
  <cdn>MIRROR_IMAGE</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ rtmp://perform.mpl.miisolutions.net:1935/perform-live03/definst/mp4:ajs_m_ch332_280k
  ]]>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ MIIAuth=a1329234949%3Bb1329234919%3B&MIIHash=DuNWuyXmONVB-rgcnKcd6N9EzqY
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="273">
- <name>
- <![CDATA[ FLV9 512k 16:9 (MI)
  ]]>
  </name>
- <description>
- <![CDATA[ Flash Stream, H.264 - 480x270, 48 kbps
  ]]>
  </description>
  <playerAlias>videomed</playerAlias>
  <cdn>MIRROR_IMAGE</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ rtmp://perform.mpl.miisolutions.net:1935/perform-live03/definst/mp4:ajs_m_ch332_512k
  ]]>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ MIIAuth=a1329234949%3Bb1329234919%3B&MIIHash=hput60OlhwdccoE6F9gaa8LD_rQ
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="311">
- <name>
- <![CDATA[ Android RTSP High (MI)
  ]]>
  </name>
- <description>
- <![CDATA[ H264 Base3.0 1000k 16:9
  ]]>
  </description>
  <playerAlias>androidhi</playerAlias>
  <cdn>MIRROR_IMAGE</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ rtsp://perform.mpl.miisolutions.net:1935/perform-live03/mp4:ajs_m_ch332_1024k
  ]]>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ MIIAuth=a1329234949%3Bb1329234919%3B&MIIHash=RLTrF11TGqVuiiWmOG-xpH2XHEM
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="212">
- <name>
- <![CDATA[ iPhone 3 HTTP Live Streaming (L3)
  ]]>
  </name>
- <description>
- <![CDATA[ HTTP Live Streaming for iPhone 3 and earlier (L3)
  ]]>
  </description>
  <playerAlias>iPhone3</playerAlias>
  <cdn>LEVEL3</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ http://perform-apple-live.adaptive.level3.net/apple/perform/aljaz/ajs_news/ajs_iphone.m3u8
  ]]>
  </streamLaunchCode>
  </stream>
  </mediaFormat>
- <mediaFormat id="312">
- <name>
- <![CDATA[ FLV9 1000k 16:9 (MI)
  ]]>
  </name>
- <description>
- <![CDATA[ Flash Stream, H.264 - XXXxYYY, 48 kbps
  ]]>
  </description>
  <playerAlias>videohi</playerAlias>
  <cdn>MIRROR_IMAGE</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ rtmp://perform.mpl.miisolutions.net:1935/perform-live03/definst/mp4:ajs_m_ch332_1024k
  ]]>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ MIIAuth=a1329234949%3Bb1329234919%3B&MIIHash=nlRgxJPVRl_EeT16xJbSXIr94uc
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="270">
- <name>
- <![CDATA[ Android RTSP Low (MI)
  ]]>
  </name>
- <description>
- <![CDATA[ H264 Base3.0 280k 16:9
  ]]>
  </description>
  <playerAlias>androidlo</playerAlias>
  <cdn>MIRROR_IMAGE</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ rtsp://perform.mpl.miisolutions.net:1935/perform-live03/mp4:ajs_m_ch332_280k
  ]]>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ MIIAuth=a1329234949%3Bb1329234919%3B&MIIHash=OYBVyRNpRdDBPpy5DK7b53ERRQM
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="271">
- <name>
- <![CDATA[ Android RTSP Med (MI)
  ]]>
  </name>
- <description>
- <![CDATA[ H264 Base3.0 500k 16:9
  ]]>
  </description>
  <playerAlias>androidmed</playerAlias>
  <cdn>MIRROR_IMAGE</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ rtsp://perform.mpl.miisolutions.net:1935/perform-live03/mp4:ajs_m_ch332_512k
  ]]>
  </streamLaunchCode>
- <streamAuth>
- <![CDATA[ MIIAuth=a1329234949%3Bb1329234919%3B&MIIHash=DTksTNcJ5ZpZyv1fhWZYybHrKzo
  ]]>
  </streamAuth>
  </stream>
  </mediaFormat>
- <mediaFormat id="211">
- <name>
- <![CDATA[ iPhone HTTP Live Streaming (L3)
  ]]>
  </name>
- <description>
- <![CDATA[ HTTP Live Streaming for iPad/iPhone (L3)
  ]]>
  </description>
  <playerAlias>iPhone</playerAlias>
  <cdn>LEVEL3</cdn>
  <reportingKey>eventId-704947_partnerId-1346</reportingKey>
- <stream>
- <streamType>
- <![CDATA[ URL
  ]]>
  </streamType>
- <streamLaunchCode>
- <![CDATA[ http://perform-apple-live.adaptive.level3.net/apple/perform/aljaz/ajs_news/ajs_ipad.m3u8
  ]]>
  </streamLaunchCode>
  </stream>
  </mediaFormat>
  </availableMediaFormats>


Mo7aMeD74 02-16-2012 05:42 AM

Re: SecureToken problems


 
@Bahman

Yes Thank you i Tried to use those iphone Links .. and i made it work for a few seconds on Vlc and wmp too .. but i'm not able to anymore ..

The Only thing i'm trying to do is to make that stream work live on my computer using any media player i used to do that using rtmpdump + VLC and it was awesome but not anymore ..

So i wonder if You can help me through that and figure out a way to make the Live Stream work on vlc or wmp or other media players .. and I'll appreciate your help

Deak 02-28-2012 09:26 AM

Re: SecureToken problems


 
Will this (modified rtmp.c) work also for MFC?

It seems like they use a token or something to valid the login via the chat system.

Thanks in advance!

marktr 03-27-2012 08:39 PM

Re: [Release] Unofficial rtmpdump binaries


 
Chaturbate today upgraded their software and is forcing clients to use CBV_2p597.swf or face an "upgrade needed" notice. The changes enforce a 1 stream limit for anonymous users. The rtmp command line has to reflect these changes in the url passed to -W, as well as one of the string parameters, which changes to -C S:2.597 [I can confirm that by changing these two values the functionality of the latest rtmpdump patch with this site is preserved]

My question is: What is the mechanism to derive the SecureToken for an authenticated user (myself), instead of the now limited AnonymousUser? Pointers are appreciated.

greenythebeast 03-27-2012 09:06 PM

Re: [Release] Unofficial rtmpdump binaries


 
Quote:

Originally Posted by marktr (Post 42590)
Chaturbate today upgraded their software and is forcing clients to use CBV_2p597.swf or face an "upgrade needed" notice. The changes enforce a 1 stream limit for anonymous users. The rtmp command line has to reflect these changes in the url passed to -W, as well as one of the string parameters, which changes to -C S:2.597 [I can confirm that by changing these two values the functionality of the latest rtmpdump patch with this site is preserved]

My question is: What is the mechanism to derive the SecureToken for an authenticated user (myself), instead of the now limited AnonymousUser? Pointers are appreciated.

SecureToken stays the same regardless of user. Just change to:

-W 'http://ccstatic.chaturbate.com/static/flash/CBV_2p597.swf'
-C S:<name of a registered user>
-C S:2.597

That should allow more than one stream at one time. Works for me at least right now.

marktr 03-28-2012 11:31 AM

Re: [Release] Unofficial rtmpdump binaries


 
Quote:

Originally Posted by greenythebeast (Post 42591)
SecureToken stays the same regardless of user. Just change to:

-W 'http://ccstatic.chaturbate.com/static/flash/CBV_2p597.swf'
-C S:<name of a registered user>
-C S:2.597

That should allow more than one stream at one time. Works for me at least right now.

I'd thought SecureToken was connection-specific. I confirm this works right now. Thanks.

3ree 04-09-2012 10:23 AM

Re: [Release] Unofficial rtmpdump binaries


 
Quote:

Originally Posted by greenythebeast (Post 42591)
SecureToken stays the same regardless of user. Just change to:

-W 'http://ccstatic.chaturbate.com/static/flash/CBV_2p597.swf'
-C S:<name of a registered user>
-C S:2.597

That should allow more than one stream at one time. Works for me at least right now.

This is working, im just not able to capture audio.. ive tired playing the flv in a few different players like mpc,vlc but no sound?

how would i go about sortin it.

diablo888 04-09-2012 04:57 PM

Re: SecureToken problems


 
you DO cap the audio, but

neither VLC nor mpc support SPEEX audio together with video in an flv.

Sothink FLV Player DOES play it, but you cannot skip the file (at least I cant skip, not in vlc nor in sothink flv player), you CAN skip the file with sothink flv player if u insert metatags into the flv with a program like flvmdi.exe/flvmdigui.exe

does anyone know the command for rtmpdump to get mfc streams??

greenythebeast 04-09-2012 05:58 PM

Re: SecureToken problems


 
using ffmpeg with libspeex installed you can convert it into aac or mp3, however, the video streams contain invalid timecodes so when you try to remux the h264 video into an mp4 container with your converted audio, the file will usually work but its still a broken file. i wish the flv that rtmpdump produced was more stable lol

diablo888 04-10-2012 12:19 PM

Re: SecureToken problems


 
@greenybeasty

i tried that, but ffmpeg always complains about non monotone timestamps when i use the -vcodec copy, i guess to prevent invalid files.

what do u use?

greenythebeast 04-10-2012 03:18 PM

Re: SecureToken problems


 
i use a custom built binary of ffmpeg that silences that error. the file is still technically invalid but it still works

marktr 05-31-2012 12:27 PM

Re: chaturbate.com: SecureToken problems


 
Hi folks. As of today, chaturbate streams return an error when using KSV's rtmpdump patch, which so far had worked quite well.

I am getting:

Code:

Connecting ...
WARNING: Trying different position for server digest!
INFO: Connected...
INFO: Model status is error

I am keeping up with the latest updates, by specifying e.g.:

Code:

-W ...snip.../CBV_2p607.swf
-C S:2.607

but the problem is also extensive to previous versions.

Has anyone sorted this out? Is this a SecureToken or connection related problem? Hints?


PS: the relevant verbose output

Code:

DEBUG: HandShake: Genuine Adobe Flash Media Server
DEBUG: HandShake: Handshaking finished....
DEBUG: RTMP_Connect1, handshaked
DEBUG: Invoking connect
INFO: Connected...
DEBUG: HandleServerBW: server BW = 2500000
DEBUG: HandleClientBW: client BW = 2500000 2
DEBUG: HandleCtrl, received ctrl, type: 0, len: 6
DEBUG: HandleCtrl, Stream Begin 0
DEBUG: HandleChangeChunkSize, received: chunk size change to 4096
DEBUG: RTMP_ClientPacket, received: invoke 34 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:        nfo>
DEBUG: Property: <Name:            no-name, NUMBER:        0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, STRING:        version_too_old>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <nfo>
DEBUG: RTMP_ClientPacket, received: invoke 349 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:        _result>
DEBUG: Property: <Name:            no-name, NUMBER:        1.00>
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:            fmsVer, STRING:        FMS/3,5,7,7009>
DEBUG: Property: <Name:      capabilities, NUMBER:        31.00>
DEBUG: Property: <Name:              mode, NUMBER:        1.00>
DEBUG: (object end)
DEBUG: Property: <Name:            no-name, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:              level, STRING:        status>
DEBUG: Property: <Name:              code, STRING:        NetConnection.Connect.Success>
DEBUG: Property: <Name:        description, STRING:        Connection succeeded.>
DEBUG: Property: <Name:              data, OBJECT>
DEBUG: (object begin)
DEBUG: Property: <Name:            version, STRING:        3,5,7,7009>
DEBUG: (object end)
DEBUG: Property: <Name:          clientid, NUMBER:        1337821364.00>
DEBUG: Property: <Name:    objectEncoding, NUMBER:        0.00>
DEBUG: Property: <Name:        secureToken, STRING:        3513ee84d54551afd230d86e9c78138941b6e8ca19c7513c97049a5ca78517358638c506>
DEBUG: (object end)
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <_result>
DEBUG: HandleInvoke, received result for method call <connect>
DEBUG: Invoking secureTokenResponse
DEBUG: sending ctrl, type: 0x0003
DEBUG: Invoking CheckPublicStatus
DEBUG: RTMP_ClientPacket, received: invoke 47 bytes
DEBUG: (object begin)
DEBUG: Property: <Name:            no-name, STRING:        ReceiveCheckPublicStatus>
DEBUG: Property: <Name:            no-name, NUMBER:        0.00>
DEBUG: Property: NULL
DEBUG: Property: <Name:            no-name, STRING:        0,error>
DEBUG: (object end)
DEBUG: HandleInvoke, server invoking <ReceiveCheckPublicStatus>
INFO: Model status is error
DEBUG: Closing connection.


KSV 05-31-2012 12:51 PM

Re: chaturbate.com: SecureToken problems


 
nothing fancy going on :D

Code:

rtmpdump -r "rtmpe://edge1-a.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 11,1,102,63" -W "http://chaturbate.com/static/flash/CBV_2p607.swf" -p "http://chaturbate.com/lilix/" -C S:AnonymousUser -C S:lilix -C S:2.607 -C S:anonymous -T "m9z#$dO0qe34Rxe@sMYxx%" --live -y "mp4:lilix-sd-2c42ecd59c03850eaee04fd89924ee5c3a24b1a41b56711cf3c0176135569ad8" -o "Test.flv"

greenythebeast 05-31-2012 02:08 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 46914)
nothing fancy going on :D

Code:

rtmpdump -r "rtmpe://edge1-a.stream.highwebmedia.com/live-edge" -a "live-edge" -f "WIN 11,1,102,63" -W "http://chaturbate.com/static/flash/CBV_2p607.swf" -p "http://chaturbate.com/lilix/" -C S:AnonymousUser -C S:lilix -C S:2.607 -C S:anonymous -T "m9z#$dO0qe34Rxe@sMYxx%" --live -y "mp4:lilix-sd-2c42ecd59c03850eaee04fd89924ee5c3a24b1a41b56711cf3c0176135569ad8" -o "Test.flv"

So it looks like the 4th -C parameter is new. Is that always S:anonymous or should I put a username there?

KSV 05-31-2012 02:14 PM

Re: chaturbate.com: SecureToken problems


 
it seems that first parameter is username, second is model name, third is player version and fourth is password.

greenythebeast 05-31-2012 02:21 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 46919)
it seems that first parameter is username, second is model name, third is player version and fourth is password.

Yup, that's the case. Still having problems though. The -y parameter seems to have changed. Using -y "mp4:public-lilix" always used to work but now it doesn't. Any ideas?

KSV 05-31-2012 02:23 PM

Re: chaturbate.com: SecureToken problems


 
you shouldn't care about -y parameter because it's dynamically retrieved from server.

greenythebeast 05-31-2012 02:27 PM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by KSV (Post 46921)
you shouldn't care about -y parameter because it's dynamically retrieved from server.

Well I use an applescript that opens up an rtmpdump command with all the relevant information based on a username and it requires a -y parameter. Does that mean I'm out of luck now? Even in previous versions where the playpath was dynamically retrieved, the "mp4:public-<username>" still worked :/


All times are GMT -6. The time now is 09:48 PM.