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)

InterdimensionalCow 03-23-2013 02:45 PM

Re: chaturbate.com: SecureToken problems


 
From here? http://rtmpdump.mplayerhq.hu/

I remember that back when I first tried, I used that version. Just as back then, I'm getting NetStream.Play.Failed errors when I try. KSV's version, which I think I got from here seemd to work, although not I get that Model Status error. Is there yet another version I don't know about?

Edit: I put RTMPDumpHelper (http://stream-recorder.com/forum/rtm...er-t12719.html) in the folder, ran it, opened Chaturbate. A bunch of stuff popped up, and then I noticed it was making a file. When I closed the tab, it stopped recording. Clearly this isn't how our method works, but it's a compromise for now. For now, I can record it this way. But what is causing the problem with this method now? Any other builds I should know about? I forgot what causes a Model status error. I'm using the build from the link at the top of my post with RTMPDumpHelper.

oelk 03-24-2013 02:16 AM

Re: chaturbate.com: SecureToken problems


 
Now I see your problem. Of course you have to use KSV's version. He has done some necessary modifications for this site (and many others).

I get NetStream.Play.Failed for now, too. The only way i found to get around this is using a login. You'll find they details here in the thread:
here

RTMPDumpHelper does something a bit more tricky. It hooks between your flashplayer and the server to record everything it receives (simply said). So you won't be able to close the tabs without losing connection.

InterdimensionalCow 03-25-2013 06:10 AM

Re: chaturbate.com: SecureToken problems


 
Well, I am logged in. As far as the javascript retrieves, it seems to call all data in. In that case, it'd be calling the wrong data. But what could interrupt the code?

Edit: I wish the Javascript or RTMPDumpHelper had some kind of check so it wouldn't overwrite old files. It'd just have to check file existing, and incrementing a number. I suppose adding that for at least the Javascript would get confusing, though.

oelk 03-25-2013 09:53 AM

Re: chaturbate.com: SecureToken problems


 
There seems to be a little decoding problem in the javascript line. I rewrote it to work properly:
Code:

javascript:var raw=$('param[name="FlashVars"]').val().split('&');var fv={}; for(var i in raw) {var d=raw[i].split('='); fv[d[0]] = unescape(d[1]);} var swfu=$('#movie').attr('data'); swfv = swfu.substring(swfu.indexOf('_')+1,swfu.indexOf('.')).replace('p','.'); prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+fv['address']+'/live-edge" -W "http://'+fv['dom']+swfu+'" -p "http://'+fv['dom']+'/'+fv['pid']+'" -C S:'+fv['uid']+' -C S:'+fv['pid']+' -C S:'+swfv+' -C S:'+fv['pw']+' -C S:'+fv['rp']+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+fv['pid']+'_'+Number(new Date()/1000).toFixed(0)+'.flv"');
The new one appends a timestamp to the filename, so it won't overwrite your old files anymore. It should also be a bit more stable to minor changes of the website.

To get rtmpdumphelper not to overwrite your files, there are some patches for rtmpsuck you'll find somewhere here in the forum (don't remember where).

InterdimensionalCow 03-25-2013 05:17 PM

Re: chaturbate.com: SecureToken problems


 
Your Javascript has RTMPDump begin downloading, although it stops after a few seconds. Not sure what's different that changed it from Model status is error to recording a few seconds, or why it only records that much. I'm going to be busy for the next few days, so I guess it doesn't matter.


Larry 04-01-2013 10:31 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by oelk (Post 60991)
There seems to be a little decoding problem in the javascript line. I rewrote it to work properly:
Code:

javascript:var raw=$('param[name="FlashVars"]').val().split('&');var fv={}; for(var i in raw) {var d=raw[i].split('='); fv[d[0]] = unescape(d[1]);} var swfu=$('#movie').attr('data'); swfv = swfu.substring(swfu.indexOf('_')+1,swfu.indexOf('.')).replace('p','.'); prompt('RTMPDumpCL','rtmpdump -v -r "rtmpe://'+fv['address']+'/live-edge" -W "http://'+fv['dom']+swfu+'" -p "http://'+fv['dom']+'/'+fv['pid']+'" -C S:'+fv['uid']+' -C S:'+fv['pid']+' -C S:'+swfv+' -C S:'+fv['pw']+' -C S:'+fv['rp']+' -y "playpath" -T "m9z#$dO0qe34Rxe@sMYxx%" -o "'+fv['pid']+'_'+Number(new Date()/1000).toFixed(0)+'.flv"');
The new one appends a timestamp to the filename, so it won't overwrite your old files anymore. It should also be a bit more stable to minor changes of the website.

