From 62bdec806ecd3539856dffc86542bdc46a1932c1 Mon Sep 17 00:00:00 2001 From: Tobias Rapp Date: Thu, 21 Sep 2017 13:40:36 +0200 Subject: avfilter/vf_fps: add eof_action filter option Allows to specify the action to be performed when reading the last frame from the internal FIFO buffer. By default the last frame is written to filter output depending on the timestamp rounding method. When using "pass" action the last frame is passed through if input duration has not been reached yet. Examples using an input file with 25Hz, 1.4sec duration: - "fps=fps=1:round=near" generates an output file of 1sec - "fps=fps=1:round=near:eof_action=pass" generates an output file of 2sec Signed-off-by: Tobias Rapp --- doc/filters.texi | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'doc/filters.texi') diff --git a/doc/filters.texi b/doc/filters.texi index 624e5cd01b..57189c77b0 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -8695,6 +8695,18 @@ round to nearest @end table The default is @code{near}. +@item eof_action +Action performed when reading the last frame. + +Possible values are: +@table @option +@item round +Use same timestamp rounding method as used for other frames. +@item pass +Pass through last frame if input duration has not been reached yet. +@end table +The default is @code{round}. + @end table Alternatively, the options can be specified as a flat string: -- cgit v1.2.3