Video::FrameGrabGrab a frame or metadata from a video | |
Download |
Video::FrameGrab Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Michael Schilli
- Publisher web site:
- http://search.cpan.org/~mschilli/
Video::FrameGrab Tags
Video::FrameGrab Description
Grab a frame or metadata from a video Video::FrameGrab is a Perl module that grabs a frame at the specified point in time from the specified video file and returns its JPEG data.It uses mplayer for the heavy lifting behind the scenes and therefore requires it to be installed somewhere in the PATH. If mplayer is somewhere else, its location can be provided to the constructor: my $grabber = Video::FrameGrab->new( mplayer => "/path/to/mplayer", video => "movie.avi" );SYNOPSIS use Video::FrameGrab; my $grabber = Video::FrameGrab->new( video => "movie.avi" ); my $jpg_data = $grabber->snap( "00:00:10" ); $grabber->jpeg_save("snapshot.jpg"); print "This movie is ", $grabber->meta_data()->{length}, " seconds long "; # Snap 10 frames at constant intervals throughout the movie for my $p ( $grabber->equidistant_snap_times(10) ) { $grabber->snap( $p ); $grabber->jpeg_save("frame-at-$p.jpg"); } Requirements: · Perl
Video::FrameGrab Related Software