Results 1 to 7 of 7

Thread: Program to pull frames from video2093 days old

  1. #1
    In Search of... BlackHawk's Avatar
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    2,046
    Threads
    268
    Local Date
    05-21-2013
    Local Time
    04:15 AM

    Program to pull frames from video

    I would like a program to pull individual frames from video and save them as .png, .jpg, etc. The format is .mov from Quicktime.

  2. #2
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,096
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-21-2013
    Local Time
    04:15 AM
    You probably have mplayer? It can capture frames from the command line. This works, I tested it (though it captured two frames, one of the png files was just a black screen *shrug*). It names the pngs 00000001.png etc.

    mplayer filename.mov -frames 1 -vo png -nosound -ss 20

    The trick is to know the time of the frame you want to capture (20 seconds in this example). Play the movie and watch the time counter.

  3. #3
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,096
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-21-2013
    Local Time
    04:15 AM
    Actually that doesn't quite work as I thought. If you specify frames 1 it only grabs the first frame. Try something like:

    Code:
    mplayer filename.mov -frames 10 -vo png -nosound -ss 20
    and you'll get the first frame, plus the next 10 after -ss (20 seconds) position

    Play with that to get what you want

  4. #4
    In Search of... BlackHawk's Avatar
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    2,046
    Threads
    268
    Local Date
    05-21-2013
    Local Time
    04:15 AM

    Will give it a try. Thanks.

    I don't mind farking around with the command line but My Wifey would more appreciate a nice gui.

    So, I found LiVES which works great on PCLinuxOS. Just click on the frame you want and it saves as .jpg using (go figger) mplayer as a back end.

    Found a package for it at Slacky.eu. Iff'n I can resolve the dependency bs I'll be cool to go with a lot of features Mrs. Hawk would like.

  5. #5
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,096
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-21-2013
    Local Time
    04:15 AM
    mplayer is extraordinarily useful. I use it to convert .wma audio files to wav too (I hate WMA) and then pipe the output to lame to encode as mp3.

    Good that you found a front end for it. In slack, compile it yourself and then you'll be sure of having the dependencies (it won't compile without the mandatory ones, and some of them may be optional and the configure script will just skip over them). If it's a binary, you will have to get all the dependencies it's linked against whether you want that functionality or not. (In general)

  6. #6
    In Search of... BlackHawk's Avatar
    Join Date
    Feb 2004
    Location
    Michigan, USA
    Posts
    2,046
    Threads
    268
    Local Date
    05-21-2013
    Local Time
    04:15 AM

    Quote Originally Posted by Grogan
    mplayer is extraordinarily useful. I use it to convert .wma audio files to wav too (I hate WMA) and then pipe the output to lame to encode as mp3.

    Good that you found a front end for it. In slack, compile it yourself and then you'll be sure of having the dependencies (it won't compile without the mandatory ones, and some of them may be optional and the configure script will just skip over them). If it's a binary, you will have to get all the dependencies it's linked against whether you want that functionality or not. (In general)
    Would a binary be the Slackware package? So, however they compiled it will determine my dependency list?

  7. #7
    Hell's Very Own Grogan's Avatar
    Join Date
    Sep 2002
    Location
    Ontario, Canada
    Posts
    23,096
    Threads
    2409

    Awards Showcase

    Real Name
    Hugh Jorgen
    Local Date
    05-21-2013
    Local Time
    04:15 AM
    Yes, that's what I meant. A "slackware package" would be precompiled binaries.

    Also, again speaking in general, yes how a package is compiled (e.g. what libraries are present on the system at compile time and/or what options they've enabled) will determine some of the dependencies required.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •