These are the configuration files used with motion to capture usb webcam footage.
I'm currently using a raspberry pi with a Logitech USB Webcam.
First you need to install the motion software
$ sudo apt-get install motion
After the software installs you need to edit the configuration file.
This is the motion.conf
file
$ sudo nano /etc/motion/motion.conf
Using the configuration file in this repo pictures and video will be saved to /home/pi/themotion.
To start the server use the command below
$ sudo service motion start
A web server will start streaming on port 8081.
Use the command below to enable motion on system startup
$ sudo systemctl enable motion
Copyright (c) 2017 Josh Sisto MIT License