An Opus packet can contain several audio frames. Its table-of-contents information and framing determine their durations and count; packet byte size alone does not. A packet-rate display therefore needs the packet structure before converting its count into milliseconds of audio or comparing it with a decoder’s pending-work counter.
Multiply frame duration and count
Imagine a packet combining two twenty-millisecond frames. It contains forty milliseconds of media, equivalent to 1920 samples per channel at a 48 kHz decoding rate. A different packet can contain one twenty-millisecond frame. Counting each as one packet does not make their durations equal, and stereo does not double the elapsed presentation time.
Read the format’s constraints
RFC 6716 describes frame durations of 2.5, 5, 10, 20, 40 or 60 milliseconds and packet combinations up to 120 milliseconds. The packet’s table-of-contents byte, framing and configuration determine which combination applies to that packet. A valid frame count is constrained by the total duration, so forty-eight sixty-millisecond frames would not become valid merely because a count field has enough bits to hold forty-eight.
Keep compressed bytes separate
Variable-rate encoding can represent the same media duration with different byte lengths. Padding and framing add further structure. A maintainer should retain duration, frame count and encoded byte count as separate observations. The highest transfer burst in a network panel does not directly reveal the codec’s frame interval or the amount of playable audio already available.
Use the calculation for one pipeline stage
For a queue or timestamp investigation, expand a short sequence into its actual packet durations and compare the resulting timeline. A viewer can report whether the symptom is a fixed delay, growing delay or a brief interruption. Do not infer that a codec setting is wrong just because two applications send different numbers of packets. The useful result is an accurately counted media interval, with transport overhead, buffering policy and actual device performance kept outside the claim until independently observed.

