Motion – webcam software

Motion is a V4L capture program supporting motion detection. Set it up to monitor security cameras, watch birds, check in on your pet, create time-lapse videos and more.

In other words, this software monitors the video signal from one or more cameras and is able to detect if a significant part of the picture has changed.

Motion is a command line based tool. It has no graphical user interface. Everything is setup either via the command line or via configuration files.

Features include:

  • Use with the following devices:
    • V4l2 Webcams;
    • Video capture cards;
    • Network cameras via HTTP, RTSP and RTMP;
    • Static files via a v4l2 loopback device;
    • PI cameras.
  • Output from motion:
    • JPEG files;
    • PPM format files;
    • MPEG video sequences.
  • Access the webcam output from motion via a browser.
  • Taking snapshots of movement.
  • Watch multiple video devices at the same time.
  • Watch multiple inputs on one capture card at the same time.
  • Live streaming webcam (using multipart/x-mixed-replace).
  • Real time creation of mpeg movies using libraries from ffmpeg.
  • Take automated snapshots on regular intervals.
  • Take automated snapshots at irregular intervals using cron.
  • Executing external program when detecting movement.
  • Execute external program at the beginning of an event of several motion detections.
  • Execute external program at the end of an event of several motion detections.
  • Execute external program when a picture is saved.
  • Execute external program when a movie mpeg is created (opened).
  • Execute external program when a movie mpeg ends (closed).
  • Motion tracking.
  • Feed events to an MySQL or PostgreSQL database.
  • Feed video back to a video4linux loopback for real time viewing.
  • Web interface using Motion Related Projects such as motion.cgi, Kenneths Webcam Package, Kevins Webpage, X-Motion, and many more.
  • Has its own minimalistic web server.
  • User configurable and user defined on screen display.
  • Control via simple web interface.
  • Automatic noise and threshold control.
  • Ability to control the pan/tilt of a Logitech Sphere (or Orbit) camera.
  • Highly configurable display of text on images.
  • High configurable definition of path and file names of the stored images and films.

Website: motion-project.github.io
Support: Documentation, Mailing List, GitHub Code Repository
Developer: Mr-Dave (previously Kenneth Lavrsen) and many contributors
License: GNU GPL v2 or later

Motion is written in C. Learn C with our recommended free books and free tutorials.

Return to Webcam Tools Home Page


Ongoing series
Linux for StartersNew to Linux? Read our Linux for Starters series.
Free and Open Source SoftwareThe largest compilation of the best free and open source software in the universe. Supplied with our legendary ratings charts.
Linux ReviewsHundreds of in-depth reviews offering our unbiased and expert opinion on software.
Alternatives to GoogleAlternatives to Google's Products and Services examines your options to migrate from the Google ecosystem with open source Linux alternatives.
MicrosoftAlternatives to Microsoft's Products and Services recommends open source Linux software.
Linux System ToolsEssential Linux system tools looks at small, indispensable utilities, useful for system administrators as well as regular users.
Linux ProductivityLinux utilities to maximise your productivity. Small, indispensable tools, useful for anyone running a Linux machine.
Home Computer EmulatorsHome computers became commonplace in the 1980s. Emulate home computers including the Commodore 64, Amiga, Atari ST, ZX81, Amstrad CPC, and ZX Spectrum.
Now and ThenNow and Then examines how promising open source software fared over the years.
Linux at HomeLinux at Home looks at a range of home activities where Linux can play its part, making the most of our time at home, keeping active and engaged.
Linux CandyLinux Candy opens up to the lighter side of Linux. Have some fun!
Best Free Android AppsBest Free Android Apps. There's a strict eligibility criteria for inclusion in this series
Programming BooksThese best free books accelerate your learning of every programming language
Programming TutorialsThese free tutorials offer the perfect tonic to the free programming books series
Stars and StripesStars and Stripes is an occasional series looking at the impact of Linux in the USA
Share this article

Share your Thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.