PDA

View Full Version : Automated Chaturbate Recording Under Linux


ohhdemgirls
11-17-2014, 03:55 PM
https://github.com/ohhdemgirls/CaptureBate/

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

Requirements
(Debian 7, minimum)

RTMPDump(ksv) (https://github.com/BurntSushi/rtmpdump-ksv) used to capture the streams.

BeautifulSoup4 (https://pypi.python.org/pypi/beautifulsoup4/4.3.2) the screen-scraping library.

ffmpeg (https://www.ffmpeg.org/download.html) compiled with support for libmp3lame & libspeex audio for converting the output files.

Setup
First off you need a chaturbate account (https://chaturbate.com/accounts/register/), 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 (https://github.com/ohhdemgirls/CaptureBate/blob/master/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 (https://i.imgur.com/o9QyAVC.png) 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 (https://www.gnu.org/software/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 ..

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 (http://speex.org/downloads/)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 (https://github.com/ohhdemgirls/CaptureBate/) and help by sharing anywhere you see fit or fixing any issues (https://github.com/ohhdemgirls/CaptureBate/issues) that may arise.

Donations. btc: 1EMZSrLCLEoCYZfQ5ZC1Ly4b8HeeYRaWaF

banditnew
11-22-2014, 09:53 AM
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

ohhdemgirls
11-22-2014, 10:10 AM
Do sudo apt-get install python-urllib3

banditnew
11-22-2014, 10:21 AM
python-urllib3 is already the newest version.

but not working

ohhdemgirls
11-22-2014, 02:25 PM
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 (https://github.com/ohhdemgirls/CaptureBate/blob/master/MyAdapter.py#L2)

coalmorning
11-23-2014, 06:37 PM
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.



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)

ohhdemgirls
11-23-2014, 06:45 PM
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.

coalmorning
11-23-2014, 07:04 PM
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.

ohhdemgirls
11-23-2014, 07:08 PM
Under Debian 7 (x64) I've just done (as root)

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.

coalmorning
11-23-2014, 08:11 PM
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.

ohhdemgirls
11-23-2014, 09:21 PM
No idea then, those are the only two issues that have cropped up. The only other thing I can suggest is that you actually set a full directory for capturing too, like /home/user/CaptureBate/Captured in config.conf sometimes environment variables can throw that off, though if you can cap in Ubuntu just stick to what works, I just don't support everything. People have even asked me how to get it running in windows :confused: nope!! haha.

zimpko
11-28-2014, 05:21 PM
I have some questions hopefully you can answer when you have the time. Maybe this can also help others as a Q&A should they have similar questions.


Is flash broken on the latest Fedora? I created a Fedora VM with the latest release, and it will not play FLV files. I tried installing about every dependcy, and flash package, and it just won’t play flash. It will, however play flash in a browser, just not a saved stream flv file with either VLC or Totem. Flash plays fine in Ubuntu or Mint FYI.
I created and installed Capturebate on a VirtualBox and VMWare VM. It works in the VM’s however it will not record streams unless you create a folder outside of the CaburBate directory and configure it to record to that directory. Is this possibly a bug related to VM’s?

I’m not sure if I’m running the FFMPEG script right, though after running the posted batch mode command, it creates a bunch of small MP4 files in a separate folder, and when clicked they report an error reading “no playable streams”.

Is it normal to have streams split into separate recordings? I find a lot of streams break during recording, then start a new recording, even though it doesn't appear the models have gone off air or into private. Is there a way to prevent streams from breaking so they can record in one single file?

Would it make any difference in performance by using this version of RTMPDUMP? http://stream-recorder.com/forum/customized-rtmpdump-binaries-patch-file-t16103.html

What command do you use so GNU screen will start main.py and the output log in one window?

Feature request. Would it be possible to add a stream limit and priority system. Capturbate can easily burn through someone’s allotted bandwidth if they’re capped by their ISP or degrade a person’s QoS, so it would be great to have it limit how many streams it can record at one time.

For example, have it so you can set a limited number of streams from your wishlist, then be capable of prioritizing it by adding asterisks next to a models name. The more asterisks next to a name, the higher the priority.


Thanks for the development of a handy app.

ohhdemgirls
11-29-2014, 03:54 AM
I have some questions hopefully you can answer when you have the time. Maybe this can also help others as a Q&A should they have similar questions.


Is flash broken on the latest Fedora? I created a Fedora VM with the latest release, and it will not play FLV files. I tried installing about every dependcy, and flash package, and it just won’t play flash. It will, however play flash in a browser, just not a saved stream flv file with either VLC or Totem. Flash plays fine in Ubuntu or Mint FYI.
I created and installed Capturebate on a VirtualBox and VMWare VM. It works in the VM’s however it will not record streams unless you create a folder outside of the CaburBate directory and configure it to record to that directory. Is this possibly a bug related to VM’s?

I’m not sure if I’m running the FFMPEG script right, though after running the posted batch mode command, it creates a bunch of small MP4 files in a separate folder, and when clicked they report an error reading “no playable streams”.

Is it normal to have streams split into separate recordings? I find a lot of streams break during recording, then start a new recording, even though it doesn't appear the models have gone off air or into private. Is there a way to prevent streams from breaking so they can record in one single file?

Would it make any difference in performance by using this version of RTMPDUMP? http://stream-recorder.com/forum/customized-rtmpdump-binaries-patch-file-t16103.html

What command do you use so GNU screen will start main.py and the output log in one window?

Feature request. Would it be possible to add a stream limit and priority system. Capturbate can easily burn through someone’s allotted bandwidth if they’re capped by their ISP or degrade a person’s QoS, so it would be great to have it limit how many streams it can record at one time.

For example, have it so you can set a limited number of streams from your wishlist, then be capable of prioritizing it by adding asterisks next to a models name. The more asterisks next to a name, the higher the priority.



Thanks for the development of a handy app.

No idea, I've never used Fedora.

Kind of a known bug, environment variables throw it off, it is recommenced you set your Capture directory manually and give a full path.

Nothing wrong with the command, put it in a bash file and make sure you don't have any extra characters etc. also ffmpeg should be compiled with support for libmp3lame & libspeex

Yes, kinda. This is due to the models dropping offline or going in private, even for a second this will split the stream, you can't overcome this with the rtmpdump method but you can fix it in post by merging your converted mp4s

That is the version recommended in my original post and on the repo.

Run main.py in screen, disconnect and then tail the output.log .. that is simple enough.

I won't be adding any limitations to CaptureBate, I run it on servers with 10GBit+ links and capture all models .. it's waste of time for me to add limitations, if you don't have the bandwidth at home you can get a vps/dedi crazy cheap these days which is highly recommended.

zugg
11-30-2014, 03:30 AM
I wanted to do something like this at the end of the year, so this is perfect.

I'm going to help contribute back - my python is a little rusty but if you have anything you need done create an issue and I'll look into it.

I'm currently looking into making this easier to install, even though it's pretty straightforward already.

Awesome job.

str3amer
11-30-2014, 02:20 PM
Hey,

thank you very much for this script, this makes things so much easier!

The problem is: Im a linux noob. I have no idea how to do this, and every tutorial just confuses me even more.

I installed debian 7.7.0 (amd64) on Oracle VM VirtualBox, downloaded all the required programms and changed the password in modellist.py

Now I'm completely lost. How exactly do I start main.py? I tried it via the Terminal and the Roottermial without any luck. When double clicking and click "run in Terminal" I get:

"/home/username/Downloads/CaptureBate-master/main.py: 3: /home/username/Downloads/CaptureBate-master/main.py:
Main file that includes all functions in appropriate order: not found
from: can't read /var/mail/config
from: can't read/var/mail/time"

Please, any help for a Linux-Noob? :)

Thanks in advance!

flipper2011
12-07-2014, 09:38 PM
There is a problem that started occurring today, this happened twice.. Is there a way to trap this so the script retires? Not really a Linux guru.. it defeats the "set it and forget it" because when it crashes/errors out it STOPS. The following is the error that occurs and the output file info

Error itself


oot@debian:~/Apps/Captureb# python main.py
Traceback (most recent call last):
File "main.py", line 34, in <module>
client = connection.Connection()
File "/root/Apps/Captureb/connection.py", line 40, in Connection
page_source = 'Page Source for ' + URL + '\n' + r.text
UnboundLocalError: local variable 'r' referenced before assignment
root@debian:~/Apps/Captureb#


OUTPUT.LOG follows

07/12/2014 11:22:16 PM INFO:[Sleep] Waiting for next check (80 seconds)
07/12/2014 11:23:36 PM INFO:Connecting to https://chaturbate.com/auth/login/
07/12/2014 11:23:36 PM INFO:Starting new HTTPS connection (1): chaturbate.com
07/12/2014 11:24:03 PM ERROR:Some error during posting to https://chaturbate.com/auth/login/
07/12/2014 11:24:03 PM ERROR:('Connection aborted.', BadStatusLine("''",))

zugg
12-08-2014, 03:18 AM
There is a problem that started occurring today, this happened twice.. Is there a way to trap this so the script retires? Not really a Linux guru.. it defeats the "set it and forget it" because when it crashes/errors out it STOPS. The following is the error that occurs and the output file info

Error itself


oot@debian:~/Apps/Captureb# python main.py
Traceback (most recent call last):
File "main.py", line 34, in <module>
client = connection.Connection()
File "/root/Apps/Captureb/connection.py", line 40, in Connection
page_source = 'Page Source for ' + URL + '\n' + r.text
UnboundLocalError: local variable 'r' referenced before assignment
root@debian:~/Apps/Captureb#


OUTPUT.LOG follows

07/12/2014 11:22:16 PM INFO:[Sleep] Waiting for next check (80 seconds)
07/12/2014 11:23:36 PM INFO:Connecting to https://chaturbate.com/auth/login/
07/12/2014 11:23:36 PM INFO:Starting new HTTPS connection (1): chaturbate.com
07/12/2014 11:24:03 PM ERROR:Some error during posting to https://chaturbate.com/auth/login/
07/12/2014 11:24:03 PM ERROR:('Connection aborted.', BadStatusLine("''",))


I have this as well every few days.

I just use supervisord now.

betoso01
12-08-2014, 09:26 AM
Hi. Is it possible to adapt your program to automated record naked . c0m? I want to write my own program in java to automated record chatur@bt3 and your code show me how to do it. I just want to know if its possible, using the same approach, do the same with naked?

flipper2011
12-08-2014, 05:48 PM
I have this as well every few days.

I just use supervisord now.

Would you be so kind and explain EXACTLY how to use this, i'm new to Linux and read a little about it, but not sure how to implement this for this specific application. Can you give me a short tutorial how to do it.

Thanks!!

zugg
12-08-2014, 11:40 PM
Would you be so kind and explain EXACTLY how to use this, i'm new to Linux and read a little about it, but not sure how to implement this for this specific application. Can you give me a short tutorial how to do it.

Thanks!!

Debian / Ubuntu:

sudo apt-get update
sudo apt-get install supervisor


sudo nano /etc/supervisor/conf.d/capturbate.conf


[program:capturebate]
directory=/home/deploy/CaptureBate
command=python /home/deploy/CaptureBate/main.py
autostart=true
autorestart=true
stderr_logfile=/var/log/capturbate.err.log
stdout_logfile=/var/log/capturbate.out.log


Change the directory and command directory to where your directory is.

Then run:

sudo supervisorctl reread


Should tell you that all is fine.

Then run:


sudo supervisorctl update


And it should be started, to check run:


sudo supervisorctl


And it should output something like:

capturebate RUNNING pid 24295, uptime 0:01:46

flipper2011
12-09-2014, 05:54 AM
Thank you I will try it tonight!

Debian / Ubuntu:

sudo apt-get update
sudo apt-get install supervisor


sudo nano /etc/supervisor/conf.d/capturbate.conf


[program:capturebate]
directory=/home/deploy/CaptureBate
command=python /home/deploy/CaptureBate/main.py
autostart=true
autorestart=true
stderr_logfile=/var/log/capturbate.err.log
stdout_logfile=/var/log/capturbate.out.log


Change the directory and command directory to where your directory is.

Then run:

sudo supervisorctl reread


Should tell you that all is fine.

Then run:


sudo supervisorctl update


And it should be started, to check run:


sudo supervisorctl


And it should output something like:

capturebate RUNNING pid 24295, uptime 0:01:46

flipper2011
12-09-2014, 06:00 PM
Thank you I will try it tonight!

Note: im running as root and I didn't need to do sudo but everything else was followed but I got this:

Everything was perfect until the last step, supervisorctl


root@debian:~/Apps/Captureb# supervisorctl
capturebate FATAL Exited too quickly (process log may have details)




This is the log file it created:


2014-12-09 19:51:20,788 CRIT Supervisor running as root (no user in config file)
2014-12-09 19:51:20,835 INFO RPC interface 'supervisor' initialized
2014-12-09 19:51:20,835 WARN cElementTree not installed, using slower XML parser for XML-RPC
2014-12-09 19:51:20,835 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2014-12-09 19:51:20,837 INFO daemonizing the supervisord process
2014-12-09 19:51:20,838 INFO supervisord started with pid 19621
2014-12-09 19:55:48,756 INFO spawned: 'capturebate' with pid 19677
2014-12-09 19:55:49,142 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:50,145 INFO spawned: 'capturebate' with pid 19679
2014-12-09 19:55:50,149 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:52,153 INFO spawned: 'capturebate' with pid 19680
2014-12-09 19:55:52,157 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:55,163 INFO spawned: 'capturebate' with pid 19681
2014-12-09 19:55:55,168 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:56,169 INFO gave up: capturebate entered FATAL state, too many start retries too quickly

zugg
12-10-2014, 04:17 AM
Note: im running as root and I didn't need to do sudo but everything else was followed but I got this:

Everything was perfect until the last step, supervisorctl


root@debian:~/Apps/Captureb# supervisorctl
capturebate FATAL Exited too quickly (process log may have details)




This is the log file it created:


2014-12-09 19:51:20,788 CRIT Supervisor running as root (no user in config file)
2014-12-09 19:51:20,835 INFO RPC interface 'supervisor' initialized
2014-12-09 19:51:20,835 WARN cElementTree not installed, using slower XML parser for XML-RPC
2014-12-09 19:51:20,835 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2014-12-09 19:51:20,837 INFO daemonizing the supervisord process
2014-12-09 19:51:20,838 INFO supervisord started with pid 19621
2014-12-09 19:55:48,756 INFO spawned: 'capturebate' with pid 19677
2014-12-09 19:55:49,142 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:50,145 INFO spawned: 'capturebate' with pid 19679
2014-12-09 19:55:50,149 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:52,153 INFO spawned: 'capturebate' with pid 19680
2014-12-09 19:55:52,157 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:55,163 INFO spawned: 'capturebate' with pid 19681
2014-12-09 19:55:55,168 INFO exited: capturebate (exit status 127; not expected)
2014-12-09 19:55:56,169 INFO gave up: capturebate entered FATAL state, too many start retries too quickly



Did:
sudo supervisorctl reread show that everything was fine?

And:
sudo supervisorctl update

Was ran?

I don't run capturbate as root, I run it as a user, you may want to try that. Otherwise, edit /etc/supervisor/supervisord.conf and add loglevel=debug to the [supervisord] section.


P.S:
To get rid of the warning about CElementtree:

sudo apt-get install python2.6-celementtree


Should fix it for Debian.

flipper2011
12-11-2014, 04:13 PM
It didn't work in debian 7 as root but then I tried to do it as normal user but it didn't work correctly and I ended up switching to Mint 17.1 and it worked flawlessly as a user. THANKS

Did:
sudo supervisorctl reread show that everything was fine?

And:
sudo supervisorctl update

Was ran?

I don't run capturbate as root, I run it as a user, you may want to try that. Otherwise, edit /etc/supervisor/supervisord.conf and add loglevel=debug to the [supervisord] section.


P.S:
To get rid of the warning about CElementtree:

sudo apt-get install python2.6-celementtree


Should fix it for Debian.

zugg
12-11-2014, 05:55 PM
It didn't work in debian 7 as root but then I tried to do it as normal user but it didn't work correctly and I ended up switching to Mint 17.1 and it worked flawlessly as a user. THANKS

No probs, I run it with Ubuntu 14.04.1LTS and all works well :).

flipper2011
12-11-2014, 10:29 PM
No probs, I run it with Ubuntu 14.04.1LTS and all works well :).

Since you seem to have all the answers :) can you give me EXACT instructions to get FFMPEG to work - no matter what I try it doesn't work (so I can't use this VM to convert). I just copy the files to my Windows session and manually do it, but if I can get FFMPEG to work correctly, it would help

