[PATCH] Add documentation for the image2 demuxer.

Stefano Sabatini stefano.sabatini-lala
Sat Jan 8 11:17:29 CET 2011


---
 doc/demuxers.texi |   39 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/doc/demuxers.texi b/doc/demuxers.texi
index d6d9d96..2b821b5 100644
--- a/doc/demuxers.texi
+++ b/doc/demuxers.texi
@@ -18,4 +18,43 @@ enabled demuxers.
 
 The description of some of the currently available demuxers follows.
 
+ at section image2
+
+Image file demuxer.
+
+This demuxer reads from a list of image files specified by a pattern.
+
+The pattern must contain the string "%d" or "%0 at var{N}d", which
+specifies the position of the characters representing the seqential
+number in each filename matched by the pattern. If the form
+"%d0 at var{N}d" is used, the string representing the number in each
+filename is 0-padded and @var{N} is the total number of 0-padded
+digits representing the number. The literal character '%' can be
+specified in the pattern with the string "%%".
+
+The first filename of the sequence of files specified by the pattern
+must contain a number inclusively contained between 0 and 4, all the
+following numbers must be sequential.
+
+The pattern may contain a suffix which is used to automatically
+determine the type of image contained in the files, which must be one
+of the supported image files.
+
+For example the pattern "foo-%03d.bmp" will match a sequence of
+filenames of the form @file{foo-001.bmp}, @file{foo-002.bmp}, ...,
+ at file{foo-010.bmp}, etc.; the pattern "b%%a%%r-%d.jpg" will match a
+sequence of filenames of the form @file{b%a%r-1.jpg},
+ at file{b%a%r-2.jpg}, ..., @file{b%a%r-10.jpg}, etc.
+
+The size and the pixel format of each image must be the same for all
+the files in the sequence.
+
+The following example shows how to use ffmpeg for creating a video
+from the images in the "img-%03d.jpeg" file sequence
+ at file{img-001.jpeg}, @file{img-002.jpeg}, ..., assuming an input
+framerate of 10 frames per second:
+ at example
+ffmpeg -r 10 -f image2 -i 'img-%03d.jpeg' out.avi
+ at end example
+
 @c man end INPUT DEVICES
-- 
1.7.2.3


--z6Eq5LdranGa6ru8--



More information about the ffmpeg-devel mailing list