buildVideo

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

Parameters

description

filter chain, e.g. scale=1280:720,eq=brightness=0.1,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

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

Parameters

description

filter chain, e.g. scale=1280:720,eq=brightness=0.1,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

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

Parameters

description

filter chain, e.g. scale=1280:720,eq=brightness=0.1,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

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

Parameters

description

filter chain, e.g. scale=1280:720,eq=brightness=0.1,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