buildVideo

fun buildVideo(description: String, width: Int, height: Int, pixelFormat: PixelFormat, timeBase: Rational, frameRate: Rational, sampleAspectRatio: Rational = Rational(1, 1)): FilterGraph

Builds a single-input video graph from description, for input frames of the given shape.

Parameters

description

filter chain, e.g. scale=1280:720,hue=s=1.2,format=yuv420p

width

input frame width

height

input frame height

pixelFormat

input pixel format (e.g. PixelFormat.Yuv420p)

timeBase

pts time-base of input frames

frameRate

frame rate of input, used by setpts/fps-style filters

sampleAspectRatio

SAR of input frames; default 1:1 for square pixels