OutputFormat

class OutputFormat(val size: Size, val videoCodec: VideoCodec, val audioCodec: AudioCodec, val bitrate: Bitrate?, val frameRate: Int, val audioFormat: AudioFormat?)(source)

The output format an ExportPlan resolved to.

Constructors

Link copied to clipboard
constructor(size: Size, videoCodec: VideoCodec, audioCodec: AudioCodec, bitrate: Bitrate?, frameRate: Int, audioFormat: AudioFormat?)

Properties

Link copied to clipboard

The codec the audio is encoded with.

Link copied to clipboard

The audio format the whole composition is normalised to, or null when there is no audio.

Link copied to clipboard

The video bitrate the encoder is handed. Null on a copy, which writes the source's own, and on an audio-only export, which writes no video.

Link copied to clipboard

The frame rate the export writes, in frames per second. The planner resolves it from the spec, the source or a default, so it is always above zero.

Link copied to clipboard
val size: Size

The output frame size, in pixels.

Link copied to clipboard

The codec the video is encoded with.