public sealed class MatroskaTrackOne track of a Matroska segment, as the header described it.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The fields a player needs and no more. What is deliberately absent is anything to do with editing — track names, languages, flags, chapters, tags — which a container reader for playback never looks at and which would be a tenfold larger parser.
CodecPrivate is passed through untouched. It is the codec's own header — Opus's OpusHead, VP9's nothing, AVC's parameter sets — and the demuxer is emphatically not in the business of understanding it.
Fields and properties (18)
public int NumberThe number blocks refer to this track by.
public ulong UidThe writer's unique id for it, for logs.
public MatroskaTrackKind KindWhat it carries.
public string CodecIdThe codec id — V_VP9, A_OPUS, V_UNCOMPRESSED.
public ReadOnlyMemory<byte> CodecPrivateThe codec's own initialisation bytes, or empty if it needs none.
public TimeSpan DefaultDurationHow long one frame lasts, or zero if the track does not say.
public TimeSpan CodecDelayHow much of the decoder's output at the start of the stream is priming, not sound.
public TimeSpan SeekPreRollHow much must be decoded and thrown away after a seek before the output is right.
public int PixelWidthThe coded width in samples. Zero for a track that is not video.
public int PixelHeightThe coded height in samples.
public int DisplayWidthThe width it should be shown at, which is the coded width unless it says otherwise.
public int DisplayHeightThe height it should be shown at.
public string ColourSpaceThe FourCC an uncompressed video track's samples are in, or empty.
public VideoColourMatrix ColourMatrixWhich coefficients the samples were made with.
public VideoColourRange ColourRangeWhether the samples use the whole range.
public int SampleRateFrames a second. Zero for a track that is not audio.
public int ChannelsHow many channels.
public int BitDepthHow many bits one sample takes, for the uncompressed codecs. Zero otherwise.
Used by (6)
- VideoGameVideoPlayback
- MatroskaAudioStreamDecoderVixen.Video
- MatroskaDemuxerVixen.Video
- MatroskaDemuxerTestsVixen.Video.Tests
- WebMVideoStreamDecoderVixen.Video
- VideoImporterVixen.Editor.Assets