Good new, the last patents on the MP3 compression technology and its format have expired. So finally free software can implement and use this technology.
See also this article on Slashdot:
https://tech.slashdot.org/story/17/05/16/1314221/mp3-is-not-dead-its-finally-free