Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

assume_fps

assume_fps(
  input: Clip,
  #{
    fps: Rational | Int | String,
  }
)

Changes a clip’s declared constant frame rate without adding, dropping, reordering, or modifying frames.

The input must be one fixed-format planar Gray, YUV, or planar RGB clip. fps must be positive. String values must use numerator/denominator syntax, integer values are treated as n/1, and floats are rejected.

Examples

output = source("input.mkv").std.assume_fps(#{ fps: "24000/1001" })

Pass fps through a script parameter:

output = source("input.mkv").std.assume_fps(#{ fps: fps })
pixelflow retime.pf -o out.y4m --set fps=30000/1001

Input

One fixed-format planar Gray, YUV, or planar RGB clip.

Output

A clip with the same format, resolution, frame count, and per-frame metadata, but a new declared constant frame rate.

Options

  • fps (Rational | Int | String) – Set the output constant frame rate.