Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (Adult streaming videos) (http://stream-recorder.com/forum/forumdisplay.php?f=40)
-   -  

Automated Chaturbate Recording Under Linux

(http://stream-recorder.com/forum/showthread.php?t=19026)

flipper2011 12-09-2014 05:54 AM

Re: Automated Chaturbate Recording Under Linux


 
Thank you I will try it tonight!

Quote:

Originally Posted by zugg (Post 72541)
Debian / Ubuntu:
Code:

sudo apt-get update
sudo apt-get install supervisor

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

Code:

[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:
Code:

sudo supervisorctl reread
Should tell you that all is fine.

Then run:

Code:

sudo supervisorctl update
And it should be started, to check run:

Code:

sudo supervisorctl
And it should output something like:
Code:

capturebate                      RUNNING    pid 24295, uptime 0:01:46


flipper2011 12-09-2014 06:00 PM

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by flipper2011 (Post 72543)
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

Code:

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


This is the log file it created:

Code:

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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by flipper2011 (Post 72560)
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

Code:

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


This is the log file it created:

Code:

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:
Code:

sudo supervisorctl reread
show that everything was fine?

And:
Code:

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:
Code:

sudo apt-get install python2.6-celementtree
Should fix it for Debian.

flipper2011 12-11-2014 04:13 PM

Re: Automated Chaturbate Recording Under Linux


 
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

Quote:

Originally Posted by zugg (Post 72566)
Did:
Code:

sudo supervisorctl reread
show that everything was fine?

And:
Code:

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:
Code:

sudo apt-get install python2.6-celementtree
Should fix it for Debian.


zugg 12-11-2014 05:55 PM

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by flipper2011 (Post 72585)
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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by zugg (Post 72586)
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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by flipper2011 (Post 72588)
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-d...ter/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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by coalmorning (Post 72257)
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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by CrazyNash (Post 72776)
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

Re: Automated Chaturbate Recording Under Linux


 
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) ?


All times are GMT -6. The time now is 08:45 AM.