Start/Stop rtmpdump from your browser (chaturbate support)Hi, i am new here, so please excuse me if something like this already exists.
I wrote a little script to start/stop recording streams with rtmpdump from the browser. Also there is an auto record feature for supported sites (only chaturbate atm.) The Project is split into two parts: - A mini webserver written in python which starts and stops the recordings (via rtmpdump). All rtmpdump options except the output name and the -q argument are received from the connecting side. - A userscript for every supported page which interacts with the python webserver. Requirements: - The Browser need to support userscripts (only tested with firefox and the greasemonkey addon so far). - Python 2.7 for the server part. (Python 3 support is on the todo list) Webserver: The server is pretty pre alpha ATM but is working. To change the port, download path, rtmpdump path or refresh time see the code right after the big comment block. Userscripts: At the moment there is just one supported streaming site which is chaturbate. But adding support for other sites is pretty easy if it is possible to record them via rtmpdump. To record from chaturbate (and possible a bunch of other pages) you need KSVs great patched rtmpdump. How to Install and use: Click here Question, comments and donations are welcome. server.py v.02a : http://pastebin.com/ifzw8fbY chaturbate greasemonkey script Based on a snippet posted by malky. You need to be logged in for this script. http://pastebin.com/3mmzwmS9 Donations: bitcoin: 1ANENhuKSQt7QsTaeHQo7virhGaGtNByzo dogecoin: DJ74B3andPa87NPmG6bygszmP7ttVa4soQ |
Re: Start/Stop rtmpdump from your browser (chaturbate support)This looks great and I am looking forward to see even more upgrades.
Thank you very much :) |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Thank you, you can learn how it works, step by step, because chaturbate is very interesting.
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Howto install:
1. Get rtmpdump or better (needed for chaturbate) KSVs patched version if you don't have it allready. 2. Get python 2.7 if you don't have it allready. 3. If you want to use firefox get the greasemonkey plugin. Other ways aren't tested yet, but are planed. (chrome support, bookmarklets) 4. Get the server script. See first post for the newest version. 5. Get the userscript for the site and method you want to use. See first post for the newest versions. If you are planing to run the server on another port than 80 change the line "var port = 80;" at the top of the script to the port you want to use. 6. Activate your userscript: For firefox and greasemonkey tools -> greasemonkey -> new user script Then copy the according script into the editor and save. 7. Configure the server: Right after the big comment block in the server script are the settings. Interesting settings ATM are: PORT_NUMBER: If you want your server to run on another port. RTMPDUMP_PATH: The path to your rtmpdump executable DOWNLOAD_PATH: The path to your download folder. "" to download to the folder where the server script is located. Else the path must end with an / Howto use: 1. Start your script like python server.py (if you named the server server.py) 2. Go to the according site. The occurence and exact behaviour could be different for different scripts, but there should always be an button to start/stop recording and, if supported, a button to auto record. The buttons may need some seconds to show the correct recording state. 3. Well, record and have fun :) 4. To quit the server press ctr+c in the server window. Please don't kill it another way. ATM only with ctr+c the child rtmpdump processes are killed, too. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Reserved for a how to write userscripts
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Sorry for the tripple post.
I updated the server and the chaturbate userscript and wrote some usage info. If someone is going to test it please respond if everything worked. Also feedback of any kind would be great. I'll write a little help how to write scripts for other sites today or tomorrow. In the long term i think it would be great if every working userscript could be collected and updated in this thread. /me now need some coffee :eek: |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Excellent, we will learn, but so far nothing happens:confused: :confused: :confused: :confused: :confused:
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Roma Romanoff:
I forget to mention you need to be logged in to chaturbate. (I'll add this to the description). If that solves your problem, fine, else: i need some more information. 1. Do you use firefox + greasemonkey ? 2. Do you use ksvs patched rtmpdump version ? 3. Do you have python 2.7 installed ? 4. What is the server script printing after startup ? 5. Could you post an url from a model. Just in case something is different because of localization. Thank you for your response. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)But you can already record with rtmpdumphelper , so i dont really understand why one would like to use this instead?
Or is there some difference that makes this better? |
Re: Start/Stop rtmpdump from your browser (chaturbate support)I never used rtmpdumphelper, but from what i understand it records every stream it finds. Also you have to keep the stream running in your browser.
My userscript integrates in the streaming site, so you can choose which stream to record and get a feedback if you are allready recording this stream. The userscripts are fetching the rtmpdump options, so one could open the page, start the recrording and leave the page. (No auto record this way, though) I added an auto record feature (still pretty alpha) which means: Go to the page, hit auto record and leave the page open. Every time the stream goes online, the script starts to record the stream. Also open source ;) The only problem i see with this is the websites could detect the injected code (which could be hindered by the userscript though) So, if you only want to record one stream rtmpdumphelper might be more comfortable (when it comes to the installing part). If you wan't to record specific streams my tool might be more comfortable. Anyway, i'll install rtmpdump and see what it can do. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Hi,
First of all thanks for job you have done! I have not been able to use your tool yet because i get an error "no player found" when i press record button. I have python started the server and this came up: Code:
C:\Python27>python server.py |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Hi, and sorry for my late response. I was kind of busy the last days.
@ppeterppan: I don't really know what the error is, but i added a little debug flag. Could you run this code and poste the response (after trying to start the recording) ? Also i got the request to add support for mfc. That is already on my todo list, but, honestly, i am still struggeling with getting the correct rtmpdump parameter. If someone could help me with that, that would be greatly appreciated. A little word about the auto record. It is working only if you stay on the site and so far only if the host is away for a more or less short time. So if the host goes to prvt the record stops, and starts again after the host is again in the public chat. I am still not sure how to do the auto record feature the best way. Maybe i put that stuff in the server. We'll see. /me is goin to code some more and think about the auto record |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Hm, i didn't know one can edit their posts here only for a limited time.
Guess i'll need to write the admins. But so far i'll post the update here: I updated the server and chaturbate script. Chaturbate changed an id ( I need to find some fallback ways in case that happens again (it will !) ). You need both: the new server script and the new chaturbate script. New server script ( more stable url handling / mini debug log ) Here. New Chaturbate script. Here. @ppeterppan: Ignore the script in the post before. Use the new scripts. @Roma Romanoff, thefan: Did it work ? I try to check again in some hours. But it might be that i need till tomorrow. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Seems to be working better for me. now the greasemonkey script sends the data in but I keep getting this over and over in my window. edited: they are basically statuses:
[13/Mar/2014 20:21:43] "GET /status?performer=performername&cmd=base64 encoding for: -v -r "rtmp://edge9-b.stream.highwebmedia.com/live-edge" -p "http://chaturbate.com/performername" -C S:****-C S:mothandrust -C S:2.644 -C S:pbkdf2_sha256$12000$06oBwEv2YMYQ$meYWOuQjYzhQHck itJ1Ko2eOYKsFWyqWyyCJh4TPEQg= -C S:yada -T "yada" -y "playpath" I'm not really sure what the sytax should be for the path to the executable? for example, my python script and executable are in c:\rtmpdump\ (executable is rtmpdump.exe) I'm not seeing any additional cmd window or any flv files getting created so it seems like it isn't executing the rtmpdump.exe |
Re: Start/Stop rtmpdump from your browser (chaturbate support)nevermind. it is working. i just needed to click the record button LOL
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Quote:
The server does not recieve the parameters from userscript like this one: Quote:
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Quote:
Just to be sure: you are using the new server and userscript from this post ? How to install python 2.7 on windows: 1. Get and install python 2.7. 2. Press win+r and enter cmd. 3. In the new window write python --version. If the result is something like "Can't find python" python isn't in your path. - First of all restart (as the python installer should make sure it is in the path). - If that doesn't solve it see here for a resolution. 4. After python in installed and cofigured. (ie you can execute "python" in the command window (win+r -> cmd -> enter) you are almost ready to go. How to start and configure the script: Open the python server script. Now change the following variables according to your needs. To do this press ctr+f to find the variable and change the part on the right side of the "=" sign. (I'll add a config file in later versions) RTMPDUMP_PATH: Contains the path to your rtmpdump executable. DOWNLOAD_PATH: Where to save your recordings. Leave like "" if you want to save to the directory where your server script lies. Else enter the path ending with an "/". PORT_NUMBER: In case you allready have a service running on port 80, change this variable to another value. Don't forget to change it in the userscripts, too. To start the script you should be able to just double click it. If that doesn't work put a file named "StartServer.bat" in the same folder as the python script with the following content: Code:
python server.py Please follow this if you have have file extensions disabled or don't know. Now start the server and you are good to go. A little troubleshooting guide: There is no record button on the top of the performer page: -> This could have mutiple reasons: - You didn't install greasemonkey - You didn't install the script. In Firefox press tools -> Greasemonkey -> New user script. Then paste the userscript from the pastebin. - If you have greasemonkey and the userscript installed, that means probably that the url is different for you (through localization etc.). Please post the url you see from any performer. The record button is visible and the status label under the record button shows for more then some seconds: - No player found and the performer is online: -> The video detection didn't work. In most cases that means the id for the video object changed. Please press ctrl+shift+k on the performer page, paste $('object').attr("id") and press enter. Please post the result in this thread. - Update ... or Timed out -> The userscript isn't able to reach your server. Some possile reasons are: - Your firewall or firefox add-ons (like request policy) is blocking the request. - You already have a service running on port 80. In that case change the port in the user- and serverscript. - The server crashed. If there is some strange output in the server window containing the word Exception please post this (in a code tag) in this thread. if i don't run in the edit timeout again, i'll edit this post and add some more possibilities and solutions. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Dear icodestuff, where I can see the record button, and what should be the path to the directories with python and rtmpdump For example C:\python or another, it is difficult to think without knowing programming
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)I added some info to my last post.
I hope it is helping. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Hello there!
I think I'm managing to piece together how to work the recorder, but yeah im having the "no player found" issue. When i press cntl+shift+k and search for "('object').attr("id")", it can't even find that at all. As you're the knowledgable one about this though, i assume I am doing something incorrectly! thanks in advance edit: scratch that, i just scrolled up and found the new script thing, but when i press "record" it does it for about a second, then stops. How do i post the message from the server where i fails from the cmd window? |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Hi,
first of all: thanks for your work so far.. Unfortunately the script is not working for me. I fetched the params sent to the server.py and ran rtmpdump manually with verbose parameter: Code:
[xxx@xxx tmp]$ rtmpdump -v -r "rtmp://edge22-a.stream.highwebmedia.com/live-edge" -p "http://chaturbate.com/squirtbetty" -C S:myusername -C S:squirtbetty -C S:2.644 -C S:mypasswordhash -C S:6738486d4adddc494e0bbd8d65b0f51f90cced3bfd60d263a4d24a1659c77182 -T "m9z#$dO0qe34Rxe@sMYxx%%" -y "playpath" -V |
Re: Start/Stop rtmpdump from your browser (chaturbate support)To download chaturbate models you could use http://xexit.net/gurlz/gurlz-setup.exe
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Good work! Thank you.
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Well, maybe it would be good to link the updated version in the first posting.
P.S. The program isn’t working under GNU/Linux. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)This still working for people? not sure if it was a firefox update or cb update, but the box with the buttons no longer appears at the top for me.
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Update -- Got it working I had to use KSV's rtmpdump
Should this be working now? It creates the flv file but does not record. Below is what I see in my console, no errors: 127.0.0.1 - - [09/Nov/2014 15:53:14] "GET /record?performer=jjenniffer93&cmd=LXY gLXIgInJ0bXA6Ly9lZGdlMTQtYS5zdHJlYW0uaGlnaHdlYm1lZ GlhLmNvbS9saXZlLWVkZ2UiIC1wICJ odHRwOi8vY2hhdHVyYmF0ZS5jb20vamplbm5pZmZlcjkzIiAtQ yBTOnN3dmFkdWRlIC1DIFM6amplbm5 pZmZlcjkzIC1DIFM6Mi42NDUgLUMgUzpwYmtkZjJfc2hhMjU2J DEyMDAwJHBybEM3QVR1SXJmUiRLN0F QeFl6bVBjVTNpTmwvWEhYNGdLOVYxL3hsTU9DUHliTDRRc1VlR mVJPSAtQyBTOjQ0NzQ5ZjRiYjliZGZ jNzMzYTdmMjVkNTBhZTY2ZTI3YTY3YTk0NDBmNWUxZDU4MzgyN zVjMTI1YjNkMTVhMDUgLVQgIm05eiM kZE8wcWUzNFJ4ZUBzTVl4eCUlIiAteSAicGxheXBhdGgi HTTP/1.1" 200 - Received: /record {'cmd': 'LXYgLXIgInJ0bXA6Ly9lZGdlMTQtYS5zdHJlYW0uaGlnaHdlY m1lZ GlhLmNvbS9saXZlLWVkZ2UiIC1wICJodHRwOi8vY2hhdHVyYmF 0ZS5jb20vamplbm5pZmZlcjkzIiAtQ yBTOnN3dmFkdWRlIC1DIFM6amplbm5pZmZlcjkzIC1DIFM6Mi4 2NDUgLUMgUzpwYmtkZjJfc2hhMjU2J DEyMDAwJHBybEM3QVR1SXJmUiRLN0FQeFl6bVBjVTNpTmwvWEh YNGdLOVYxL3hsTU9DUHliTDRRc1VlR mVJPSAtQyBTOjQ0NzQ5ZjRiYjliZGZjNzMzYTdmMjVkNTBhZTY 2ZTI3YTY3YTk0NDBmNWUxZDU4MzgyN zVjMTI1YjNkMTVhMDUgLVQgIm05eiMkZE8wcWUzNFJ4ZUBzTVl 4eCUlI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Proccess for jjenniffer93 (32304) finnished with 1 |
Re: Start/Stop rtmpdump from your browser (chaturbate support)I'm having the same issue as @abus is currently having. I suspect it's a SSL cert error perhaps? Something with local firewall?
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)It works for me.
As others have mentioned, you really do need that edited RTMPDUMP. I think I had a similar issue as you guys, you just have to edit the python files path directories. It needs to be: Code:
RTMPDUMP_PATH = "C:/Users/XXX/Documents/rtmpdump/rtmpdump.exe" Code:
RTMPDUMP_PATH = "C:\Users\XXX\Documents\rtmpdump\rtmpdump.exe" |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Sorry for the double post, but I can't edit my post any more.
I forgot to mention you need to have a Chaturbate account and be logged in for this to work. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)Does anyone know how to record chaturbate via command line with rtmp?
|
Re: Start/Stop rtmpdump from your browser (chaturbate support)Hello guys
I tried out things for years from stream-recorder.com. Well now I decided to register. I just wanted to say: Really nice work. I got it to work for me. Im gladly waiting for your "how to write own userscripts". It would be nice to make scripts like this for other common sites (well, non porn sites) too. (well I just saw how old this thread is. No "how to write uerscripts" will be added anymore?) Maybe a small problem: I couldnt use port 80. It gives me socket error no 10013. I changed ports and it worked. Any suggestions why it didnt work for port 80? Greetings PS: And if someone has problems with the video duration (like me), try this link: http://stream-recorder.com/forum/fix...les-t5751.html THe "How to fix FLV files: Add (inject) metadata with FLVMD" Method worked very well. Edit: And some mentioned why anyone should need a script like this one: Well, if you use Rtmpdumphelper, the stream must be opened and on to capture it. Using THe python script, you can close the firefox window after starting record and it will till capture it, but rtmpdumphelper will stop and finish it. |
Re: Start/Stop rtmpdump from your browser (chaturbate support)i followed all the detailed imstructions but it still didn't work for me.
the server gets the record request but it says: Sun Feb 15 20:23:09 2015 Server Starts - :1080 acdid.acdsystems.com - - [15/Feb/2015 20:23:26] "GET /record/ HTTP/1.1" 404 - every time i try to record and on the firefox i get a player not found message. what can be the problem? when tried to record with rtmpdumphelper from chaturbate it worked... thanks in advance for your quick help... |
Re: Start/Stop rtmpdump from your browser (chaturbate support)At first it wasn't working but now it's working great, Thanks.
Works both with Firefox and Chrome. |
All times are GMT -6. The time now is 07:29 PM. |