You must have this requirements for run this applications.
Install node js linux
cd ~
curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
nano nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
node -v
Output :
v16.10.0
Install ffmpeg linux
sudo apt install ffmpeg
ffmpeg -version
Config [your-project-name].config.js, and copy to your /home/[your-name]/
sudo nano [your-project-name].config.js
// paste
module.exports = {
/* System Settings */
system: {
/* Username */
username: "admin",
/* bcrypt password (default: admin) */
password: '$2a$10$CnOx/6vFY2ehRDf68yqd..aLlv0UM.zeBLKnRjuU8YykCsC2Ap3iG',
/* bcrypt API Key (default: x7Te9m38JHQq6ddv) */
apiKey: '$2a$10$N53ci.EIQ7JCu6u1HlOjoO//W0Bmp3GrRruyK1Jysr01CQ1rDrVQK',
/* Any random string */
cookieKey: 'f3gi6FLhIPVV31d1TBQUPEAngrI3wAoP',
interfacePort: 7878,
/* location used for 24/7 recording and database generation */
/* This should be the root of a mount point i.e a dedicated HDD for 24/7 recordings */
storageVolume: 'your folder for save videos',
/* Continuous recording settings */
ffmpegLocation: 'which ffmpeg',
continuousSegTimeMinutes: 15,
continuousDays: 14,
continuousPurgeIntervalHours: 24,
/* event throttle per sensorId */
eventSensorIdCoolOffSeconds: 60
},
/* Cameras */
cameras: {
"CAM-018": {
"path": "CAM-018",
"name": "NVR 1",
"floor": "JPO-001",
"inputConfig": {
"use_wallclock_as_timestamps": "1",
"fflags": "+igndts",
"analyzeduration": "1000000",
"probesize": "1000000",
"rtsp_transport": "tcp",
"stimeout": "30000000"
},
"input": "rtsp://admin:[email protected]/ISAPI/Streaming/channels/0201/picture",
"continuous": false,
"liveConfig": {
"codecString": "video/mp4; codecs=\"avc1.64001f\"",
"streamConfig": {
"an": "",
"vcodec": "copy",
"f": "mp4",
"movflags": "+frag_keyframe+empty_moov+default_base_moof",
"reset_timestamps": "1"
}
}
},
"CAM-020": {
"path": "CAM-020",
"name": "NVR 3",
"floor": "JPO-001",
"inputConfig": {
"use_wallclock_as_timestamps": "1",
"fflags": "+igndts",
"analyzeduration": "1000000",
"probesize": "1000000",
"rtsp_transport": "tcp",
"stimeout": "30000000"
},
"input": "rtsp://{user}:{password}@ip/ISAPI/Streaming/channels/0401/picture",
"continuous": false,
"liveConfig": {
"codecString": "video/mp4; codecs=\"avc1.64001f\"",
"streamConfig": {
"an": "",
"vcodec": "copy",
"f": "mp4",
"movflags": "+frag_keyframe+empty_moov+default_base_moof",
"reset_timestamps": "1"
}
}
}
}
};
Run this application.
node main.js
nvr's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.