desbma/r128gain

opus: sample peak only diplays a minus sign

Closed this issue · 2 comments

When tagging an opus audo file( ogg container) the sample peak only shows a minus. The tag is fine however.

[mrgeorgen@mrgPC ~/Downloads]$ r128gain The_Weeknd-Save_Your_Tears.opus 
Analyzing loudness of file 'The_Weeknd-Save_Your_Tears.opus'... 
File 'The_Weeknd-Save_Your_Tears.opus': loudness = -7.9 LUFS, sample peak = - 
Tagging file 'The_Weeknd-Save_Your_Tears.opus' 

I can upload the file, if you like

The - sign means the peak has not been calculated.
This is done on purpose to respect the Opus standard for the R128 tags which does not define a format for peak tags, and calls them unreliable.

Peak normalizations are difficult to calculate reliably for lossy
codecs because of variation in excursion heights due to decoder
differences. In the authors' investigations, they were not applied
consistently or broadly enough to merit inclusion here.

https://datatracker.ietf.org/doc/html/rfc7845#section-5.2.1

Don't ask me why they are calculated for other formats, as per the RGv2 specification, I am not a standard author.

ok, thanks for the info