Audio/video stream recording forums
|
Attention Visitor: |
You may have to register or log in before you can post:
|
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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 Last edited by icodestuff : 03-10-2014 at 04:53 PM. Reason: Little update for the chaturbate script |
#2
|
|||
|
|||
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 |
#3
|
|||
|
|||
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.
|
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
Re: Start/Stop rtmpdump from your browser (chaturbate support)Reserved for a how to write userscripts
|
#6
|
|||
|
|||
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 Last edited by icodestuff : 03-11-2014 at 05:52 AM. Reason: typo |
#7
|
|||
|
|||
Re: Start/Stop rtmpdump from your browser (chaturbate support)Excellent, we will learn, but so far nothing happens
|
#8
|
|||
|
|||
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. |
#9
|
|||
|
|||
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? |
#10
|
|||
|
|||
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. |
Tags: chaturbate, greasemonkey, rtmpdump, userscript |
Thread Tools | |
Display Modes | |
|
|