StreamInfo

data class StreamInfo(val index: Int, val type: MediaType, val codec: CodecId, val timeBase: Rational, val durationMicros: Long?, val bitrateBps: Long?, val video: VideoStreamInfo? = null, val audio: AudioStreamInfo? = null, val metadata: Map<String, String> = emptyMap(), val disposition: Disposition = Disposition.None, val rotationDegrees: Int = 0, val startTimeMicros: Long = 0, val codecExtradata: ByteArray? = null)

Read-only snapshot of an input stream's metadata.

Constructors

Link copied to clipboard
constructor(index: Int, type: MediaType, codec: CodecId, timeBase: Rational, durationMicros: Long?, bitrateBps: Long?, video: VideoStreamInfo? = null, audio: AudioStreamInfo? = null, metadata: Map<String, String> = emptyMap(), disposition: Disposition = Disposition.None, rotationDegrees: Int = 0, startTimeMicros: Long = 0, codecExtradata: ByteArray? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

An owned copy of the codec configuration carried by the container, such as an avcC or hvcC record. Null when the stream has no separate configuration record.

Link copied to clipboard

What the container says this stream is for. Needed to mark or auto-select forced subtitles.

Link copied to clipboard
Link copied to clipboard
val index: Int
Link copied to clipboard

BCP 47 or the raw three letter code, whichever the container provided. Null when absent.

Link copied to clipboard

Per-stream tags: language (eng, jpn, …), title, handler_name, …

Link copied to clipboard

Clockwise rotation a renderer must apply, in degrees, from the container's display matrix.

Link copied to clipboard

Where this stream's own timeline starts, in microseconds. May differ from the container's.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Content equality, including codecExtradata.

Link copied to clipboard
open override fun hashCode(): Int