VideoEncoderSpec

data class VideoEncoderSpec(val codec: CodecId, val width: Int, val height: Int, val pixelFormat: PixelFormat = PixelFormat.Yuv420p, val frameRate: Rational, val bitrateBps: Long, val keyframeIntervalFrames: Int = (frameRate.asDouble * 2).toInt().coerceAtLeast(1), val options: Map<String, String> = emptyMap())

Constructors

Link copied to clipboard
constructor(codec: CodecId, width: Int, height: Int, pixelFormat: PixelFormat = PixelFormat.Yuv420p, frameRate: Rational, bitrateBps: Long, keyframeIntervalFrames: Int = (frameRate.asDouble * 2).toInt().coerceAtLeast(1), options: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard
Link copied to clipboard

Encoder-specific options, passed through as av_opt_set strings: "preset" to "veryfast", "crf" to "23" (libx264), "allow_sw" to "1" (videotoolbox), etc.

Link copied to clipboard
Link copied to clipboard
val width: Int