Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Parse AVI video with Perl

Tags:

video

perl

avi

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

The entire video lasts very long (24+ hours) which prevents me from replaying realtime. Is there a Perl module that can parse the file by frames? With that I suppose I can quickly transform the frames to some histogram and compare the neighboring frames to find significant changes. This webpage spells out the general approach but I couldn't find either the script (keyframe.pl) or the modules used (granted that is for .mpeg files).

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

Thx!

like image 927
Zhang18 Avatar asked May 26 '12 01:05

Zhang18


1 Answers

I vote for the original comments, although I'm a Perl person, it's wrong for this. I'd just add that for surveillance and movement, there are two well-known tools: http://www.lavrsen.dk/foswiki/bin/view/Motion/WebHome motion and zoneminder: http://www.zoneminder.com/ that work in the area of detection. motion is built on top of ffmpeg, I'm not sure whether it can process files though.

like image 60
Hugh Barnard Avatar answered Oct 14 '22 17:10

Hugh Barnard