diff options
author | Alex Agranovsky <alex@sighthound.com> | 2015-10-10 14:52:34 -0400 |
---|---|---|
committer | Nicolas George <george@nsup.org> | 2015-10-12 16:56:58 +0200 |
commit | cf28490e564d91c89b4c56e605c6f391bddb9ba9 (patch) | |
tree | 7b93fc02271f7ddc7f00770b3307c8ae63e79131 /doc | |
parent | 1f3a29e999b635fee913680402977eb1d51a8461 (diff) | |
download | ffmpeg-cf28490e564d91c89b4c56e605c6f391bddb9ba9.tar.gz |
avfilter/drawtext: allow to format pts with strftime
Signed-off-by: Alex Agranovsky <alex@sighthound.com>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index 5300134883..4abc786858 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -5398,14 +5398,20 @@ A 1 character description of the current picture type. @item pts The timestamp of the current frame. -It can take up to two arguments. +It can take up to three arguments. The first argument is the format of the timestamp; it defaults to @code{flt} for seconds as a decimal number with microsecond accuracy; @code{hms} stands for a formatted @var{[-]HH:MM:SS.mmm} timestamp with millisecond accuracy. +@code{gmtime} stands for the timestamp of the frame formatted as UTC time; +@code{localtime} stands for the timestamp of the frame formatted as +local time zone time. The second argument is an offset added to the timestamp. +If the format is set to @code{localtime} or @code{gmtime}, +a third argument may be supplied: a strftime() format string. +By default, @var{YYYY-MM-DD HH:MM:SS} format will be used. @end table @subsection Examples |