ultranerds has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I'm trying to automate the grabbing of a "screenshot" of a .flv movie, so we don't have to manually do this.

I'm on a UNIX server (with full root access).

Can anyone suggest an approach?

TIA!

Andy

Replies are listed 'Best First'.
Re: Take screenshot of a .flv video?
by JSchmitz (Canon) on Nov 21, 2009 at 13:42 UTC
    ffmpeg can do screen shots

    ffmpeg -i moviename.flv -f image2 -s 320x240 screenshot.jpg

    http://ffmpeg.org/

    Cheers -
    Jeffery
Re: Take screenshot of a .flv video?
by zentara (Cardinal) on Nov 21, 2009 at 14:41 UTC
    .... mplayer also works
    > I am looking for Linux tools for extracting the individual frames of > an AVI movie file, and saving them to files in bitmap formats such a +s > JPEG. Any suggestions? mplayer -vo jpeg file.avi (generates 1 JPEG per frame, plays all frames) mplayer -vo jpeg -ss 1:23:45 -frames 20 file.avi (-sseeks to 1 hour 23 minutes 45 seconds in file.avi, generates 20 JPE +Gs from the subsequent frames, quits) "man mplayer" for more stuff, like skipping to the start of a DVD chapter.
    Image::Magick also extracts and recombines videos.... google for "ImageMagick extract flv frames"

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku
      Thanks guys, will have a play with them :)

      Cheers

      Andy