Also, unrelated, is there a simple way to STOP recording someones cam (after it already is started). I was recording someone that was on all day and it was more or less a waste of 4gig's of space so I wanted to abort the cam recording, but ended up just restarting mint and that worked.

zugg
12-15-2014, 03:45 AM
Since you seem to have all the answers :) can you give me EXACT instructions to get FFMPEG to work - no matter what I try it doesn't work (so I can't use this VM to convert). I just copy the files to my Windows session and manually do it, but if I can get FFMPEG to work correctly, it would help

Also, unrelated, is there a simple way to STOP recording someones cam (after it already is started). I was recording someone that was on all day and it was more or less a waste of 4gig's of space so I wanted to abort the cam recording, but ended up just restarting mint and that worked.

Here is my Dockerfile, which I use for Ubuntu 14.04, which you can draw from: https://github.com/zugg/capturbate-docker/blob/master/Dockerfile

Also, not sure how to stop, as it would just resume recording them as they are on your wishlist.

CrazyNash
12-21-2014, 04:43 PM
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.


I have the exact same problem : no recording.
Regarding github issues, same problem than the issue #8 "0 byte files" (all files have a size of 0).

Removing the "--quiet" option in models.py gives me the error :
"ERROR: RTMP_Connect0, failed to connect socket. 111 (Connection refused)".

