Skip to content
forked from ajbogh/nMotion

nMotion is a NodeJS RTSP security camera motion detection system. It'll detect motion in an RTSP stream and save the video to a folder as a short mp4 file.

Notifications You must be signed in to change notification settings

shamim8888/nMotion

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nMotion

A motion detection system written in NodeJS which can connect to several RTSP streams and detect movement. The system will store mp4s in a folder called "video", which can be a symlink to any file system.

Installation

Dependencies: npm, git, ffmpeg, vlc

git clone git@github.com:ajbogh/nMotion.git
npm install

Edit the config.json file to include your cameras. Please leave the ports and options alone. You can change the options later as you become accustomed to ffmpeg options. Please do not include the dst option in the '--sout', '#transcode{... line, this is added automatically based on the port number specified.

Running the app

node app.js

#to debug
DEBUG=ffmpeg-stream node app.js

or

npm run app

Take note of the console logs and any errors that may occur from VLC or ffmpeg.

Additional testing/debugging:

If VLC couldn't connect then you may either have a misconfiguration in the config.json file, or the camera may be down. Some cameras require a username and password, so try connecting to it from VLC first using your camera's RTSP address. Once connected with VLC, you can use that address in the config.

About

nMotion is a NodeJS RTSP security camera motion detection system. It'll detect motion in an RTSP stream and save the video to a folder as a short mp4 file.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%