diff --git a/doc/ffmpeg.texi b/doc/ffmpeg.texi
index e14885c5b57344762193c04c4987b5f8bde9e3bc..75d5c1965d39f1b6af9e906f4628b9617c903b03 100644
--- a/doc/ffmpeg.texi
+++ b/doc/ffmpeg.texi
@@ -164,7 +164,7 @@ streams are delayed by @var{offset} seconds.
 Set the recording timestamp in the container.
 The syntax for @var{time} is:
 @example
-now|([(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH[:MM[:SS[.m...]]])|(HH[MM[SS[.m...]]]))[Z|z])
+now|([(YYYY-MM-DD|YYYYMMDD)[T|t| ]]((HH:MM:SS[.m...])|(HHMMSS[.m...]))[Z|z])
 @end example
 If the value is "now" it takes the current time.
 Time is local time unless 'Z' or 'z' is appended, in which case it is
diff --git a/doc/filters.texi b/doc/filters.texi
index 56299771a558193a6d4aa5ba8201c065a84b01f9..f5740394e6240238fa735973cf7279b4786bb6f6 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -3254,7 +3254,7 @@ number or a valid video frame rate abbreviation. The default value is
 @item duration, d
 Set the video duration of the sourced video. The accepted syntax is:
 @example
-[-]HH[:MM[:SS[.m...]]]
+[-]HH:MM:SS[.m...]
 [-]S+[.m...]
 @end example
 See also the function @code{av_parse_time()}.