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 11-17-2014, 03:55 PM
ohhdemgirls ohhdemgirls is offline
CaptureBate Guy
 
Join Date: Nov 2014
Posts: 9
ohhdemgirls is on a distinguished road
Default

Automated Chaturbate Recording Under Linux


https://github.com/ohhdemgirls/CaptureBate/

CaptureBate lets you follow and archive your favorite models shows on chaturbate.com

Requirements
(Debian 7, minimum)

RTMPDump(ksv) used to capture the streams.

BeautifulSoup4 the screen-scraping library.

ffmpeg compiled with support for libmp3lame & libspeex audio for converting the output files.

Setup
First off you need a chaturbate account, once you're signed up put your credentials in the config.conf file, next you need to get your hashed password for RTMPDump. To get your hash you need to be signed in, then go any models page who is currently online, right click to view page source and search for pbkdf2_sha256$ the full hash will look something like pbkdf2_sha256$12000$QwwcaxjaV3Ik$cZHXVde52w+Fl6In5 4Ay5ZeMQMAFueQgwnnLbkTWT5g\u003D copy your hash into a text editor and escape each $ with a \ then replace u003D with = once you've formatted your hash it should look like pbkdf2_sha256\$12000\$QwwcaxjaV3Ik\$cZHXVde52w+Fl6 In54Ay5ZeMQMAFueQgwnnLbkTWT5g\= you can then paste it into the rtmpdump line modellists.py#L79 be sure to also replace the username on the same line just before your hash.

Now set your output directory in config.conf *optional, will default to CaptureBate/Captured/ Be mindful when capturing many streams at once to have plenty of space on disk and the bandwidth available or you'll endup dropping a lot of frames and the files will be useless.

Before you can start capturing streams you first need to follow the models you want on site and then paste their usernames into the wishlist.txt file, once you have done this you're ready to start main.py

Running & Output
To start capturing streams you need to run python main.py I reccomend you do this in screen as there is no output and it can just be left running in the background. To see what's going on run tail -f output.log

Standard output should look something this when recording streams ..

Code:
17/11/2014 09:37:13 PM INFO:Connecting to https://chaturbate.com/auth/login/
17/11/2014 09:37:13 PM INFO:Starting new HTTPS connection (1): chaturbate.com
17/11/2014 09:37:15 PM INFO:0 Models in the list before checking: []
17/11/2014 09:37:15 PM INFO:Redirecting to https://chaturbate.com/followed-cams/
17/11/2014 09:37:16 PM INFO:[Models_list] 2 models are online: [u'hottminx', u'adryeenmely']
17/11/2014 09:37:16 PM INFO:[Compare_lists] Checking model list:
17/11/2014 09:37:16 PM INFO:[Compare_lists] hottminx is still being recorded
17/11/2014 09:37:16 PM INFO:[Compare_lists] adryeenmely is still being recorded
17/11/2014 09:37:16 PM INFO:[Loop]List of new models for adding: []
17/11/2014 09:37:16 PM INFO:[Select_models] Which models are approved?
17/11/2014 09:37:16 PM WARNING:[Select_models]  No models for approving
17/11/2014 09:37:16 PM INFO:[Loop]Model list after check looks like: 0 models:
 [] 
 and models currently being recorded are:
 ['adryeenmely', 'hottminx']
17/11/2014 09:37:16 PM INFO:[Sleep] Waiting for next check (45 seconds)
Encoding
Once you've captured some streams you're going to need to convert the audio to have them play nice in vlc, etc. This is where ffmpeg comes in, there is no need to convert the video so this doesn't take too long. To convert individual files do ffmpeg -i input.flv -vcodec copy -acodec libmp3lame output.mp4 this will convert the speex audio to mp3 and change the container to mp4 (stream is h264)

If you want to batch convert your captured streams run find ./ -name '*.flv' -execdir mkdir converted_bates \;; for file in *.flv; do ffmpeg -i "$file" -vcodec copy -acodec libmp3lame "converted_bates/${file%.flv}.mp4"; done from your CaptureBate/Captured/ directory.

