Whiskey Kilo Linux  •  Exploring GNU/Linux and F/OSS
vulpen.jpg

Monday 6th February 2012

drupal member logo

drupal logo

ubuntu logo

gnome logo

opensource logo

Cut only one image from a movie with ffmpeg

You can use ffmpeg if you only need one image from a movie. I needed this to publish a starting picture of a small flash video on the net using the excellent flv player of Jeroen Wijering.

ffmpeg -itsoffset -5 -i movie.mpeg -vcodec png -vframes 1 -an -f rawvideo -s 360x288 movie.png

The itsoffse option tells you where to extract the image (in seconds). Of course you probably want to convert this to a jpeg image. Convert is part of the imagemagick package.

convert movie.png -quality 85 movie.jpg

Tags:

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may link to images on this site using a special syntax

More information about formatting options

CAPTCHA
This question is used to make sure you are a human visitor and to prevent spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.