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.
