doc/demuxers: itemize image2 examples and put them in a dedicated subsection

This commit is contained in:
Stefano Sabatini 2012-08-04 18:33:19 +02:00
parent cb5bb521aa
commit 0325e01fe7
1 changed files with 9 additions and 4 deletions

View File

@ -71,18 +71,23 @@ Set the video size of the images to read. If not specified the video
size is guessed from the first image file in the sequence. size is guessed from the first image file in the sequence.
@end table @end table
The following example shows how to use @command{ffmpeg} for creating a @subsection Examples
video from the images in the file sequence @file{img-001.jpeg},
@file{img-002.jpeg}, ..., assuming an input frame rate of 10 frames per @itemize
second: @item
Use @command{ffmpeg} for creating a video from the images in the file
sequence @file{img-001.jpeg}, @file{img-002.jpeg}, ..., assuming an
input frame rate of 10 frames per second:
@example @example
ffmpeg -i 'img-%03d.jpeg' -r 10 out.mkv ffmpeg -i 'img-%03d.jpeg' -r 10 out.mkv
@end example @end example
@item
As above, but start by reading from a file with index 100 in the sequence: As above, but start by reading from a file with index 100 in the sequence:
@example @example
ffmpeg -start_number 100 -i 'img-%03d.jpeg' -r 10 out.mkv ffmpeg -start_number 100 -i 'img-%03d.jpeg' -r 10 out.mkv
@end example @end example
@end itemize
Note that the pattern must not necessarily contain "%d" or Note that the pattern must not necessarily contain "%d" or
"%0@var{N}d", for example to convert a single image file "%0@var{N}d", for example to convert a single image file