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

Pro Max 4K OTT

Restoring Matroska header-stripping compression before decoding

Matroska header stripping is a content-compression method that stores a repeated frame prefix once and omits it from individual frame payloads.

Before sending a payment. Clarify activation details, connection allowance and any separate player fee. Pro Max 4K OTT, promax4k.tv.
Before sending a payment. Clarify activation details, connection allowance and any separate player fee. Pro Max 4K OTT, promax4k.tv.

Matroska header stripping is a content-compression method that stores a repeated frame prefix once and omits it from individual frame payloads. A reader restores the prefix according to the track’s compression settings. Raw stored block bytes may therefore differ from the bytes the codec must actually receive without either copy being corrupt.

Restore a simple prefix

Imagine a track whose frames share the illustrative two-byte prefix AA BB. The track’s ContentCompSettings can retain that prefix while each stored frame begins with its remaining bytes. Under header stripping, reconstructing a frame includes putting the saved prefix back before those bytes. Copying only the stored remainder into a decoder omits part of the expected coded input.

Read the declared algorithm

RFC 9559 identifies header stripping with ContentCompAlgo value three. Other compression values describe different methods with different processing requirements. A parser should not prepend settings blindly whenever the field exists; it must apply the method and scope actually declared for the track. The same-looking binary settings field can have method-dependent meaning.

Keep compression distinct from codec transformation

Restoring an omitted prefix is a container-level reconstruction step. It does not transcode the audio or video into a different codec; it restores the coded input expected after container processing. It also does not imply that every decoder accepts Matroska blocks directly. The demuxing stage needs to supply the correctly reconstructed codec data through the interface the playback pipeline expects.

Locate a failure before changing media

If a custom extraction path fails while the authorized container reader succeeds, inspect whether the extraction honored content-compression metadata. Record the algorithm, prefix length and resulting reconstructed length for one harmless sample. A viewer can report the difference between the two supported routes without editing binary data. Preserve the original before a conversion. The useful result is a concrete missing reconstruction step, with complete-frame delivery distinguished from codec compatibility and later rendering, rather than a broad instruction to remove unfamiliar container fields.

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↑