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)

doobydoo 12-11-2015 06:25 AM

Re: Automated Chaturbate Recording Under Linux


 
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.

Code:

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

Re: Automated Chaturbate Recording Under Linux


 
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.

Code:

#!/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

Re: Automated Chaturbate Recording Under Linux


 
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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by Jimmy77 (Post 82370)
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

Re: Automated Chaturbate Recording Under Linux


 
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

Re: Automated Chaturbate Recording Under Linux


 
Quote:

Originally Posted by Jimmy77 (Post 82384)
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 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

Re: Automated Chaturbate Recording Under Linux


 
Anyone try capturebate-node on ubuntu 14.04 x86 ? Not working for me

jeff.kerby 03-04-2016 05:22 PM

Re: Automated Chaturbate Recording Under Linux


 
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:


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