2016-07-16 13:49:19 +00:00
|
|
|
var foscam = require('./config-foscam');
|
2016-07-10 17:34:49 +00:00
|
|
|
var config = {};
|
|
|
|
|
|
|
|
config.port = 5705;
|
|
|
|
|
|
|
|
config.cams =
|
|
|
|
{
|
|
|
|
frontdoor:
|
|
|
|
{
|
2016-07-26 18:25:18 +00:00
|
|
|
processor: 'ffmpeg',
|
|
|
|
options:
|
2016-07-16 09:35:15 +00:00
|
|
|
{
|
2016-07-26 18:25:18 +00:00
|
|
|
// You can specify any URL string here, the Foscam helper just makes it easier
|
|
|
|
// for compatible models. If you add your own config helper, please publish!
|
|
|
|
url: foscam.mjpegStream('10.138.1.10', 'viewer', 'verysecure'),
|
|
|
|
time: 5000,
|
|
|
|
|
2016-07-16 09:35:15 +00:00
|
|
|
inputFormat: 'mjpeg',
|
|
|
|
outputFormat: 'avi',
|
|
|
|
videoCodec: 'libx264',
|
2016-07-26 18:25:18 +00:00
|
|
|
|
2016-07-16 09:35:15 +00:00
|
|
|
filename: '[/srv/www/publiccam/]YYYY-MM-DD HH.mm.ss[/<camId>.avi]'
|
|
|
|
}
|
2016-07-16 13:49:19 +00:00
|
|
|
|
|
|
|
// TODO examples for before/after/during commands
|
2016-07-16 09:35:15 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
backdoor:
|
|
|
|
{
|
2016-07-26 18:25:18 +00:00
|
|
|
processor: 'mjpeg-split',
|
|
|
|
options:
|
2016-07-16 09:35:15 +00:00
|
|
|
{
|
2016-07-26 18:25:18 +00:00
|
|
|
// You can use username:password@ in the URL to log in with basic
|
|
|
|
// authentication. Note that some cams, like Foscam, use Digest
|
|
|
|
// authentication which is not supported. For Foscam you can provide
|
|
|
|
// the login in the parameters instead.
|
|
|
|
url: 'http://viewer:verysecure@10.138.1.11/video.cgi',
|
|
|
|
time: 5000,
|
|
|
|
|
2016-07-16 09:35:15 +00:00
|
|
|
filename: '[/srv/www/publiccam/]YYYY-MM-DD HH.mm.ss[/<camId> <frame>.avi]'
|
|
|
|
}
|
2016-07-10 17:34:49 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = config;
|