View Single Post
  #24  
Old 09-01-2016, 12:31 PM
scriptkid scriptkid is offline
Junior Member
 
Join Date: Sep 2016
Posts: 1
scriptkid is on a distinguished road
Default

Re: Need help by capturebate-node


Quote:
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
Reply With Quote