I created a plugin that exposes an album template field called albumquality. I used portions of library dnuos and converted the used pieces to Python 3.
Biggest feature of this plugin is that it will return the VBR quality between 0 and 9. If something goes awry, then Unknown will be returned.
I ran it over a few hundred albums in my library and it appears to have tagged everything properly.
I was wondering if anyone had any comments and/or suggestions?
Hi! This looks cool. I also notice that Mutagen itself added a feature to expose the LAME header: https://github.com/quodlibet/mutagen/issues/66
Maybe we should just use that directly instead of dnuos?
I had looked at that, but the authors comments seem to all go towards simply using the bitrate rather than exposing the VBR quality. This is why I opted to jank up dnuos for Python 3. I don't like using the average bitrate of a song because I find that using the target averages from here is often wrong when comparing to tools like foobar2000 or MediaInfo that seem to acurately determine if a song is VBR V0, or V2, etc.
How does it determine what quality level the album is? I can't figure out the source code.
mutagen 1.37 is out with https://mutagen.readthedocs.io/en/latest/api/mp3.html#mutagen.mp3.MPEGInfo.encoder_settings
Most helpful comment
mutagen 1.37 is out with https://mutagen.readthedocs.io/en/latest/api/mp3.html#mutagen.mp3.MPEGInfo.encoder_settings