Your screen. Your subscription. Your ProMax. Start with a one-day trial ↗

Pro Max 4K OTT

How Matroska CodecState changes decoding configuration

A Matroska BlockGroup can carry CodecState, describing new codec state whose interpretation depends on the codec.

MAG portal questions. Confirm the exact MAG model and account method before making changes. Pro Max 4K OTT, promax4k.tv.
MAG portal questions. Confirm the exact MAG model and account method before making changes. Pro Max 4K OTT, promax4k.tv.

A Matroska BlockGroup can carry CodecState, describing new codec state whose interpretation depends on the codec. It provides a later configuration point inside the presentation. A reader or indexer should not assume that the initial TrackEntry’s setup remains the only relevant state for every seek position in the file.

Follow an illustrative state change

Imagine a presentation starting with configuration A and later carrying a CodecState update to B. Continuous decoding can encounter the update in sequence. A seek directly into the later part needs the appropriate state too. Reusing A solely because it was the first configuration in the file can give a different result from continuous playback, even when the requested media bytes are present.

Inspect the cue’s state reference

RFC 9559 defines CueCodecState as the segment position of the relevant codec state; zero means the state comes from the initial TrackEntry. It also requires the corresponding state reference when a cue points to a cluster containing CodecState. Keep that reference beside the cue’s media time and byte position when analyzing the indexed path. Record which configuration the seek actually restored.

Do not treat the payload as generic metadata

CodecState is binary codec-specific information. A human-readable title or track label cannot substitute for it. The reader needs the applicable mapping and decoder behavior to interpret the change. Finding a nonempty state payload establishes that a declaration exists; it does not verify that the payload is correct or that a particular player implemented the transition successfully.

Compare sequential and indexed access

A useful authorized reproduction records whether normal playback crosses the change and whether seeking beyond it succeeds. A maintainer can then compare the state used in both paths without guessing a global decoder setting. Viewers can provide the exact seek target and resulting error. The outcome is a concrete configuration-history question, with missing indexed state separated from source delivery failure, incompatible encoded media and an unrelated delay introduced later by the audio or display output path.

Sources & further reading

An evening worth making time for

Get the player ready.
We’ll help with the rest.

Install the player for your screen, then WhatsApp the ProMax team for a one-day free trial. Already watching? Open the help desk for your next step.

Ask ProMax↑