From 1a956c64c8eff5edecb004fc7aafd21207e6485c Mon Sep 17 00:00:00 2001 From: rogerdpack Date: Tue, 25 Oct 2016 18:33:12 -0600 Subject: img2 encoder: allow %t in filename, based on patch from Yuval Adam Signed-off-by: rogerdpack Signed-off-by: Michael Niedermayer --- doc/muxers.texi | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc/muxers.texi') 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 -- cgit v1.2.3