summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-02-28 23:11:32 +0100
committerPaul B Mahol <onemda@gmail.com>2020-03-03 20:38:56 +0100
commit70209000fd1c7033b2039f4c906d0d0c6cd500b4 (patch)
tree5fa911e028e9a8e74fb3dd0c6eaca045ba6d805b /doc
parent3117f47f19d051d47ba29c9b78c2ca525f0fdb45 (diff)
avfilter/f_sendcmd: implement expr flag
Make possible to parse expressions and store results as arguments for target filters.
Diffstat (limited to 'doc')
-rw-r--r--doc/filters.texi23
1 files changed, 23 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi
index 433abe296d..f9baa0716b 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -23666,6 +23666,29 @@ The command is sent when the current frame timestamp leaves the
specified interval. In other words, the command is sent when the
previous frame timestamp was in the given interval, and the
current is not.
+
+@item expr
+The command @var{ARG} is interpreted as expression and result of
+expression is passed as @var{ARG}.
+
+The expression is evaluated through the eval API and can contain the following
+constants:
+
+@table @option
+@item POS
+Original position in the file of the frame, or undefined if undefined
+for the current frame.
+
+@item PTS
+The presentation timestamp in input.
+
+@item N
+The count of the input frame for video or audio, starting from 0.
+
+@item T
+The time in seconds of the current frame.
+@end table
+
@end table
If @var{FLAGS} is not specified, a default value of @code{[enter]} is