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

Need help by capturebate-node

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

jeff.kerby 02-29-2016 01:37 PM

Re: Need help by capturebate-node


 
I have no idea how to patch, I am running on Debian Jessie.

c4170001 02-29-2016 03:44 PM

Re: Need help by capturebate-node


 
Quote:

Originally Posted by jeff.kerby (Post 82884)
I have no idea how to patch, I am running on Debian Jessie.

Code:

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

Re: Need help by capturebate-node


 
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

Re: Need help by capturebate-node


 
Quote:

Originally Posted by jeff.kerby (Post 82887)
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

Re: Need help by capturebate-node


 
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

Re: Need help by capturebate-node


 
Quote:

Originally Posted by jeff.kerby (Post 82958)
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

Re: Need help by capturebate-node


 
Running v5.7.0 what should I be running?

Thanks

c4170001 03-06-2016 06:15 PM

Re: Need help by capturebate-node


 
Quote:

Originally Posted by jeff.kerby (Post 82990)
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

Re: Need help by capturebate-node


 
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

Re: Need help by capturebate-node


 
Quote:

Originally Posted by jeff.kerby (Post 83014)
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.


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