View Single Post
  #287  
Old 07-03-2013, 12:18 AM
skyDude14 skyDude14 is offline
Junior Member
 
Join Date: Aug 2012
Posts: 20
skyDude14 is on a distinguished road
Default

Re: chaturbate.com: SecureToken problems


Quote:
Originally Posted by oelk View Post
My old script is working with one little modification:
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 "rtmp://'+fv['address']+'/live-edge" -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" -o "'+fv['pid']+'_'+Number(new Date()/1000).toFixed(0)+'.flv"');
It reads all parameters from the active site. Most of them aren't really needed.

A stripped down call could look like this:
Code:
rtmpdump -v -r "rtmp://edge13-b.stream.highwebmedia.com/live-edge" -p "http://chaturbate.com/PERFORMERNAME" -C S:AnonymousUser -C S:PERFORMERNAME -C S:2.634 -C S:anonymous -y "playpath" -o "file.flv"
but I'm not sure, if the same server can be used for every performer every day.

Those who need to record many streams should replace AnonymousUser & anonymous by CB_USERNAME & PW_HASH as described above (or use the proposed script). (You'll get NetStream.Play.Failed otherwise)


The token isn't needed anymore, because they changed from rtmpe to rtmp. No need to worry about it fo now.
oelk can you tell me how to run your javascript?furthermore , how to construct the full rtmp url with all its parameters ?(not the one for command prompt)
Reply With Quote