From 70209000fd1c7033b2039f4c906d0d0c6cd500b4 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Fri, 28 Feb 2020 23:11:32 +0100 Subject: avfilter/f_sendcmd: implement expr flag Make possible to parse expressions and store results as arguments for target filters. --- doc/filters.texi | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'doc') 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 -- cgit v1.2.3