Dave's Brain

Browse - computer tips - create thumbnail for a movie

Date: 2008apr28
OS: Linux


Q.  How can I make a thumbnail of a movie:

A.  Use ffmpeg like this:

	ffmpeg -y -i input_movie.avi -f mjpeg -ss 10 -vframes 1 -s 150x100 -an thumbnail.jpg

The options break down like this:

-y		Yes, overwrite the output file

-i <file>	Name of input video

-f <format>	Output format

-ss <seconds>	Skip in <seconds> for frame

-vframes <n>	How man frames to grab.  We just want one.

-s <width>x<height>	Size of the thumbnail

-an		Disable audio
What this info useful to you? You can donate to say thanks

Add a comment

Sign in to add a comment
Copyright © 2008-2012, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.