[FFmpeg-cvslog] doc/faq: add -start_number example

Lou Logan git at videolan.org
Wed Jan 2 23:55:10 CET 2013


ffmpeg | branch: master | Lou Logan <lou at lrcd.com> | Mon Jun 25 14:37:01 2012 -0800| [091ce6bcb21e860cfe726e83f16e99e280c90e1a] | committer: Stefano Sabatini

doc/faq: add -start_number example

Also add example showing cat piping images to ffmpeg.

Signed-off-by: Stefano Sabatini <stefasab at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=091ce6bcb21e860cfe726e83f16e99e280c90e1a
---

 doc/faq.texi |   17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/doc/faq.texi b/doc/faq.texi
index 4d1d071..da49d31 100644
--- a/doc/faq.texi
+++ b/doc/faq.texi
@@ -110,7 +110,16 @@ Then you may run:
 
 Notice that @samp{%d} is replaced by the image number.
 
- at file{img%03d.jpg} means the sequence @file{img001.jpg}, @file{img002.jpg}, etc...
+ at file{img%03d.jpg} means the sequence @file{img001.jpg}, @file{img002.jpg}, etc.
+
+Use the @option{-start_number} option to declare a starting number for
+the sequence. This is useful if your sequence does not start with
+ at file{img001.jpg} but is still in a numerical order. The following
+example will start with @file{img100.jpg}:
+
+ at example
+  ffmpeg -f image2 -start_number 100 -i img%d.jpg /tmp/a.mpg
+ at end example
 
 If you have large number of pictures to rename, you can use the
 following command to ease the burden. The command, using the bourne
@@ -133,6 +142,12 @@ Then run:
 
 The same logic is used for any image format that ffmpeg reads.
 
+You can also use @command{cat} to pipe images to ffmpeg:
+
+ at example
+  cat *.jpg | ffmpeg -f image2pipe -c:v mjpeg -i - output.mpg
+ at end example
+
 @section How do I encode movie to single pictures?
 
 Use:



More information about the ffmpeg-cvslog mailing list