Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Streaming media recording forum > Video stream recording (Adult streaming videos)
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 03-09-2014, 05:04 PM
icodestuff icodestuff is offline
Junior Member
 
Join Date: Mar 2014
Posts: 11
icodestuff is on a distinguished road
Default

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 03:53 PM. Reason: Little update for the chaturbate script
Reply With Quote
  #2  
Old 03-10-2014, 02:06 AM
xaboxa xaboxa is offline
Senior Member
 
Join Date: Aug 2011
Posts: 101
xaboxa is on a distinguished road
Thumbs up

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
Reply With Quote
  #3  
Old 03-10-2014, 02:11 AM
Roma Romanoff Roma Romanoff is offline
Junior Member
 
Join Date: Nov 2010
Posts: 10
Roma Romanoff is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 03-10-2014, 12:46 PM
icodestuff icodestuff is offline
Junior Member
 
Join Date: Mar 2014
Posts: 11
icodestuff is on a distinguished road
Default

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.
Reply With Quote
  #5  
Old 03-10-2014, 12:49 PM
icodestuff icodestuff is offline
Junior Member
 
Join Date: Mar 2014
Posts: 11
icodestuff is on a distinguished road
Default

Re: Start/Stop rtmpdump from your browser (chaturbate support)


Reserved for a how to write userscripts
Reply With Quote
  #6  
Old 03-10-2014, 12:56 PM
icodestuff icodestuff is offline
Junior Member
 
Join Date: Mar 2014
Posts: 11
icodestuff is on a distinguished road
Default

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 04:52 AM. Reason: typo
Reply With Quote
  #7  
Old 03-10-2014, 03:06 PM
Roma Romanoff Roma Romanoff is offline
Junior Member
 
Join Date: Nov 2010
Posts: 10
Roma Romanoff is on a distinguished road
Default

Re: Start/Stop rtmpdump from your browser (chaturbate support)


Excellent, we will learn, but so far nothing happens
Reply With Quote
  #8  
Old 03-10-2014, 03:52 PM
icodestuff icodestuff is offline
Junior Member
 
Join Date: Mar 2014
Posts: 11
icodestuff is on a distinguished road
Default

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.
Reply With Quote
  #9  
Old 03-10-2014, 09:42 PM
thefan thefan is offline
Junior Member
 
Join Date: Jul 2010
Posts: 22
thefan is on a distinguished road
Default

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?
Reply With Quote
  #10  
Old 03-11-2014, 04:42 AM
icodestuff icodestuff is offline
Junior Member
 
Join Date: Mar 2014
Posts: 11
icodestuff is on a distinguished road
Default

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.
Reply With Quote
Reply Post New Thread
Tags: , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 08:21 PM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons