Have you searched CPAN for video? Video::FrameGrab looks like it might do the job.
In reply to Re: extract an image from video file by hangon in thread extract an image from video file by jscjso