FFmpeg 9.1
Since* 9.1
#

Frame rate up-conversion using the NVIDIA Vulkan optical flow extension (VK_NV_optical_flow), implemented on the GPU using Vulkan.

For each pair of consecutive input frames the filter computes a forward and backward optical flow field on the device’s optical flow engine, and uses those fields to synthesise motion-compensated intermediate frames at the requested output frame rate. The frame timing logic mirrors the framerate filter.

The majority of YUV and RGB pixel formats are supported. The exceptions are subsampled packed YUV formats such as yuyv422 and uyvy422, formats with more than 16 bits integer data per component, such as rgb96 and gray32, and Bayer formats.

fps

A string describing the desired output frame rate, evaluated as an expression. The following constants are available: source_fps. The default value is 60.

perf

Optical flow performance level, trading motion-estimation quality for speed. This is the dominant cost at high resolutions. Possible values are:

slow

Highest quality, slowest. This is the default.

medium

Balanced quality and speed.

fast

Lowest quality, fastest.

grid

Optical flow output grid size in pixels. A coarser grid computes fewer flow vectors, making it faster and less memory hungry at the cost of flow detail. Possible values are auto (the default; selects the finest grid the device supports, usually 1x1), 1, 2, 4 and 8. Only grid sizes the device advertises are accepted.