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

Pro Max 4K OTT

Applying Ogg Opus pre-skip at the start of audio

Ogg Opus pre-skip identifies decoded samples to discard at the start of a stream.

How do I start a renewal. Choose the next term and say that the request concerns an existing account. Pro Max 4K OTT, promax4k.tv.
How do I start a renewal. Choose the next term and say that the request concerns an existing account. Pro Max 4K OTT, promax4k.tv.

Ogg Opus pre-skip identifies decoded samples to discard at the start of a stream. The samples are decoded to establish the required history, then excluded from presentation. Pre-skip is measured at the fixed 48 kHz granule rate. It is not an arbitrary speaker-delay preference or permission to delete compressed bytes from the first packet.

Calculate a small example

Imagine a first decoded packet yielding 960 samples per channel and a pre-skip of 312. In this simplified start, 648 samples from that packet remain for presentation after the leading exclusion. The skipped interval is 312 divided by 48,000 seconds: 6.5 milliseconds. These are illustrative counts, rather than measurements of any supplied ProMax audio.

Keep decoding before discarding

RFC 7845 explains that early decoder output can contain padding associated with codec and encoder delay. Predictive decoding also depends on recent history. Removing the corresponding coded packet altogether is not equivalent to decoding it and discarding the specified output samples. The pre-skip amount may be smaller than one packet or span several packets, so a whole-packet shortcut can be wrong.

Use it in the time mapping

The document derives PCM sample position by subtracting pre-skip from granule position. The initial granule situation has additional rules, especially for cropped or joined streams. A maintainer should retain that context instead of treating the first page’s number as a universal zero-origin timestamp. The field controls a particular presentation boundary while later granules retain their defined clock.

Investigate the opening precisely

If an opening click or short missing introduction appears after conversion, compare the original pre-skip, retained packet history and output trimming. A viewer can report whether the defect occurs only at the start or after every seek. Adjusting a global lip-sync control does not reconstruct discarded decoder history. The useful outcome is an explicit first-presented-sample calculation and a check that the container reader honored it, with audio output latency and complete decoder compatibility still assessed separately.

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↑