[FFmpeg-devel] [PATCH] Add an usage example for extracting images from a video in the docs

Diego Biurrun diego
Tue Aug 12 09:44:42 CEST 2008

On Tue, Aug 12, 2008 at 09:40:04AM +0200, Stefano Sabatini wrote:
> --- doc/ffmpeg-doc.texi	(revision 14695)
> +++ doc/ffmpeg-doc.texi	(working copy)
> @@ -140,6 +140,25 @@
> +* You can extract images from a video:
> +
> + at example
> +ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg 
> + at end example
> +
> +This will extract one video frame per second from the video and will
> +output them in files named like @file{foo-001.jpeg}, @file{foo-002.jpeg},


> +etc. Images will be rescaled to fit the new WxH values.
> +
> +The syntax @code{foo-%03d.jpeg} specifies to use a decimal number
> +composed of three digits padded with zeroes to express the sequence
> +number. It is the same format supported by the C printf function, but
> +only formats accepting a normal integer are suitable.
> +
> +If you want to extract just a limited number of frames, you can use the
> +above command in combination with the -vframes or -t option, or in
> +combination with -ss to extract starting from a certain point in time.

start extracting

Patch looks OK to me otherwise, commit anytime.


More information about the ffmpeg-devel mailing list