From 02f3b9312a99c4ea58211b1ee3d1cb41d04255b8 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sun, 7 May 2023 23:18:43 +0200 Subject: lavfi/vf_libplacebo: allow fps conversion This exposes libplacebo's frame mixing functionality to vf_libplacebo, by allowing users to specify a desired target fps to output at. Incoming frames will be smoothly resampled (in a manner determined by the `frame_mixer` option, to be added in the next commit). To generate a consistently timed output stream, we directly use the desired framerate as the timebase, and simply output frames in sequential order (tracked by the number of frames output so far). --- doc/filters.texi | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') diff --git a/doc/filters.texi b/doc/filters.texi index ef48a4cf31..70bb0996d3 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -16044,6 +16044,13 @@ and @code{(oh-ph)/2}. Set the output placement width/height expressions, default values are @code{ow} and @code{oh}. +@item fps +Set the output frame rate. This can be rational, e.g. @code{60000/1001}. If +set to the special string @code{none} (the default), input timestamps will +instead be passed through to the output unmodified. Otherwise, the input video +frames will be interpolated as necessary to rescale the video to the specified +target framerate, in a manner as determined by the @option{frame_mixer} option. + @item format Set the output format override. If unset (the default), frames will be output in the same format as the respective input frames. Otherwise, format conversion -- cgit v1.2.1