If you don't want to do any conversion you can install the speex audio codec which is a huge pain in the ass to get working correctly under linux/vlc.

A project like this needs to have users and as much active development as possible to stay alive, while there are a few other methods to capture streams CaptureBate aims at being a set and forget archiving tool for your favorite models, follow CaptureBate on GitHub and help by sharing anywhere you see fit or fixing any issues that may arise.

Donations. btc: 1EMZSrLCLEoCYZfQ5ZC1Ly4b8HeeYRaWaF
Attached Files
File Type: zip CaptureBate-master.zip (8.4 KB, 0 views)

Last edited by ohhdemgirls : 11-17-2014 at 04:42 PM. Reason: Color
Reply With Quote
  #2  
Old 11-22-2014, 09:53 AM
banditnew banditnew is offline
Junior Member
 
Join Date: Nov 2014
Posts: 2
banditnew is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


File "main.py", line 6, in <module>
import connection
File "/home/banditnew/Programs/CaptureBate-master/connection.py", line 7, in <module>
from MyAdapter import MyAdapter
File "/home/banditnew/Programs/CaptureBate-master/MyAdapter.py", line 2, in <module>
from requests.packages.urllib3.poolmanager import PoolManager
ImportError: No module named packages.urllib3.poolmanager


i have this error
Reply With Quote
  #3  
Old 11-22-2014, 10:10 AM
ohhdemgirls ohhdemgirls is offline
CaptureBate Guy
 
Join Date: Nov 2014
Posts: 9
ohhdemgirls is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


Do sudo apt-get install python-urllib3
Reply With Quote
  #4  
Old 11-22-2014, 10:21 AM
banditnew banditnew is offline
Junior Member
 
Join Date: Nov 2014
Posts: 2
banditnew is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


python-urllib3 is already the newest version.

but not working
Reply With Quote
  #5  
Old 11-22-2014, 02:25 PM
ohhdemgirls ohhdemgirls is offline
CaptureBate Guy
 
Join Date: Nov 2014
Posts: 9
ohhdemgirls is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


You're using ubuntu aren't you? .. yeah, dump that run Debian 7 as recommended and tested in, I can't offer support for all other variants or I'd be doing so forever, Debian 7 is testing with the minimum requirements listed.

You can overcome this issue by replacing from requests.packages.urllib3.poolmanager import PoolManager with from urllib3.poolmanager import PoolManager in MyAdapter.py#L2
Reply With Quote
  #6  
Old 11-23-2014, 06:37 PM
coalmorning coalmorning is offline
Junior Member
 
Join Date: Nov 2014
Posts: 7
coalmorning is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


Great job on this, works fantastic. Gotta a problem though.

I can’t get it to work in Debian 7. It simply will not record in Debian. Maybe I set my environment up wrong or theres something wrong with flash in Debian 7 latest release.

I'm testing it in a Debian 7 virtual machine, using the latest Debian release.

The scripts run without error, however it won't record. I tested rtmpdump recording a different network stream, and it worked fine, though flash video only plays back audio, and no vidoe is showing.

Does flash work in the latest Debian?

I got this to work in Ubunut, and it worked fine, just not having luck in Debian.

Any suggestion on what I might be instaling wrong. I posted some log output below, models names replaced with asterisks.



