Interesting question. There are many security camera recording apps that will start recording only when motion is detected, however in your case you have a continuous recording to scan.
I'm wondering if there's any way of using the AviSynth function MAnalyse (part of the MVTools plugin) for this? I would suggest you try asking in the Doom9 forums.