Watching AVI Video with Perl

I have a .avi surveillance video file that includes mostly still frames. However, some objects (and people) enter the field of view and exit for a short period of time. I need to extract these frames.

The entire video lasts a very long time (24 hours), which prevents me from replaying in real time. Is there a Perl module that can parse a file frame by frame? With this, I believe that I can quickly convert the frames to some histogram and compare the neighboring frames to find significant changes. This web page describes the general approach, but I could not find either the script (keyframe.pl) or the modules used (provided that for .mpeg files).

If the direct module for parse.avi does not exist, can I convert the video to .mpeg (or any other form) and then just direct me to another module that can parse the file?

thank!

+5
source share
1 answer

I will vote for the original comments, although I am a Perl person, this is wrong for this. I would add that there are two well-known tools for observation and movement: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome motion and zoneminder: http://www.zoneminder.com/ that work in the field of detection. the movement is built on top of ffmpeg, I'm not sure if it can handle files.

+1
source

All Articles