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

Pro Max 4K OTT

Converting Ogg Opus output gain from fixed-point units

The Ogg Opus header’s 16-bit signed output-gain integer uses Q7.8 fixed-point decibel units.

An app licence or a service account. Keep player purchase details separate from the service activation record. Pro Max 4K OTT, promax4k.tv.
An app licence or a service account. Keep player purchase details separate from the service activation record. Pro Max 4K OTT, promax4k.tv.

The Ogg Opus header’s 16-bit signed output-gain integer uses Q7.8 fixed-point decibel units. Divide the stored value by 256 to obtain decibels. A raw value of 512 therefore means two decibels, not a five-hundred-and-twelve-fold volume increase. Optional normalization tags also have defined relationships with that header gain.

Calculate combined gain

Imagine a header output gain of 512 and an applicable R128 track-gain value of minus 256. The first represents plus two decibels and the second minus one decibel. If the player uses that track normalization under RFC 7845, the resulting adjustment is plus one decibel. The extra tag is applied in addition to header gain, rather than replacing it.

Keep decibels and amplitude factors distinct

The header describes gain through a logarithmic relationship to output sample scaling. One decibel corresponds to an output sample-amplitude scaling factor of roughly 1.122. Multiplying sample values directly by the raw integer would be a unit error, while applying an already handled header gain again would be a pipeline error. Neither operation is a valid interpretation of the stored field. R128 tags contain decimal integer text, while the identification header stores a signed binary value.

Preserve metadata consistency during editing

The RFC requires a tool changing header output gain to update or remove the related R128 tags so their relative meaning remains correct. A metadata-only change can therefore have an audible consequence without re-encoding the Opus packets. A maintainer should retain the original gain fields and identify which stage applies each adjustment before attributing a loudness change to codec quality.

Report the responsible gain stage

A useful technical comparison records header gain, selected normalization behavior and any later player or system-volume processing. A viewer can describe an unexpected level change between the same programme versions while keeping system volume consistent across the comparison. This is a metadata interpretation task, not a claim that louder output has higher quality. The outcome is a traceable combined adjustment in the right units, with clipping, output policy and actual rendering requiring separate evidence.

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↑