Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: extract an image from video file

by zentara (Archbishop)
on Nov 02, 2009 at 13:14 UTC ( #804451=note: print w/replies, xml ) Need Help??

in reply to extract an image from video file

mplayer does it,
> 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.
how to run mplayer from Perl is another question, see ztk-v4l-video-bloger/recorder for ideas

I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

Replies are listed 'Best First'.
Re^2: extract an image from video file
by jscjso (Initiate) on Nov 02, 2009 at 15:29 UTC
    Zentara, My environment Perl in Windows. It is not Linux. Seems like the command are using Linux. I do need the find a way to run from Perl. Thanks,
      i do believe there is an mplayer binary out there for Windows.... but I can't assure you that it will work.... but probably will.... you probably will need a different command line syntax.... google for "mplayer win32" and of course, google for the companion program, mencoder..... mencoder assembles frames back together

      you also might want to see if the win32 version of ImageMagick will rip a frame from an wmv or avi.... its available for Windows too

      I'm not really a human, but I play one on earth.
      Old Perl Programmer Haiku

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://804451]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-09-27 21:37 GMT
Find Nodes?
    Voting Booth?

    No recent polls found