Description of Problem & Solution
Right now, I run dvr-scan in scan-only, quiet mode against pre-recorded video segments and if the result output is empty (no motion events), I delete the file. If there are any motion events returned, I keep the file.
Proposed Implementation:
A command line parameter to quit processing the files after X number of motion events: eg: --quit-after 2. This would end dvr-scan and output the result of the first 2 motion events. No further processing is required.
Since I am looking for video segments that contain even only 1 motion, I do not need to process the entire file in order to determine whether to keep it or not.