1
0
mirror of synced 2024-09-28 17:16:08 +00:00
SecurityCam.js/config.sample.js
2016-07-16 15:49:19 +02:00

46 lines
1.1 KiB
JavaScript

var foscam = require('./config-foscam');
var config = {};
config.port = 5705;
config.defaultTime = 5000;
config.cams =
{
frontdoor:
{
// 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,
output: 'ffmpeg',
outputOptions:
{
inputFormat: 'mjpeg',
outputFormat: 'avi',
videoCodec: 'libx264',
filename: '[/srv/www/publiccam/]YYYY-MM-DD HH.mm.ss[/<camId>.avi]'
}
// TODO examples for before/after/during commands
},
backdoor:
{
// 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,
output: 'mjpeg-split',
outputOptions:
{
filename: '[/srv/www/publiccam/]YYYY-MM-DD HH.mm.ss[/<camId> <frame>.avi]'
}
}
};
module.exports = config;