To get rtmpdumphelper not to overwrite your files, there are some patches for rtmpsuck you'll find somewhere here in the forum (don't remember where).

In what source is the javascript problem? rtmpdumphelper?

InterdimensionalCow 04-12-2013 03:59 PM

Re: chaturbate.com: SecureToken problems


 
Well, I just tried the Javascript now, and it seems to work. I don't know why there was a prolonged period where it simply refused to, but I will say that right before trying the Javascript, I ran RTMPDumpHelper for a minute or so...

InterdimensionalCow 04-22-2013 02:21 PM

Re: chaturbate.com: SecureToken problems


 
I made batch code to work as a master run file for the code the javascript generates:

Code:

@echo OFF

for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
echo %mydate%_%mytime%

for /f "tokens=* delims=." %%a in ('dir /b /od') do (
        set newest=%%a
)

call "%newest%"

for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
echo %mydate%_%mytime%

pause

Make sure the .bat you make for rtmpdump is the most recently edited - this runs the most recent bat file. It displays the time it started, runs that bat file, then displays the time it stopped and awaits for you to look. You could probably improve on this code - I think there is a beep function somewhere which might work, even... - but this is what I'll be using so I don't have to amend pauses and such to each file. All i do is make a new file with the code and run this master code.

felnixx 05-04-2013 02:20 AM

Re: chaturbate.com: SecureToken problems


 
CB changes something in version 634, it doesn't work at all. :(

Quote:

[...]
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 472
DEBUG: HandShake: Client digest offset: 1204
DEBUG: HandShake: Initial client digest:
DEBUG: e1 5c 6a 7c 5e c5 17 67 de 34 9f 09 b7 69 af a9
DEBUG: 0b f5 a1 5d f4 12 05 47 e9 ff 95 0b 91 e6 99 9c
DEBUG: Socket closed by server, nBytes: 0
ERROR: RTMP_Connect1, handshake failed.
DEBUG: Closing connection.

non90 05-04-2013 04:15 AM

Re: chaturbate.com: SecureToken problems


 
Quote:

Originally Posted by felnixx (Post 61960)
CB changes something in version 634, it doesn't work at all. :(

Can confirm that problem. Works fine in browser, but not with rtmpdump. Tested with newest KSV release.

Error even produce a very short debug log... tested with first model on page that time.

Code:

RTMPDump v2.4 GIT-2012-12-30 (Compiled by KSV)
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
DEBUG: Protocol : RTMPE
DEBUG: Hostname : edge4-b.stream.highwebmedia.com
DEBUG: Port    : 1935
DEBUG: Playpath : anything_here
DEBUG: tcUrl    : rtmpe://edge4-b.stream.highwebmedia.com:1935/live-edge
DEBUG: swfUrl  : http://chaturbate.com/static/flash/CBV_2p634.swf
DEBUG: pageUrl  : http://chaturbate.com/jessica_shine/
DEBUG: app      : live-edge
DEBUG: flashVer : WIN 11,1,102,63
DEBUG: live    : yes
DEBUG: timeout  : 30 sec
DEBUG: SWFSHA256:
DEBUG: 56 62 34 c0 c4 c9 64 cc d7 ce ab 9b a6 06 69 d1
DEBUG: ff c1 1e c5 e0 a0 f5 6d c6 3f 6c 44 a8 1b e3 26
DEBUG: SWFSize  : 438080
DEBUG: Setting buffer time to: 36000000ms
Connecting ...
DEBUG: RTMP_Connect1, ... connected, handshaking
DEBUG: HandShake: Client type: 06
DEBUG: HandShake: DH pubkey position: 358
DEBUG: HandShake: Client digest offset: 1219
DEBUG: HandShake: Initial client digest:
DEBUG: 2c 85 4b 8a 99 17 d3 bd 12 26 97 c1 d0 0b 0f 9b
DEBUG: 68 c2 ad a6 9a 25 b1 90 51 96 32 73 48 55 89 40
DEBUG: Socket closed by server, nBytes: 0
ERROR: RTMP_Connect1, handshake failed.
DEBUG: Closing connection.



All times are GMT -6. The time now is 08:12 AM.