I am looking for a command-line-ready tool that will work on Linux which will be able to give me a value (or small set of values) which represent the amount of motion present in a given video file.
For example a 1 minute video of an empty room might come back with
0 (or close to it). A tripod shot of a person speaking might come back with
50. And a hand held-shot where the videographer is frantically swinging the camera around might come back with
The ultimate goal of this would be to easily identify the segments of footage from a wall-mounted security camera where people, cars, or animals appear.
I would be willing to entertain writing my own script in python if the principles used are simple enough.
Any thoughts would be helpful.