dot-kenburns_filter: Build the zoompan filter for a still clip

.kenburns_filterR Documentation

Build the zoompan filter for a still clip

Description

Pure string builder so the motion math can be tested without ffmpeg. The zoom and anchor interpolate from their *_from/from values at the first frame to *_to/to at the last, along the easing curve. The crop window is centered on the anchor and clamped to the frame, all in ffmpeg expressions of iw/ih, so no source dimensions are needed here.

Usage

.kenburns_filter(motion, n_frames, out_w, out_h, fps)

Arguments

motion

Ken Burns spec list (see still_clip), or NULL for a static clip.

n_frames

Total output frames.

out_w

Output width in pixels.

out_h

Output height in pixels.

fps

Output frame rate.

Value

The zoompan filter string.


compost documentation built on Aug. 4, 2026, 5:11 p.m.