summaryrefslogtreecommitdiff
path: root/doc/muxers.texi
diff options
context:
space:
mode:
authorrogerdpack <rogerpack2005@gmail.com>2016-10-25 18:33:12 -0600
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-01 22:29:23 +0100
commit1a956c64c8eff5edecb004fc7aafd21207e6485c (patch)
tree50251e57f361a9bb3cab04a9c14272aa87e5cddb /doc/muxers.texi
parent7ddfa0be6298d1713b809eadbc91820bca1a99be (diff)
img2 encoder: allow %t in filename, based on patch from Yuval Adam
Signed-off-by: rogerdpack <rogerpack2005@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'doc/muxers.texi')
-rw-r--r--doc/muxers.texi13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 0d856dbf79..0c3a19847d 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -619,6 +619,12 @@ If the pattern contains "%d" or "%0@var{N}d", the first filename of
the file list specified will contain the number 1, all the following
numbers will be sequential.
+If the pattern contains "%t", the frame's timestamps will be inserted
+in the filename like "00.00.00.000" for hours, minutes, seconds,
+and milliseconds.
+
+The "%t" and "%d" patterns may be used simultaneously.
+
The pattern may contain a suffix which is used to automatically
determine the format of the image files to write.
@@ -664,6 +670,13 @@ can be used:
ffmpeg -f v4l2 -r 1 -i /dev/video0 -f image2 -strftime 1 "%Y-%m-%d_%H-%M-%S.jpg"
@end example
+The following example uses the timestamp parameter to generate one
+image file per video frame from the input, and name it including its original
+timestamp.
+@example
+ffmpeg -i in.avi -vsync vfr -copyts img-%t.jpg
+@end example
+
@subsection Options
@table @option