TrackCodec

class TrackCodec(val name: String, val kind: CodecKind)(source)

What a track is encoded with, both as the platform spells it and as filmstrip recognizes it.

A four-character code is what an ISO container stores and what AVFoundation reports, a MIME type is what Android's extractor reports, and ffmpeg reports either depending on whether the container carried a tag. Branch on kind. Show name to a human or put it in a bug report.

Constructors

Link copied to clipboard
constructor(name: String, kind: CodecKind)

Properties

Link copied to clipboard

What filmstrip made of name, or CodecKind.Other for anything it does not recognize.

Link copied to clipboard

The platform's own spelling, such as hvc1, video/hevc or hevc. Empty when the platform did not name it.