VideoTrackInfo

class VideoTrackInfo(val codedSize: Size, val displaySize: Size, val rotationDegrees: Int, val pixelAspectRatio: Float, val frameRate: Float?, val codec: TrackCodec, val bitDepth: Int?, val colorSpace: ColorSpace, val hdrTransfer: HdrTransfer?, val bitrate: Bitrate?)(source)

The video track of a source.

Constructors

Link copied to clipboard
constructor(codedSize: Size, displaySize: Size, rotationDegrees: Int, pixelAspectRatio: Float, frameRate: Float?, codec: TrackCodec, bitDepth: Int?, colorSpace: ColorSpace, hdrTransfer: HdrTransfer?, bitrate: Bitrate?)

Properties

Link copied to clipboard

Bits per color channel, 8 for SDR and 10 for most HDR, or null when the track does not say. Expect null often. Only HEVC carries the depth somewhere every backend can read it, so an H.264 track answers null on every platform.

Link copied to clipboard

The track's bitrate, or null when the container does not report one.

Link copied to clipboard

What the track is encoded with.

Link copied to clipboard

Storage dimensions, before rotation and pixel-aspect correction.

Link copied to clipboard

The track's color space, or ColorSpace.Unknown for untagged media.

Link copied to clipboard

How the frame should look on screen, with rotationDegrees and pixelAspectRatio applied. Size a target from this, not from codedSize.

Link copied to clipboard

Frames per second, or null when the container does not say.

Link copied to clipboard

The HDR transfer function, or null for SDR.

Link copied to clipboard

Width of a stored pixel over its height, 1f for square pixels.

Link copied to clipboard

Rotation the container asks a player to apply: 0, 90, 180 or 270.