Jimmy77
01-30-2016, 01:13 PM
Hello i need help
is installed:
https://github.com/SN4T14/capturebate-node
(RTMPDump-ksv), Node.js and ffmpeg
when I start the node main.js
$ node main.js
[2016-01-30T075757] capturebate-node started
[2016-01-30T075804] duwreuza 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)
sorry for bad englisch
c4170001
02-01-2016, 06:14 AM
What version of Node.js are you using (type node -v in your terminal)?
Jimmy77
02-02-2016, 12:59 AM
What version of Node.js are you using (type node -v in your terminal)?
v0.10.29
c4170001
02-02-2016, 03:45 AM
Hm. Is your RTMPDump install working correctly? Have you tested it?
Jimmy77
02-02-2016, 07:57 AM
Hm. Is your RTMPDump install working correctly? Have you tested it?
how can I test RTMPDump? sorry for being a noob
on another PC
capturebate-node started
[2016-02-02T034513] sexysb is now online, starting rtmpdump process
[2016-02-02T034516] sexysb stopped streaming.
Unhandled rejection TypeError: fs.statsAsync is not a function
at /home/user/capturebate-node-master/main.js:45:13
at tryCatcher (/home/user/capturebate-node-master/node_modules/bluebird/js/m ain/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/user/capturebate-node-master/ node_modules/bluebird/js/main/method.js:31:24)
at getFileSize (/home/user/capturebate-node-master/main.js:44:20)
at /home/user/capturebate-node-master/main.js:129:12
at tryCatcher (/home/user/capturebate-node-master/node_modules/bluebird/js/m ain/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/user/capturebate-node-master/ node_modules/bluebird/js/main/method.js:31:24)
at ChildProcess.<anonymous> (/home/user/capturebate-node-master/main.js:128: 15)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
c4170001
02-02-2016, 09:17 AM
I guess it doesn't matter. That second error is due to having, I presume, a newer Node version.
I think the error is in your RTMPDump installation. Are you running it on a Raspberry Pi or other Linux machine using Debian?
Jimmy77
02-02-2016, 10:21 AM
I tested on the Raspberry Pi (Raspbian Jessie (https://www.raspberrypi.org/downloads/raspbian/)) and Computer with Debian 8.0.0 (LXDE)
How do I install RTMPDump + Patch (https://github.com/BurntSushi/rtmpdump-ksv) ?
c4170001
02-03-2016, 01:18 AM
I'll PM you instructions on how to successfully patch it on Wheezy.
jeff.kerby
02-28-2016, 02:51 PM
I am having the same error messages any help would be greatly appreciated.
[2016-02-28T094307] allissonhotbb stopped streaming.
Unhandled rejection TypeError: fs.statsAsync is not a function
at /home/jeff/CaptureBateNode/main.js:45:13
at tryCatcher (/home/jeff/CaptureBateNode/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/CaptureBateNode/node_modules/bluebird/js/main/method.js:
31:24)
at getFileSize (/home/jeff/CaptureBateNode/main.js:44:20)
at /home/jeff/CaptureBateNode/main.js:129:12
at tryCatcher (/home/jeff/CaptureBateNode/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/CaptureBateNode/node_modules/bluebird/js/main/method.js:
31:24)
at ChildProcess.<anonymous> (/home/jeff/CaptureBateNode/main.js:128:15)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:821:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
c4170001
02-29-2016, 01:12 PM
I am having the same error messages any help would be greatly appreciated.
Have you patched RTMPDump and confirmed it's working? What distro?
jeff.kerby
02-29-2016, 01:37 PM
I have no idea how to patch, I am running on Debian Jessie.
c4170001
02-29-2016, 03:44 PM
I have no idea how to patch, I am running on Debian Jessie.
su
cd /root
apt-get update
sudo apt-get install build-essential gcc make subversion git zlib1g zlib1g-dev zlibc libssl-dev binutils
git clone git://git.ffmpeg.org/rtmpdump
cd rtmpdump
wget https://github.com/downloads/K-S-V/Scripts/rtmpdump-2.4.zip
unzip -p rtmpdump-2.4.zip Patch.diff >Patch.diff
patch -p0 -i Patch.diff
make
sudo make install prefix=/usr
cp librtmp/librtmp.so.1 /usr/lib
cp librtmp/librtmp.so.1 /usr/lib64
cp librtmp/librtmp.so.1 /lib
You'll probably want to uninstall RTMPDump before doing that.
If that doesn't work, and you are using a Raspberry Pi, I can PM you instructions for setting it up on a fresh installation of Raspbian Wheezy, but that's the best I can do.
jeff.kerby
02-29-2016, 04:23 PM
This is what I get when I try to run the first make command:
make[1]: Entering directory '/home/jeff/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
rtmp.c:60:25: fatal error: openssl/ssl.h: No such file or directory
#include <openssl/ssl.h>
^
compilation terminated.
<builtin>: recipe for target 'rtmp.o' failed
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory '/home/jeff/rtmpdump/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2
c4170001
02-29-2016, 08:57 PM
This is what I get when I try to run the first make command:
make[1]: Entering directory '/home/jeff/rtmpdump/librtmp'
gcc -Wall -DRTMPDUMP_VERSION=\"v2.4\" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
rtmp.c:60:25: fatal error: openssl/ssl.h: No such file or directory
#include <openssl/ssl.h>
^
compilation terminated.
<builtin>: recipe for target 'rtmp.o' failed
make[1]: *** [rtmp.o] Error 1
make[1]: Leaving directory '/home/jeff/rtmpdump/librtmp'
Makefile:76: recipe for target 'librtmp/librtmp.a' failed
make: *** [librtmp/librtmp.a] Error 2
Did you install those packages? libssl-dev should contain the header files you need.
jeff.kerby
03-04-2016, 04:15 PM
Yes this is what I get now:
[2016-03-04T111312] hot_cupid stopped streaming.
Unhandled rejection TypeError: fs.statsAsync is not a function
at /home/jeff/capturebate-node-master/main.js:45:13
at tryCatcher (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/me
thod.js:31:24)
at getFileSize (/home/jeff/capturebate-node-master/main.js:44:20)
at /home/jeff/capturebate-node-master/main.js:129:12
at tryCatcher (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/me
thod.js:31:24)
at ChildProcess.<anonymous> (/home/jeff/capturebate-node-master/main.js:128:15)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
c4170001
03-04-2016, 08:41 PM
Yes this is what I get now:
[2016-03-04T111312] hot_cupid stopped streaming.
Unhandled rejection TypeError: fs.statsAsync is not a function
at /home/jeff/capturebate-node-master/main.js:45:13
at tryCatcher (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/me
thod.js:31:24)
at getFileSize (/home/jeff/capturebate-node-master/main.js:44:20)
at /home/jeff/capturebate-node-master/main.js:129:12
at tryCatcher (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/me
thod.js:31:24)
at ChildProcess.<anonymous> (/home/jeff/capturebate-node-master/main.js:128:15)
at emitTwo (events.js:100:13)
at ChildProcess.emit (events.js:185:7)
at maybeClose (internal/child_process.js:827:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
What version of node are you using (node -v)? I think that function was changed in newer versions, so try an older one.
jeff.kerby
03-06-2016, 12:37 PM
Running v5.7.0 what should I be running?
Thanks
c4170001
03-06-2016, 06:15 PM
Running v5.7.0 what should I be running?
Thanks
I'm personally using a really old version, v0.12.7. If you don't use Node for anything else just grab something like that.
jeff.kerby
03-07-2016, 09:06 AM
OK installed with no luck, guess I will forget about running this as it seems to be not working.
c4170001
03-07-2016, 09:51 AM
OK installed with no luck, guess I will forget about running this as it seems to be not working.
Open up the main.js file with a text editor or whatever, go to line #45 and change statsAsync to statsSync and see if it works.
jeff.kerby
03-07-2016, 11:39 AM
Here is the errors after making that change:
[2016-03-07T063818] dirtykym stopped streaming.
Unhandled rejection TypeError: undefined is not a function
at /home/jeff/capturebate-node-master/main.js:45:13
at tryCatcher (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/me
thod.js:31:24)
at getFileSize (/home/jeff/capturebate-node-master/main.js:44:20)
at /home/jeff/capturebate-node-master/main.js:129:12
at tryCatcher (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/home/jeff/capturebate-node-master/node_modules/bluebird/js/main/me
thod.js:31:24)
at ChildProcess.<anonymous> (/home/jeff/capturebate-node-master/main.js:128:15)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1019:16)
at Process.ChildProcess._handle.onexit (child_process.js:1091:5)
c4170001
03-07-2016, 05:48 PM
Here is the errors after making that change:
Then the problem is your RTMPDump installation, I think (if the models start streaming and immediately close).
Jimmy77
03-18-2016, 03:07 PM
since a few days I get this error messages
Unhandled rejection Error: read ECONNRESET
at exports._errnoException (util.js:837:11)
at TLSWrap.onread (net.js:544:26)
and
Unhandled rejection TypeError: fs.statsAsync is not a function
at /root/capturebate-node-master/main.js:45:13
at tryCatcher (/root/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/root/capturebate-node-master/node_modules/bluebird/js/main/method.js:31:24)
at getFileSize (/root/capturebate-node-master/main.js:44:20)
at /root/capturebate-node-master/main.js:129:12
at tryCatcher (/root/capturebate-node-master/node_modules/bluebird/js/main/util.js:26:23)
at Function.Promise.attempt.Promise.try (/root/capturebate-node-master/node_modules/bluebird/js/main/method.js:31:24)
at ChildProcess.<anonymous> (/root/capturebate-node-master/main.js:128:15)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
sorry for bad english
scriptkid
09-01-2016, 12:31 PM
Unhandled rejection TypeError: fs.statsAsync is not a function
I had this exact error while also running Debian Jessie. I went through all the things in this thread, compiling rtmpdump with the ksv patch, installing the latest stable nodejs, etc.
What ended up fixing the issue for me was changing fs.stats.Async to fs.stat on line 45 of the main.js file. I am no programmer by any means but I think this breaks capturbate-node's behavior of NOT creating a single flv file every time capturebate does a model scan and a model is online but also in private mode. A simple 'find Capture/ -size 0 -delete' gets rid of it.
Also another related peculiarity that was going on for me is in the config.yml file, for the modelScanInterval, for my system it should be set in terms of milliseconds NOT seconds. I had it set to scan every 180 in the config.yml thinking it was 3 minutes but it was actually every 180 milliseconds. 180000 would get the effect of 3 minutes
supersonic80
09-02-2016, 04:46 PM
This fork of capturbate-node does not have problems you've just described.
https://github.com/sstativa/capturebate-node
Main difference with original capturbate:
separate folders for capturing models and captured
auto-kill of "hanged" models
auto-remove of empty files
vBulletin® , Copyright ©2000-2025, Jelsoft Enterprises Ltd.