FFmpeg Framerate Filter Scene Change and Blending

This article explains how to use the FFmpeg framerate filter to convert video frame rates smoothly. You will learn how to configure the filter’s parameters to blend frames for seamless transitions and configure scene change detection to prevent ghosting artifacts during dramatic camera cuts.

Understanding the framerate Filter

Unlike the basic fps filter, which simply drops or duplicates frames to meet a target rate, the framerate filter calculates intermediate frames using scene change detection and linear interpolation (blending). This results in a much smoother output, especially when upconverting frame rates (e.g., converting 24 fps to 60 fps).

The Basic Command Structure

To use the framerate filter, you apply the -vf (video filter) flag followed by framerate and its associated options.

ffmpeg -i input.mp4 -vf "framerate=fps=60" output.mp4

Configuring Blending and Scene Change Detection

To get the best visual results, you must fine-tune the interpolation and scene change threshold parameters.

Here is a command optimized for blending with scene change detection:

ffmpeg -i input.mp4 -vf "framerate=fps=60:interp_start=64:interp_end=192:scene=8.2" output.mp4

Parameter Breakdown:

Tips for Tuning the Scene Parameter