DurationOrigin

Where a container's length came from, as FFmpeg records it in AVFormatContext.duration_estimation_method. See MediaSource.durationOrigin.

Entries

Link copied to clipboard

Read from the streams' own timestamps at the start and the end of the input, which FFmpeg does for MPEG transport and program streams. As exact as the timestamps.

Link copied to clipboard

Declared by the container or by one of its streams, as MP4, Matroska and most other formats do. As exact as the file that wrote it.

Link copied to clipboard

Estimated from the input's size and the bit rate of its first frames, because the input declares no length, as an ADTS AAC file or an MP3 without its Xing header does. Close for a constant bit rate and wrong by minutes, in either direction, for a variable one. A hint, never the end of the media.

Companion properties

Link copied to clipboard

Returns an immutable kotlin.enums.EnumEntries list containing the constants of this enum type, in the order they're declared.

Companion functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.

Properties

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int