Re:MusicBrainz: an open music encyclopedia
by 0x0 on Sunday June 04, 2017 @07:38AM
(#14480867)
The FFMpeg wiki has some information, including calling out its own "vorbis" encoder as sub-par and not recommended (but apparently they also support a different "libvorbis" encoder that does not suffer from problems?) See https://trac.ffmpeg.org/wiki/Encode/HighQualityAudio
Also for AAC in particular there are a few options https://trac.ffmpeg.org/wiki/Encode/AAC