aboutsummaryrefslogtreecommitdiffstats
path: root/doc/muxers.texi
diff options
context:
space:
mode:
authorSteven Liu <lq@chinaffmpeg.org>2017-11-13 10:52:01 +0800
committerSteven Liu <lq@chinaffmpeg.org>2017-11-13 10:52:01 +0800
commitf3e34072aadf20be60c0fae38cbe14ad4581c6a5 (patch)
tree10c888337ddce7ef08fb363f812a2b357c738ca4 /doc/muxers.texi
parent3ee63f3fb70c3be36aa62adf9ad0fe2defa2bd51 (diff)
downloadffmpeg-f3e34072aadf20be60c0fae38cbe14ad4581c6a5.tar.gz
avformat/img2enc: add frame_pts option for make output filename
fix ticket id: #1452 when use frame_pts option, the output image name can be set with PTS of current frame. Signed-off-by: Steven Liu <lq@onvideo.cn>
Diffstat (limited to 'doc/muxers.texi')
-rw-r--r--doc/muxers.texi9
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/muxers.texi b/doc/muxers.texi
index 43f3776b13..616568ebea 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -897,9 +897,18 @@ can be used:
ffmpeg -f v4l2 -r 1 -i /dev/video0 -f image2 -strftime 1 "%Y-%m-%d_%H-%M-%S.jpg"
@end example
+You can set the file name with current frame's PTS:
+@example
+ffmpeg -f v4l2 -r 1 -i /dev/video0 -copyts -f image2 -frame_pts true %d.jpg"
+@end example
+
@subsection Options
@table @option
+@item frame_pts
+If set to 1, expand the filename with pts from pkt->pts.
+Default value is 0.
+
@item start_number
Start the sequence from the specified number. Default value is 1.