motion
Detect motion using a video4linux device or network camera
TLDR
SYNOPSIS
motion [-hbnsm] [-c configfile] [**-d** level] [**-k** level] [**-p** pidfile] [-l logfile_]
DESCRIPTION
motion is a program that detects motion using a Video4Linux device or network camera. It monitors video feeds for movement and can capture images and video sequences when activity is detected, as well as execute automated actions for notifications or snapshots.The tool supports multiple cameras, live streaming, and configurable motion detection sensitivity. Command-line arguments override corresponding settings in configuration files.
PARAMETERS
-c FILE
Specifies the path to the configuration file.-n
Run in non-daemon mode (foreground).-b
Run as a background daemon.-s
Enable setup mode; forces non-daemon execution.-d level
Set debug verbosity level from 1 to 9.-k level
Set message log type from 1 to 9.-l FILE
Specify the log file path.-p FILE
Specify the process ID file location.-m
Start in pause mode (motion detection initially disabled).-h
Display help information.
CAVEATS
Can be CPU intensive depending on camera resolution and detection settings. Requires camera access (Video4Linux or network camera). Configuration can become complex for multi-camera and advanced detection setups.
HISTORY
motion was created as an open source motion detection system for Linux security and surveillance applications. It uses the Video4Linux interface and has been widely adopted for home security and wildlife monitoring.