Code:
23/11/2014 02:55:43 PM INFO:[Sleep] Waiting for next check (45 seconds)
23/11/2014 02:56:28 PM INFO:Connecting to https://chaturbate.com/auth/login/
23/11/2014 02:56:28 PM INFO:Starting new HTTPS connection (1): chaturbate.com
23/11/2014 02:56:29 PM INFO:3 Models in the list before checking: [u'********', u'********', u'********']
23/11/2014 02:56:29 PM INFO:Redirecting to https://chaturbate.com/followed-cams/
23/11/2014 02:56:30 PM WARNING:******** model is now in private mode
23/11/2014 02:56:30 PM INFO:[Models_list] 3 models are online: [u'********', u'********', u'********']
23/11/2014 02:56:30 PM INFO:[Compare_lists] Checking model list:
23/11/2014 02:56:30 PM INFO:[Loop]List of new models for adding: [u'********', u'********', u'********']
23/11/2014 02:56:30 PM INFO:[Select_models] Which models are approved?
23/11/2014 02:56:30 PM INFO:[Select_models] ******** is approved
23/11/2014 02:56:30 PM INFO:[Select_models] ******** is approved
23/11/2014 02:56:30 PM INFO:[Get_links] ********.sh is created
23/11/2014 02:56:31 PM INFO:[Get_links] ********.sh is created
23/11/2014 02:56:31 PM INFO:[Run_scripts] Running scripts:
23/11/2014 02:56:31 PM INFO:[Run_scripts] Run: ********.sh
23/11/2014 02:56:31 PM INFO:[Run_scripts] Run: ********.sh
23/11/2014 02:56:31 PM INFO:[Loop]Model list after check looks like: 3 models:
 [u'********', u'********', u'********'] 
 and models currently being recorded are:
 []
23/11/2014 02:56:31 PM INFO:[Sleep] Waiting for next check (45 seconds)
Reply With Quote
  #7  
Old 11-23-2014, 06:45 PM
ohhdemgirls ohhdemgirls is offline
CaptureBate Guy
 
Join Date: Nov 2014
Posts: 9
ohhdemgirls is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


I've had zero issues working on Debian 7 (x64) fresh install on a digital ocean droplet, with just the 2 actual dependencies installed (beautifulsoup4/rtmpdump-ksv)

It seems most users have the issues of librtmp.so.1 not being in the right place, this is fixed with sudo cp rtmpdump-ksv-ksv/librtmp/librtmp.so.1 /usr/lib or they messed up their password hash when copying / escaping characters which causes rtmpdump to exist instantly.
Reply With Quote
  #8  
Old 11-23-2014, 07:04 PM
coalmorning coalmorning is offline
Junior Member
 
Join Date: Nov 2014
Posts: 7
coalmorning is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


Thanks for that quick reply.

Can you reccomend the proper method to install rtmpdump-ksv.

The method I use is as follows, which might be my initial problem...

git clone https://github.com/BurntSushi/rtmpdump-ksv.git

open terminal in rtmpdump-ksv directory, and run command...

make SYS=posix
make install

i've installed using the command above and tried others as well such as...

make install and...

make
sudo make install prefix=/usr

Thanks for the help.
Reply With Quote
  #9  
Old 11-23-2014, 07:08 PM
ohhdemgirls ohhdemgirls is offline
CaptureBate Guy
 
Join Date: Nov 2014
Posts: 9
ohhdemgirls is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


Under Debian 7 (x64) I've just done (as root)

Code:
git clone https://github.com/BurntSushi/rtmpdump-ksv
cd rtmpdump-ksv
make
make install
cp librtmp/librtmp.so.1 /usr/lib
Had zero issues with that.

$ make SYS=darwin is recommended in linux/unix environments but I've never needed it.
Reply With Quote
  #10  
Old 11-23-2014, 08:11 PM
coalmorning coalmorning is offline
Junior Member
 
Join Date: Nov 2014
Posts: 7
coalmorning is on a distinguished road
Default

Re: Automated Chaturbate Recording Under Linux


I cloned rtmpdump as root, which cloned to my home directory. Then installed as you posted. I ensured librtmp.so.1 was in /usr/lib, which it was, and ran the program, it still did'nt record. I then copied over librtmp.so and librtmp.3 to /usr/lib just to see if that did anythin, and nothing recored.

I got this working on Ubuntu, so I'm certain my pass and hash is correct, but just having no luck with Debian.

Any other possible suggestions to try. Thnaks again for the help.
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 12:49 PM.


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