in reply to get frame from video files

You probably want FFmpeg and FFmpeg::StreamGroup. The example in the perldoc for FFmpeg shows pulling a specific frame by time.