TrackInfo
Track-type specific information.
An enum with 2 variants, distinguished by the
type field:
| type | description |
|---|---|
audio | Information specific to audio tracks. |
video | Information specific to video tracks. |
audio
| field | type | optional | description |
|---|---|---|---|
| channels | UnsignedInteger | false | Number of audio channels. |
| sample_rate | UnsignedInteger | false | Sample rate in Hertz. |
video
| field | type | optional | description |
|---|---|---|---|
| bit_depth | UnsignedInteger | false | Bits per color channel. |
| chroma_subsampling | ChromaSubsampling | true | Chroma subsampling, for formats that support it. |
| dimensions | Dimensions | false | Dimensions in pixels. |
| frames | UnsignedInteger | false | Total number of video frames. |
| orientation | Orientation | false | Orientation to apply when displaying. |