View Single Post
  #1191  
Old 08-31-2017, 12:26 PM
Gyttiie Gyttiie is offline
Junior Member
 
Join Date: Dec 2016
Posts: 7
Gyttiie is on a distinguished road
Default

Re: www.myfreecams.com: How can I record free sex web-cam chat (rtmp:// .flv)


Quote:
Originally Posted by Hermiod View Post
You can use a bat file or forever

Bat file contents:
@echo off
SET foo=1
:initiate
ECHO Starting program, attempt %foo%
node main.js
set /A foo=foo+1
timeout 30
goto :initiate


Forever:
https://www.npmjs.com/package/forever

My node disconnects 3 to 4 times a day. The bad part is im getting about 80GB of files a day
Quote:
Originally Posted by Hermiod View Post
Installation
$ [sudo] npm install forever -g

Usage
forever start app.js

I suppose you did not use the start command, failing to download might be caused by your firewall. To test if it was installed try:
forever --help

Those commands might only work inside a node.js command prompt. I am still using the bat file, but Horacio recommended 'forever'.
Now it's working, thanks.

There's written:
"warn: --minUptime not set. Defaulting to: 1000ms
warn: --spinSleepTime not set. Your script will exit if it does not stay
up for at least 1000ms
info: Forever processing file: main.js
"

As i understood, if during 1000ms i wont have internet connection, it will stop recording till i wont write again forever start main.js ?

Also, i want to ask you, is it always gonna be that window of ffmpeg.exe will be jumping out when the new model is online?
Reply With Quote