I *do* have installed the KSV patch (in /usr/bin).
I've either git cloned the KSV repository and too tryed to git clone the ffmpeg original rtmpdump repository then apply the KSV Patch.diff file before compiling : still the same problem (Connection refused).

I really don't see what i'm missing ...
I'm running Ubuntu but as far as i can tell it should be irrelevant for this issue ...

It is a rtmpdump issue, of course, but if anyone would have a solution, i would be grateful.

Thanks anyway for this script that seems to be very well done (so bad the recording doesn't work for the now).

zugg
12-22-2014, 05:26 PM
I have the exact same problem : no recording.
Regarding github issues, same problem than the issue #8 "0 byte files" (all files have a size of 0).

Removing the "--quiet" option in models.py gives me the error :
"ERROR: RTMP_Connect0, failed to connect socket. 111 (Connection refused)".

I *do* have installed the KSV patch (in /usr/bin).
I've either git cloned the KSV repository and too tryed to git clone the ffmpeg original rtmpdump repository then apply the KSV Patch.diff file before compiling : still the same problem (Connection refused).

I really don't see what i'm missing ...
I'm running Ubuntu but as far as i can tell it should be irrelevant for this issue ...

It is a rtmpdump issue, of course, but if anyone would have a solution, i would be grateful.

Thanks anyway for this script that seems to be very well done (so bad the recording doesn't work for the now).

Are you banned from Chaturbate's rtmp servers maybe?

CrazyNash
12-23-2014, 01:27 AM
I don't think i'm banned. How could i check that ? The site works fine in any browser.

In the meanwhile, i installed the exact same packages on another computer (hosted online server), still on ubuntu (but 14.02 this time) and there everything works (exact same rtmpdump KSV version).
My local ubuntu is an old homemade-NAS running Ubuntu 12.04.

rtmpdump doesn't seem to have a lot of dependencies (libc and librtmp), so it's a bit weird.

The other difference is that my old precise ubuntu is running "at home" whereas the newer one is running directly online : could it be a network issue (port blocked by router / cable box) ?

flipper2011
12-27-2014, 08:32 PM
Are you banned from Chaturbate's rtmp servers maybe?

I'm starting to see Connection aborted, Error 104 connection reset by peer.

It was good for 3 weeks but I keep getting this, I also can connect from any browser.

trinhhoang
12-28-2014, 04:26 AM
https://github.com/ohhdemgirls/CaptureBate/

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

Requirements
(Debian 7, minimum)

RTMPDump(ksv) (https://github.com/BurntSushi/rtmpdump-ksv) used to capture the streams.

BeautifulSoup4 (https://pypi.python.org/pypi/beautifulsoup4/4.3.2) the screen-scraping library.

ffmpeg (https://www.ffmpeg.org/download.html) compiled with support for libmp3lame & libspeex audio for converting the output files.

Setup
First off you need a chaturbate account (https://chaturbate.com/accounts/register/), 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 (https://github.com/ohhdemgirls/CaptureBate/blob/master/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 (https://i.imgur.com/o9QyAVC.png) 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 (https://www.gnu.org/software/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 ..

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 (http://speex.org/downloads/)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 (https://github.com/ohhdemgirls/CaptureBate/) and help by sharing anywhere you see fit or fixing any issues (https://github.com/ohhdemgirls/CaptureBate/issues) that may arise.

Donations. btc: 1EMZSrLCLEoCYZfQ5ZC1Ly4b8HeeYRaWaF

Hi! Can show me details how to chang something in line 79 in modellists.py#L7, and download the link you show how to use it
Thank you!!!!

DefectedToRussia
12-29-2014, 01:22 PM
Hey this project seems cool! I'm working on a similar project but for windows + mac + android!
Glad to see there's a linux awesome project so that area's covered I just just focus on those three.

I'm having a little issue when I login for mine though. I notice I login through the same url as well, but after successfully logging in I get an error. However I'm feeling like I can mostly ignore it, just so long as its working to log in... But it's kind of annoying and I'd like to get to the bottom of it!

For now to give an update on the app, things are coming along pretty nicely.

TLS is working and I just got it to log in successfully and pass me a valid session id cookie :) You can tell when you're logged in as your password hash shows up in the rtmp info (is one obvious way anyway among others).

However there's an issue, where I get an 403 forbidden error after posting the data for some reason, but it still worked and it successfully logs in. Is this really an error or what is up with that? If I make handle redirects to false, I get a differnent not quite error, 302 found. and it still successfully logs in... Maybe it's better to stop at 302 found then with another instance of the class that has handle redirects enabled continue from there... As it seems handling redirects is neccessary to not to held up, and for things to work!

Successfully logged in with data relevant to being a logged in user rather than just anonymous :D
http://i.imgur.com/ErtOIZj.png

but that's after this:
http://i.imgur.com/bHbZ94c.png

I'm going to suppress the errors for sure, but 403 forbidden doesnt seem like something I want to be getting even if it successfully logs in! At least its working though :) But thanks to anyone who can help me get rid of this error!

http://i.imgur.com/DAYSfhl.png

I know you get csrf token from cookies/hidden field on web page and then you have to post it to the login page as "csrfmiddlewaretoken" along with "username" and "password"... That's simple enough right? Finally you can add at the end of the post data: "&rememberme=on" to get a longer lasting cookie? That's what I think anyway... Seems like that at least!

So what could I be doing wrong If I'm sending the data right... Well because how else would it log in and give me a valid session cookie after sending the post data to do the login process? there's just something miniscule causing an issue.. Thanks!

Farquaad
01-01-2015, 01:21 PM
nice script working great on my raspberry pi :D

CrazyNash
01-02-2015, 01:26 AM
Would have only one feature request : the ability to configure a "post process additionnal script" (in the configuration file). Like a regular shell externally provided.
That would allow to make additionnal actions on each file once recorded is ended, for example :
- move the file to another folder (would allow a rsync only on files whom recording is ended)
- start recompress through ffmpeg
- aso

Farquaad
01-02-2015, 04:51 AM
Would have only one feature request : the ability to configure a "post process additionnal script" (in the configuration file). Like a regular shell externally provided.
That would allow to make additionnal actions on each file once recorded is ended, for example :
- move the file to another folder (would allow a rsync only on files whom recording is ended)
- start recompress through ffmpeg
- aso

good ideas

venetroot
01-04-2015, 03:19 PM
hello

do you know what shall we do when model is constantly getting random disconnention and reconnetion again ?

i didnt test your script but i'd like to know what shall we do when model has a bad connection , cause everytime i test rtmp when either model or CB gets disconnection then rtmp stops recording and i should run rtmp again and start record from scratch and again and when model gets disconnection over to over every 2 minute we have for example: multiple file with 5mb size , what shall we do to tell rtmp to record from pervious recorded file if model gets disconnection ??

i mean we dont like to have multiple 5 file with 6mb ,

how to tell rtmp to record from disconnect session and add data to the FIRST recorded file ??

chocdude90
01-05-2015, 02:46 PM
Has anyone else problems with 0 byte files?

There is no error shown in outputlog :/

CrazyNash
01-06-2015, 10:55 AM
As stated a few messages above, those are rtmpdump errors (they are not related in any way to this script).

You can remove in models.py the "--quiet" parameter from the rtmpdump command line in order to see the errors in the log.

I really don't know how to correct those rtmpdump errors (they are "system" related as it works on some unbuntu installations but not on some others), feel free to post it there if you find some day.

chocdude90
01-06-2015, 11:40 AM
Thanks for the quick reply.
Now i am struggeling with the error

Connecting ...
INFO: Connected...
ERROR: Closing connection: NetStream.Play.Failed


Even reinstalling everything did not help. What a crap ^^

CrazyNash
01-06-2015, 12:03 PM
You can try −−verbose or even −−debug (rtmpdump parameters) to have additionnal informations.

str3amer
01-08-2015, 09:26 PM
Getting the following error:

user@debian:~/Downloads/CaptureBate-master$ python main.py
Traceback (most recent call last):
File "main.py", line 15, in <module>
Remove_folder(Script_folder)
File "/home/user/Downloads/CaptureBate-master/config.py", line 32, in Remove_folder
shutil.rmtree(folder)
File "/usr/lib/python2.7/shutil.py", line 252, in rmtree
onerror(os.remove, fullname, sys.exc_info())
File "/usr/lib/python2.7/shutil.py", line 250, in rmtree
os.remove(fullname)
OSError: [Errno 13] Permission denied: 'Scripts/cbmodel.sh'
user@debian:~/Downloads/CaptureBate-master$

Any ideas?

CrazyNash
01-09-2015, 04:50 AM
I hadn't that problem but a few ideas (assuming you're running under linux and not windows), as this error indicates that the auto-generated shell script (which is running the rtmpdump) can't be executed on your system :
- is your bash installation correct ? is bash available in your PATH before running this python script ?
- is your UMASK correct ? try setting a umask of 0 to have generated files have permissions 777 (just for the try)
- alternatively, you may probably edit the run.py script and modify the subprocess.Popen line to have something like "subprocess.Popen('/bin/bash '+script,cwd='Scripts/')

str3amer
01-09-2015, 03:33 PM
I hadn't that problem but a few ideas (assuming you're running under linux and not windows), as this error indicates that the auto-generated shell script (which is running the rtmpdump) can't be executed on your system :
- is your bash installation correct ? is bash available in your PATH before running this python script ?"subprocess.Popen('/bin/bash '+script,cwd='Scripts/')

bash installation? I have no clue, I just followed the setup described at Page 1 as well as the following code:


sudo apt-get install python-pip
apt-get install libssl-dev

cd /home/user/Downloads/CaptureBate-master/

sudo pip install -r requirements.txt

cd […] /rtmpdump-ksv-ksv/
make
sudo make install prefix=/usr
how can I check bash availability of my path?


Im new to linux, and linux isn't that beginner friendly

EDIT: "apt-get install bash" -> bash is already the current version. How do I check if bash is available in "my PATH"?
Im running Debian 7.7 (wheezy, 64-bit) in Oracle VM VirtualBox 4.3 in Windows7

EDIT2: turns out, the folders "Captured" and "Scripts" are only accessable through root terminal: But, when done in root terminal, there is no reaction... I can type whatever I want, no response. When pressing arrow up, down, left or right I get ^[[A, ^[[B, ^[[D or ^[[C

Farquaad
01-10-2015, 04:33 AM
hi,
for me Capturbare run great on Raspberry pi (debian)
but i have buy an Odroid-C1 and it run under unbutu 14.04 LTS and i have some issue with the script

10/01/2015 09:58:54 PM INFO:Starting application: version 7.0
10/01/2015 09:58:54 PM INFO:Connecting to https://chaturbate.com/auth/login/
10/01/2015 09:58:55 PM INFO:Starting new HTTPS connection (1): chaturbate.com
10/01/2015 10:01:02 PM ERROR:Some error during connecting to https://chaturbate.com/auth/login/
10/01/2015 10:01:02 PM ERROR:('Connection aborted.', error(110, 'Connection timed out'))
10/01/2015 10:01:02 PM ERROR:Trying again after 60 seconds


anyone can help me ?
thx

Farquaad
01-12-2015, 05:54 AM
hi,
for me Capturbare run great on Raspberry pi (debian)
but i have buy an Odroid-C1 and it run under unbutu 14.04 LTS and i have some issue with the script

10/01/2015 09:58:54 PM INFO:Starting application: version 7.0
10/01/2015 09:58:54 PM INFO:Connecting to https://chaturbate.com/auth/login/
10/01/2015 09:58:55 PM INFO:Starting new HTTPS connection (1): chaturbate.com
10/01/2015 10:01:02 PM ERROR:Some error during connecting to https://chaturbate.com/auth/login/
10/01/2015 10:01:02 PM ERROR:('Connection aborted.', error(110, 'Connection timed out'))
10/01/2015 10:01:02 PM ERROR:Trying again after 60 seconds


anyone can help me ?
thx

solved

CrazyNash
01-25-2015, 06:36 AM
Just to let you know, now i'm running under archlinux, and everything seems to work even better (previously i had sometimes files with 0 size created - the file on disk was 0 bytes but the rtmpdump process was ok in memory on a ps).

Still with python2.7, i don't have anymore the weird python errors i had from time to time (like "referenced before assignment" errors that where killing the script after a few days), also.

c4170001
02-03-2015, 04:37 PM
Nevermind.

ThunderIt
02-07-2015, 04:13 AM
What ways to use this script via proxy?

kanink
02-07-2015, 06:25 PM
Hello

Ive got some problems and to be honest, Im more a beginner. Please dont be too hard with me.

First of all: I downloaded all files, extracted em and out em to Debian 7 Desktop. First question: Do I have to put rtmpdump ksv, chaturbate master, ffmpeg and beautifulsoup all in the same folder? Do I have to install the downloaded files via terminal?

Second: I put my username and password (not hash) into config.conf... right so far? and I put the username and hash password into nodellists.py. So the password part Ive to replace "pw" text and in the username part there was "USER.lower()". Do i have to replace "USER.lower()" completele or just put in my username in "(...)" or do I have to replace "USER". Im confused.

Third: Where to put outcome path into config.conf? There is no "outcome:". There is only "RTMPDUMP: /usr/bin/rtmpdump"

Fourth: If everything I did was right... how to solve this error: couldnt read valid conf... (etc). But I think I did wrong

Fifth: Is there a "beginner tutorial debian for idots" somewhere? I have some clues how to do several things, but tutorials like this one "how to use capturebate" are a bit confusing (i think thats because basics arent mentioned here and I dont know all basics)

- I read the problems/questions on the other pages in this thread. I guess there are some helping spots but I dont really get it, its all partwise for a specific error/question. Is there a possibility to explain how to install and use this from begin with step for step for idiots?

coalmorning
02-10-2015, 03:41 AM
Anyone get this script working in Lubuntu as a VMWare Workstation VM?

I can get the script running without error, though when it records, it creates a 0kb flv file, then when the script rechecks after that 45 second pause, it creates another 0kb file, and just keeps repating that every 45 seconds without ever recording an actual stream.

I've tried installing rtmpdump 2 ways. 1st way just as described in capturbates readme. 2nd way I installed via synaptic. Same behavior both ways.

I've got this running fine in Linux Mint and Ubuntu. But it wont record in Lubuntu or Xbuntu as a VMWare virtual machine.

Any suggestions?

kanink
02-10-2015, 06:19 PM
I know that error somewhere. Are you logged in (on chaturbate)?

coalmorning
02-12-2015, 02:59 AM
Anyone get this script working in Lubuntu as a VMWare Workstation VM?

I can get the script running without error, though when it records, it creates a 0kb flv file, then when the script rechecks after that 45 second pause, it creates another 0kb file, and just keeps repating that every 45 seconds without ever recording an actual stream.

I've tried installing rtmpdump 2 ways. 1st way just as described in capturbates readme. 2nd way I installed via synaptic. Same behavior both ways.

I've got this running fine in Linux Mint and Ubuntu. But it wont record in Lubuntu or Xbuntu as a VMWare virtual machine.

Any suggestions?


Well, I think I figured the problem. Apparently you need to build rtmpdump with a specific command for certain distros. Well, thats at least the case for me, also keep in mind I'm using Linux in a VMWare Workstation VM.

I got RTMPDUMP working in Lubuntu, Peppermint, and Xbuntu distros by compiling RTMPDUMP with the following command:

make SYS=posix

then the following to install...

make install


To get RTMPDUMP working in Linux Mint and Ubuntu, all I had to do was compile it with the "make" command.

I'm currently using the Peppermint Distro. It's really light weight, and easy on the RAM, only 370MB RAM with the script recording a few streams. So far, so good.

meskman
02-17-2015, 08:10 AM
@ohhdemgirls: Why are you blocking me on github? I know that you got the code that was uploaded to github by mistake. I'm not judging you. I'm just curious why you are so devious.

Farquaad
03-21-2015, 04:57 AM
development is dead ?

ohhdemgirls
03-21-2015, 04:17 PM
@ohhdemgirls: Why are you blocking me on github? I know that you got the code that was uploaded to github by mistake. I'm not judging you. I'm just curious why you are so devious.
See PM, not devious, just wanted to keep your name out of it when you jumped ship.

development is dead ?
No, still active and ported, see forks and join empornium.

ironsheik
03-25-2015, 01:11 AM
Can Capturebate record private and password shows?

Farquaad
03-25-2015, 04:41 AM
Can Capturebate record private and password shows?

no if you want record private show buy token en buy "Bandicam"


and Thx ohhdemgirls :)

flipper2011
03-31-2015, 09:06 PM
I know this is thread is kind of dead, but anyone having a problem with the script? never really had any issues till earlier this morning when all files that are recorded are 0 bytes. it might have happened occasionally previous but now it's happening all the time. I rebooted and tried different things but no luck. any ideas? It also creates the 0 byte file over and over every time thru the routine.

alliknowisyayo
04-01-2015, 03:14 PM
See PM, not devious, just wanted to keep your name out of it when you jumped ship.


No, still active and ported, see forks and join empornium.


Hey, I can't get your program to work on raspberry Pi running Raspbian. Keep getting errors ranging from Permission denied to script not even starting.

If you would be so kind, could you write a step-by-step tutorial to get this working starting from a fresh install of Raspbian (Debian). Thanks :).

alliknowisyayo
04-01-2015, 07:15 PM
Yeah I keep getting this error:


./blancnoir.sh: 2: ./blancnoir.sh: /home/pi/rtmpdump-ksv: Permission denied

when using /usr/bin/rtmpdump (installed rtmpdump in that folder too):

./blancnoir.sh: 2: ./blancnoir.sh: /usr/bin/rtmpdump: Permission denied

Pls help

c4170001
04-02-2015, 08:43 AM
Yeah I keep getting this error:


./blancnoir.sh: 2: ./blancnoir.sh: /home/pi/rtmpdump-ksv: Permission denied

when using /usr/bin/rtmpdump (installed rtmpdump in that folder too):

./blancnoir.sh: 2: ./blancnoir.sh: /usr/bin/rtmpdump: Permission denied

Pls help

https://github.com/duradesondstarm/CaptureBate/

Use this fork and save yourself some trouble.

meskman
04-06-2015, 03:11 AM
I know this is thread is kind of dead, but anyone having a problem with the script? never really had any issues till earlier this morning when all files that are recorded are 0 bytes. it might have happened occasionally previous but now it's happening all the time. I rebooted and tried different things but no luck. any ideas? It also creates the 0 byte file over and over every time thru the routine.

0 byte files appear in case model is in private or hidden mode. It creates file and starts capturing but interrupts because of that. So if you see a lot zero-bytes files it means script had a several attempts to capture private or hidden stream.

vovvan
04-07-2015, 08:37 AM
Hi I have a problem I can not run this script, I would be very grateful if it were someone made 7 debian image with this script in virtualbox:(

flipper2011
04-19-2015, 07:41 PM
0 byte files appear in case model is in private or hidden mode. It creates file and starts capturing but interrupts because of that. So if you see a lot zero-bytes files it means script had a several attempts to capture private or hidden stream.

that wasn't the issue, I never found the issue, but I switched to the fork version above.. it worked correctly.

musterman
05-17-2015, 04:26 PM
that wasn't the issue, I never found the issue, but I switched to the fork version above.. it worked correctly.

I have the same problem but neither using the fork nor specifying the system helped

so like vovvan I would be very gratefull for a small virtualbox image with the script already installed

ps: I just want to say that I really appreciate this script and I am happy someone took the time and made this available to the public

dealercohagen
05-20-2015, 10:26 PM
Is there a Windows version available?, I installed Debian 8 on my other computer and tried to get this to work but I couldn't, because I am not familiar with Linux, I couldn't even get python to work, I will try again with Debian 7, I would really like to use this since I always missing shows from my favorite performers.

James Halpert
05-21-2015, 01:21 AM
Is there a Windows version available?, I installed Debian 8 on my other computer and tried to get this to work but I couldn't, because I am not familiar with Linux, I couldn't even get python to work, I will try again with Debian 7, I would really like to use this since I always missing shows from my favorite performers.

Just install virtualbox, any PC made in the last 7-8 years is capable of running virtualbox. Within VirtualBox a Debian 7 VM would only need 256MB or so worth of RAM, and 1 core should suffice, 2 cores if you have a crap CPU (like one of those piece of shit i3 or i5 CPUs).

Best part is, its all open source and free, plus its far easier to setup and work with than installing an OS on a spare PC.

dealercohagen
05-23-2015, 12:32 AM
Just install virtualbox, any PC made in the last 7-8 years is capable of running virtualbox. Within VirtualBox a Debian 7 VM would only need 256MB or so worth of RAM, and 1 core should suffice, 2 cores if you have a crap CPU (like one of those piece of shit i3 or i5 CPUs).

Best part is, its all open source and free, plus its far easier to setup and work with than installing an OS on a spare PC.

Thanks for the tip, I installed virtualbox on my PC couldn't find Debian 7 so I installed 8, I couldn't get the original script working so I tried the fork version and I got it running but it's not recording, it just creates empty folders with model names, not sure what I'm doing wrong, this is what my output log looks like...



23/05/2015 02:12:21 AM INFO:Starting application: version 7.0
23/05/2015 02:12:21 AM INFO:Connecting to https://chaturbate.com/auth/login/
23/05/2015 02:12:21 AM INFO:Starting new HTTPS connection (1): chaturbate.com
23/05/2015 02:12:23 AM INFO:Redirecting to https://chaturbate.com/followed-cams/
23/05/2015 02:12:24 AM INFO:[Models_list] 4 models are online: [u'model01', u'model02', u'model03', u'model04']
23/05/2015 02:12:24 AM INFO:[Select_models] Which models are approved?
23/05/2015 02:12:24 AM INFO:[Select_models] model02 is approved
23/05/2015 02:12:24 AM INFO:[Select_models] model03 is approved
23/05/2015 02:12:24 AM INFO:Starting recording of model02
23/05/2015 02:12:25 AM INFO:Starting recording of model03
23/05/2015 02:12:26 AM INFO:Waiting for 45 seconds
23/05/2015 02:12:36 AM INFO:No stream on model03
23/05/2015 02:12:37 AM INFO:No stream on model02
23/05/2015 02:13:11 AM INFO:Connecting to https://chaturbate.com/auth/login/
23/05/2015 02:13:11 AM INFO:Starting new HTTPS connection (1): chaturbate.com
23/05/2015 02:13:13 AM INFO:4 Models in the list before checking: [u'model01', u'model02', u'model03', u'model04']
23/05/2015 02:13:13 AM INFO:Redirecting to https://chaturbate.com/followed-cams/
23/05/2015 02:13:15 AM INFO:[Models_list] 4 models are online: [u'model01', u'model02', u'model03', u'model04']
23/05/2015 02:13:15 AM INFO:[Compare_lists] Checking model list:
23/05/2015 02:13:15 AM INFO:[Compare_lists] model02 is still being recorded
23/05/2015 02:13:15 AM INFO:[Compare_lists] model03 is still being recorded
23/05/2015 02:13:15 AM INFO:[Select_models] Which models are approved?
23/05/2015 02:13:15 AM WARNING:[Select_models] No models for approving
23/05/2015 02:13:15 AM INFO:[Loop]Model list after check looks like: 2 models:
[u'model01', u'model04']
and models currently being recorded are:
[u'model02', u'model03']
23/05/2015 02:13:15 AM INFO:[Sleep] Waiting for next check (45 seconds)



I get this error...



Models currently recorded: [u'model02', u'model03']
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 859, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 732, in format
return fmt.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 471, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 331, in getMessage
msg = str(self.msg)
TypeError: __str__ returned non-string (type SysCallError)
Logged from file connection.py, line 36

dealercohagen
05-27-2015, 05:05 AM
I tried the original script again after trying to properly install RTMPDump and it's working now, but after running it for 3 hours or so it stopped recording new modes and it showed this error...



26/05/2015 11:29:33 AM INFO:Connecting to https://chaturbate.com/auth/login/
26/05/2015 11:29:33 AM INFO:Starting new HTTPS connection (1): chaturbate.com
26/05/2015 11:29:38 AM ERROR:Some error during posting to https://chaturbate.com/auth/login/
26/05/2015 11:29:38 AM ERROR:('Connection broken: IncompleteRead(4548 bytes read)', IncompleteRead(4548 bytes read))



I had to restart it to get it working again.

dealercohagen
05-28-2015, 01:47 AM
Why this script only works on Linux and not on Windows?...Python, RTMPDump, Livestreamer and BeautifulSoup4 all work on Windows so shouldn't this script work on Windows as well, would it be posible to make a few changes here and there to get it running on Windows? I tried running it but wouldn't connect.



28/05/2015 01:44:16 AM INFO:Starting application: version 7.0
28/05/2015 01:44:16 AM INFO:Connecting to https://chaturbate.com/auth/login/
28/05/2015 01:44:16 AM INFO:Starting new HTTPS connection (1): chaturbate.com
28/05/2015 01:44:17 AM ERROR:Some error during connecting to https://chaturbate.com/auth/login/
28/05/2015 01:44:17 AM ERROR:hostname 'chaturbate.com' doesn't match u'*.chaturbate.com'
28/05/2015 01:44:17 AM ERROR:Trying again after 60 seconds



I know I can just use Linux on virtualbox and that's what I've been doing and it's working so far but my problem is transferring the videos from Guest to Host, I tried to install Guest Additions but could not get it to work I tried using a USB flash drive but that didn't work either, so I had to upload all the videos and then download them to my PC, I prefer not doing any transferring or uploading and just have the videos saved to direct to my Windows PC, so if anyone can help me out I would highly appreciate.

cidman
07-15-2015, 04:54 PM
Is this still working on the linux side.
All of a sudden today they changed either rtmp servers or the name of the servers

nevermind i figured it out, i deleted most of this post as it was unnecessary. I will check back later if anyone is having issues to help

Ignisbe
07-17-2015, 02:40 PM
Recently ive started to get the model status is error when using rtmpdump. Used to work fine, double check the passhash and the location of the stream and it all seems ok.

Any other ideas?

blubbii91
08-06-2015, 07:24 AM
hi guys,

im new here and i have a few issues and questions about this.
Im currently using a linux ubuntu VM for this.
But i just stuck in the part where i have to put my pwhash into the modellist.py File. Line 79 is a completly emtpy line for me, what is wrong there? Can you please give me a hint where i have to put the pwhash and username in this file?
In the config file i have to put my pw in normal form alright?

I just tryed to run the main.py in terminal by using "./main.py" but got the following error message:
$ ./main.py
./main.py: line 3: $'\nMain file that includes all functions in appropriate order\n': command not found
from: can't read /var/mail/config
from: can't read /var/mail/time
./main.py: line 15: syntax error near unexpected token `Remove_folder'
./main.py: line 15: ` Remove_folder(Script_folder)'


Thanks in advance and sorry for bad english. Im also normaly a windows user and have this vm "only" for education purposes.

c4170001
08-06-2015, 03:01 PM
hi guys,

im new here and i have a few issues and questions about this.
Im currently using a linux ubuntu VM for this.
But i just stuck in the part where i have to put my pwhash into the modellist.py File. Line 79 is a completly emtpy line for me, what is wrong there? Can you please give me a hint where i have to put the pwhash and username in this file?
In the config file i have to put my pw in normal form alright?

I just tryed to run the main.py in terminal by using "./main.py" but got the following error message:
$ ./main.py
./main.py: line 3: $'\nMain file that includes all functions in appropriate order\n': command not found
from: can't read /var/mail/config
from: can't read /var/mail/time
./main.py: line 15: syntax error near unexpected token `Remove_folder'
./main.py: line 15: ` Remove_folder(Script_folder)'


Thanks in advance and sorry for bad english. Im also normaly a windows user and have this vm "only" for education purposes.

You only need to enter your username and password in the config file, it finds the hash automatically. No idea what you did to get those other errors though...

Anyway, I recommend using capturebate-node (https://github.com/SN4T14/capturebate-node/), much less hassle, pretty sure it works in Windows without modification and doesn't generate a new file every minute.

dealercohagen
08-07-2015, 05:13 AM
capturebate-node works on Windows, the only problem is when a model goes private it generate a new file every few seconds with 0 KB, is there a way to fix this?, also how do I stop recording properly? I tried Ctrl+C, it stops but the videos that was recording is not seekable and 00:00 duration.

blubbii91
08-07-2015, 06:44 PM
Hi thanks for that advice.
I did all steps to install capturbate-node and i tryed to use "screen" for running main.js.
So i installed screen by doing sudo apt-get screen. But when i type "screen" in terminal followed by "node main.js" nothing happens for me? There is no output but also no error message.
Can anyone help me?

Thanks in advance!

c4170001
08-07-2015, 10:52 PM
capturebate-node works on Windows, the only problem is when a model goes private it generate a new file every few seconds with 0 KB, is there a way to fix this?, also how do I stop recording properly? I tried Ctrl+C, it stops but the videos that was recording is not seekable and 00:00 duration.

The 0KB files also happens with the original Python version, it's just due to the way RTMPDump works. The reason it's creating them so often is because it rechecks every 10 milliseconds, which I believe is a mistake on the programmer's behalf. Just change the interval in your config to, for example, 60000 for every minute.

As for your other question, I don't really have a solution for exiting gracefully (I never need to manually exit), but you can create a .bat file with the following, it should fix most things:

ffmpeg -i "%~1" -async 1 -vcodec copy -acodec libvo_aacenc "%~p1%~n1 fix.flv"

Just have to drag a file into it and you're good to go.
Hi thanks for that advice.
I did all steps to install capturbate-node and i tryed to use "screen" for running main.js.
So i installed screen by doing sudo apt-get screen. But when i type "screen" in terminal followed by "node main.js" nothing happens for me? There is no output but also no error message.
Can anyone help me?

Thanks in advance!

Do you know what screen is for? If you're running it under a Linux VM that will be running on your computer 24/7, you should just be running it using 'python main.js', which you will want to try first anyway, to see if it actually works. Like I mentioned though, it does work on Windows so you don't need to go through the hassle of using a VM.

musterman
08-17-2015, 02:55 PM
capturebate-node works on Windows, the only problem is when a model goes private it generate a new file every few seconds with 0 KB, is there a way to fix this?, also how do I stop recording properly? I tried Ctrl+C, it stops but the videos that was recording is not seekable and 00:00 duration.

could you explain how you got capturebate-node to work on windows?
i tried to run it and says that all models that i follow are online which was not true for the moment i started it
then it shows a message that every model stopped streaming then it starts again
this repeats again and again creating a 0kb for each model everytime

dealercohagen
08-20-2015, 01:47 AM
could you explain how you got capturebate-node to work on windows?
i tried to run it and says that all models that i follow are online which was not true for the moment i started it
then it shows a message that every model stopped streaming then it starts again
this repeats again and again creating a 0kb for each model everytime



Extract rtmpdump-2.4 to capturebate-node folder then press and hold the shift key and right click on the folder and click on Open Command Window Here, copy this

npm install bluebird
npm install js-yaml
npm install bhttp
npm install cheerio
npm install moment
npm install mkdirp
npm install string
npm install errors
npm install rtmpdump
paste it and press enter.
after it installed the packages, run it using node main.js

It worked for me, not sure it will work for you.

gdunc
08-22-2015, 07:32 AM
It worked for me, not sure it will work for you.

Hi dealercohagen, I'm getting the exact same problem on two different systems, 8.1Pro x64 and 8.1Pro x86, (the x86 is a new install).

Followed your instructions but when run I'm getting the same 0 byte files musterman gets, although in my case it correctly sees which models are online rather than all.

Turned on debugging and the following error is being returned by RTMPDUMP:

INFO: Connected
ERROR: Closing connection: Netstream.Play.Failed

This seems to be a problem with the args passed to RTMPDUMP as doing an anonymous capture from the CLI works fine.

Is there some way I can get the RTMPDUMP command and args being used?

dealercohagen
08-28-2015, 06:07 AM
Hi dealercohagen, I'm getting the exact same problem on two different systems, 8.1Pro x64 and 8.1Pro x86, (the x86 is a new install).

Followed your instructions but when run I'm getting the same 0 byte files musterman gets, although in my case it correctly sees which models are online rather than all.

Turned on debugging and the following error is being returned by RTMPDUMP:

INFO: Connected
ERROR: Closing connection: Netstream.Play.Failed

This seems to be a problem with the args passed to RTMPDUMP as doing an anonymous capture from the CLI works fine.

Is there some way I can get the RTMPDUMP command and args being used?

I stopped using using capturebate-node a while ago because it only worked for a few hours and then I would always get connection timed out and it stopped capturing models. I switched to the fork version and it's works much better than the node version, I had it running for 3 days without a problem.

I try the node version today and for some reason now I'm getting the exact same problem as you, not sure what happened but It was the first time and now it's not anymore, I suggest you try the fork version, It worked on two system running win 10 pro x86 and x64.

gdunc
09-01-2015, 05:52 AM
I suggest you try the fork version ...

OK thanks, I'll set it up in a VM then move it to the RasPi when I've got it running.

CrazyNash
09-25-2015, 07:28 AM
Ok just to let you know - i used that script for a while, but there were quite a lot of problems with it in my opinion.
- main script got stuck from time to time (had to write a "check.sh" to analyze logs and restart it if nothing outputed for a few minutes ...)
- main script got internal weird python errors about variables not anymore recognized (?!)
- must "follow" the models (which is really a pain as it leads to login troubles thereafter)
- very difficult to make any evolutions on my side (as written in python, which i'm not fan of)
- not very robust (checking the 14th or 15th column of a "ps" for example)

As correcting all this would have been quite a hassle for me (again, i dont know python and i'm really not interested by this language), i've rewritten the whole thing and now i have a solution who (for me at least) works really better.

I have two Docker containers.
The first one "rips" the videos.
The second one re-encodes them from .flv to .mp4 (just the audio, see below).

The "ripper" Docker container is a java process which allows :
- to publish (very basic, but enough for me) web pages to administrate the wishlist online (subscribe / unsubscribe), check what is and what has been recorded, cancel a recording, ... (wishlist.txt is still editable on the disk but it's easier to just use the basic web pages)
- to have a robust internal behavior ("0 file size" (which occurs really less now) are checked in the background for example)
- to check several URLs and on several sub-pages (no need to follom models) (checking 10 pages takes less than 1 sec. on my core i3)
- to move (if configured) the downloaded files to another folder
- to have an easy-to-modify file pattern (destination, filename structure, date pattern)
- to work either as a daemon, either on demand
- ...

http://i.imgur.com/3KEfwsE.png

http://i.imgur.com/W7eRqHZ.png

http://i.imgur.com/v8LX1Hj.png


09:48:31.683 [THREAD-MAIN] INFO ********.rip.plugins.cb.CBRipper - Configuration : CBRipperConfiguration : connectionTimeout [5000ms], daemonMode [true], downloadedPath [downloaded], downloadingPath [downloading], filenameDateTimePattern [YYYY-MM-dd_HH-mm], filenamePattern [${model}_${date}.flv], onlineModelsURL [https://chaturbate.com/female-cams/,https://chaturbate.com/couple-cams/], onlineModelsURLPageCount [5], password [******], processedPath [processed], processingPath [processing], rtmpBinary [/opt/rtmpdump-ksv/rtmpdump], token [*****], username [*****], waitTimeout [45000ms], wishlistFileName [/downloads/cb/wishlist.txt]


The "converter" Docker container is just a wrapper around ffmpeg (built with libspleex) (real ffmpeg, and not avconv) with the following conversion in a "while [ true ]" shell loop :

< /dev/null ffmpeg -threads 2 -i "$INPUT" -c copy -acodec mp3 "$OUTPUT" > ffmpeg.log 2>&1

(may seems quite simple but took me awhile to have this running, as before Dockerizing this part, i had a very old avconv binary)

The folders organization is as follow :

"ripper" container
- download files under "downloading/"
- move them once finished under "downloaded/"

"converter" container
- move files from "downloaded/" to "converting/"
- mode them once finished under "converted/"

Additionnally, a "syncing" operation transfers everything from my server to my NAS :
- move files from "converted/" to "syncing/"
- deletes them if transfer has been successful

That way i never have any "synchronisation" problem between files and folders (every step has its own input and output folder).

coalmorning
09-26-2015, 03:32 AM
Ok just to let you know - i used that script for a while, but there were quite a lot of problems with it in my opinion.


I've used this script since it was first posted, and it's worked flawlessly for me. The one problem I had was getting RTMPDump set properly.

I have the script configured on a Linux Peppermint virtual machine. No problems whatsoever, except for the 0kb files that appear when a model goes into a private show, other than that, flawess operation.

The only gripe I have is how the files are named, which ruin the ability to sort by model name.

The files should be named as followed... [model][date][time]
theres really no need to have Chaturbate in the file name either.

bhuwanchander
09-27-2015, 03:28 PM
Thank you c4170001 for recommending http://googgl.me/12raC , its really hassle free, works in Windows without customization and doesn't generate a new file every minute, as it was earlier. I am not sure about Linux, because I never used Linus in my lifetime. But about windows its working fine. thank you again c4170001 for your help.

gdunc
09-28-2015, 02:00 AM
- must "follow" the models (which is really a pain as it leads to login troubles thereafter)

FWIW, the forked version of Capturebate doesn't need a valid login/password, just the names of the models in the wishlist.txt file - something I only discovered a couple of days ago.

The forked version uses livestreamer for the capture of the m3u8 feed so you end up with an AVC/AAC mp4 file.
The only problem with this is that Vegas won't load these files unless it's been remuxed by ffmpeg using the -bsf:a aac_adtstoasc parameter to correct the audio, this sometimes results in the audio being out of sync which can be a PITA to fix.

Will you be releasing your Docker containers?

gdunc
10-04-2015, 01:18 AM
The only gripe I have is how the files are named, which ruin the ability to sort by model name.

In modellists.py change the following line:

flinks.write('%(rtmp_bin)s --quiet --live --rtmp "rtmp://%(stream_server)s/live-edge" --pageUrl "http://chaturbate.com/%(model_name)s" --conn S:%(username)s --conn S:%(model_name)s --conn S:%(flash_ver)s --conn S:%(pw_hash)s --token "m9z#$dO0qe34Rxe@sMYxx" --playpath "playpath" --flv "%(video_folder)s/Chaturbate_%(date_string)s_%(model_name)s.flv"' % form_dict)

To:

flinks.write('%(rtmp_bin)s --quiet --live --rtmp "rtmp://%(stream_server)s/live-edge" --pageUrl "http://chaturbate.com/%(model_name)s" --conn S:%(username)s --conn S:%(model_name)s --conn S:%(flash_ver)s --conn S:%(pw_hash)s --token "m9z#$dO0qe34Rxe@sMYxx" --playpath "playpath" --flv "%(video_folder)s/%(model_name)s_%(date_string)s.flv"' % form_dict)

coolman_
10-08-2015, 02:38 AM
Hi!

I have a problem with rtmpdump on Linux (debian 8 on raspberry).
I use rtmpdump (KSV version) on both Windows and Linux. On Windows, that works just fine but on Linux, I always get that error :
ERROR: Closing connection: Netstream.Play.Failed

Here's the command line:
./rtmpdump -v -r "rtmp://edge13-b.stream.highwebmedia.com/live-edge" -p "http://chaturbate.com/model" -C S:mynickname -C S:model -C S:2.646 -C S:pbkdf2_sha256$PASSHASH -y "playpath" -o "test.flv"

Thank you!

gdunc
10-12-2015, 09:29 PM
I have a problem with rtmpdump on Linux (debian 8 on raspberry).

More information required:
RasPi v1 or v2 (they use different SoCs) ?
Precompiled rtmpdump (with KSV patches) or did you compile it yourself?

pro88
10-25-2015, 01:44 PM
Ok just to let you know - i used that script for a while, but there were quite a lot of problems with it in my opinion.

CrazyNash - Is there any chance you could provide your scripts mate?

beneton2003
10-26-2015, 05:04 AM
both variations python version as well as javascript version works fine, but i like js version bcs no troulbes with whitelists.txt, thanks a lot for authors

pro88
11-03-2015, 10:25 AM
Using the Javascript version and hit a brick wall. Any help would be appreciated in how to track this error down.


pi@raspberrypi ~/capturebate-node $ sudo node main.js
[2015-11-03T052111] capturebate-node started
[2015-11-03T052131] texas_blonde is now online, starting rtmpdump process
[2015-11-03T052131] milliemartins is now online, starting rtmpdump process

events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1000:11)
at Process.ChildProcess._handle.onexit (child_process.js:791:34)
pi@raspberrypi ~/capturebate-node $

pro88
11-03-2015, 11:24 PM
Making progress. Reinstalled rtpmdump and now have the following error.

Unhandled rejection TypeError: Object #<Object> has no method 'statsAsync'
at /home/pi/capturebate-node/main.js:45:13


It seems Node doesn't appear to support fs.statsAsync, only fs.statAsync.. but that doesn't work either (NetStream.Play.Failed)!

c4170001
11-04-2015, 04:37 PM
Making progress. Reinstalled rtpmdump and now have the following error.

Unhandled rejection TypeError: Object #<Object> has no method 'statsAsync'
at /home/pi/capturebate-node/main.js:45:13


It seems Node doesn't appear to support fs.statsAsync, only fs.statAsync.. but that doesn't work either (NetStream.Play.Failed)!

Are you using Node 4.0? After installing all the requirements, it should work straight away. That's the only thing that comes to mind.

pro88
11-06-2015, 07:13 AM
Are you using Node 4.0? After installing all the requirements, it should work straight away. That's the only thing that comes to mind.

Yes 4.2.1.

I've decided to use an older version of capturebate-node from the repository - which is allowing further progress but rtmpdump is failing with the following error:
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetStream.Play.Failed>
DEBUG: Property: <Name: description, STRING: security>
DEBUG: Property: <Name: clientid, NUMBER: 940681682.00>

I've tried installing both precompiled rtmpdump (ksv) and patching the main rtmpdump version - and both have the security error.

Really stuck on this one and not sure how to proceed. Any help appreciated :(

c4170001
11-06-2015, 11:15 AM
Yes 4.2.1.

I've decided to use an older version of capturebate-node from the repository - which is allowing further progress but rtmpdump is failing with the following error:
DEBUG: Property: <Name: level, STRING: error>
DEBUG: Property: <Name: code, STRING: NetStream.Play.Failed>
DEBUG: Property: <Name: description, STRING: security>
DEBUG: Property: <Name: clientid, NUMBER: 940681682.00>

I've tried installing both precompiled rtmpdump (ksv) and patching the main rtmpdump version - and both have the security error.

Really stuck on this one and not sure how to proceed. Any help appreciated :(

I've had that problem before. Try downloading the source, patching it and then compiling it. Once you've done that, cd into the librtmp folder (inside the RTMPDump source folder, e.g. /root/rtmpdump/librtmp), and enter these commands:


cp librtmp.so.1 /usr/lib

cp librtmp.so.1 /usr/lib64

cp librtmp.so.1 /lib

cp librtmp.so.1 /usr/lib/x86_64-linux-gnu


Tested on a brand new instance of Debian 8 x64 and works perfectly.

pro88
11-08-2015, 07:14 AM
Thanks for your suggestion. Tried but unfortunately still have the same issue. I'm running Debian 8 (RASPBIAN) on the Raspberry Pi.

Any other ideas?

I've had that problem before. Try downloading the source, patching it and then compiling it. Once you've done that, cd into the librtmp folder (inside the RTMPDump source folder, e.g. /root/rtmpdump/librtmp), and enter these commands:


cp librtmp.so.1 /usr/lib

cp librtmp.so.1 /usr/lib64

cp librtmp.so.1 /lib

cp librtmp.so.1 /usr/lib/x86_64-linux-gnu


Tested on a brand new instance of Debian 8 x64 and works perfectly.

c4170001
11-08-2015, 10:25 AM
Thanks for your suggestion. Tried but unfortunately still have the same issue. I'm running Debian 8 (RASPBIAN) on the Raspberry Pi.

Any other ideas?

Not really... thought that would work, it always does for me on Linux. I can only suggest flashing a fresh Raspbian image, installing only what is required to build the sources, then doing what I said on my previous post. Could be possible that there's something wrong because of your previous failed attempts.

For reference, I managed to get RTMPDump working on my Pi (Raspbian) using this method.

pro88
11-10-2015, 04:27 AM
For reference, I managed to get RTMPDump working on my Pi (Raspbian) using this method.

Please check your PMs :)

doobydoo
12-11-2015, 06:25 AM
Great script! Thanks for the work.

I have a question and a problem.

My problem...

I have the script running on UbuntuMate VM. It works great, though I often get the following error listed below, and was wondering if there's a fix to avoid this problem.

11/12/2015 06:05:17 AM INFO:Connecting to https://chaturbate.com/auth/login/
11/12/2015 06:05:17 AM INFO:Starting new HTTPS connection (1): chaturbate.com
11/12/2015 06:05:27 AM ERROR:Some error during posting to https://chaturbate.com/auth/login/
11/12/2015 06:05:27 AM ERROR:[Errno 104] Connection reset by peer


A few questions, if someone more knowledgeable can answer.

1. I'm using the original script. I tried some forks, and it appears they record a lower quality stream. Do the forks that record with LiveStreamer record at the same quality as the original??

2. Is there a more enhanced fork of this script that has any fixes, or is the original still the most stable to use?

3. Sometimes I got an error that read "ERROR:('Connection aborted.', BadStatusLine("''",))". I think this might have been due to my VM network connection as a NAT. Has anyone received that same error and know the cause and or fix for it should it happen again?

Thanks for any help.

doobydoo
12-19-2015, 10:43 AM
So I pieced together a solution, or a hacked up work around to deal with script disconnects when a server error occurs.

Basically, it’s just a script to restart capturebate when a certain string shows up in the output log.

I’m no scripting guru, so this is a novice attempt. I pieced the script together from examples I found around the web. Hopefully a scripting expert can improve on it.

I’m running capturebate on Ubuntu MATE. If you’re running a different distro, you may need to install any dependencies the script calls on in order to get it to work.

Here’s how it should work. If Errno or BadStatusLine show up in the output log, the script will kill any capturebate running scripts, then popup a notification window listing the error causing it to restart, then wait two minutes, and finally restart capturebate and continue monitoring the output log.

Copy the below listed code into a text file, name it monitor.sh, and save it into the root of your capturbate directory. After the file is created, right click it and click the permissions tab, then tick Allow executing file as a program.

#!/bin/bash

sudo tail -fn0 output.log |
grep --line-buffered 'BadStatusLine\|Errno' |
while read line; do
timestamp=${line/}
msg=${line#*]: }
notify-send -u critical "SCRIPT RESTARTED initiated by" "$timestamp" -t 0 &
pkill -f rtmpdump
pkill -f main.py &
sleep 2m
python main.py &
done


Now, start capturebate as normal, then run this script by opening a command prompt from within the capturbate directory, and use the command sudo ./monitor.sh

After that, the script should run and monitor the output log for the errors listed in the script, and restart when necessary.

I'm not sure how stable this script works, so monitor its operation and post any problems or improvements.

Jimmy77
01-25-2016, 04:54 AM
Hello

can anyone say again exactly where I need to copy my hash out. Just in line 79?

c4170001
01-25-2016, 02:23 PM
Hello

can anyone say again exactly where I need to copy my hash out. Just in line 79?

It grabs it automatically. You don't need to put it anywhere.

Jimmy77
01-26-2016, 01:29 AM
http://www2.pic-upload.de/img/29548323/ejsrkiszklw.png

He say "1 models Online" and models currently being recorded are [ ].

but he is nothing recording.

c4170001
01-26-2016, 11:54 AM
http://www2.pic-upload.de/img/29548323/ejsrkiszklw.png

He say "1 models Online" and models currently being recorded are [ ].

but he is nothing recording.

Eh, I would actually recommend using capturebate-node (https://github.com/SN4T14/capturebate-node/) if you can. It's easy to set up and doesn't create new files every 45 (?) seconds.

Sluthunter
02-26-2016, 10:55 AM
Anyone try capturebate-node on ubuntu 14.04 x86 ? Not working for me

jeff.kerby
03-04-2016, 05:22 PM
Can't get Chaturbate node or none node working at all, will not capture anything. Kind of disappointing, but I understand these folks are not getting paid for creating these scripts.:mad: :confused: