summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGyan Doshi <ffmpeg@gyani.pro>2019-12-15 18:56:06 +0530
committerGyan Doshi <ffmpeg@gyani.pro>2020-01-15 12:03:47 +0530
commit0dc0837960eaaff27d2104ae6b89e29790b38d6a (patch)
tree6f81afceede3e6d4dd5aa74f8f73402f1cd70c75 /doc
parentce2cfa67aa26e70717eb8b184f232b9c41b81001 (diff)
avfilter/scale: add animation support
Width and height expressions in scale and scale2ref filters can now reference frame index, timestamp and packet position.
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 2caebcdcd3..98b695eca8 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -16139,6 +16139,19 @@ pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} is 1.
@item ovsub
horizontal and vertical output chroma subsample values. For example for the
pixel format "yuv422p" @var{hsub} is 2 and @var{vsub} is 1.
+
+@item n
+The (sequential) number of the input frame, starting from 0.
+Only available with @code{eval=frame}.
+
+@item t
+The presentation timestamp of the input frame, expressed as a number of
+seconds. Only available with @code{eval=frame}.
+
+@item pos
+The position (byte offset) of the frame in the input stream, or NaN if
+this information is unavailable and/or meaningless (for example in case of synthetic video).
+Only available with @code{eval=frame}.
@end table
@subsection Examples
@@ -16362,6 +16375,19 @@ The main input video's display aspect ratio. Calculated from
The main input video's horizontal and vertical chroma subsample values.
For example for the pixel format "yuv422p" @var{hsub} is 2 and @var{vsub}
is 1.
+
+@item main_n
+The (sequential) number of the main input frame, starting from 0.
+Only available with @code{eval=frame}.
+
+@item main_t
+The presentation timestamp of the main input frame, expressed as a number of
+seconds. Only available with @code{eval=frame}.
+
+@item main_pos
+The position (byte offset) of the frame in the main input stream, or NaN if
+this information is unavailable and/or meaningless (for example in case of synthetic video).
+Only available with @code{eval=frame}.
@end table
@subsection Examples