It only competes because Vorbis and Opus are blacklisted by Apple and Microsoft meaning plugins that support their function are not allowed in browsers, where a lot of people play audio files.
MP3 competes because it is good enough and works everywhere, not because it has improved in quality.
Good points that I don't disagree.
I was only trying to make a loose analogy that I guess doesn't quite work.
I wonder why Apple and MS banned Vorbis? Probably because it's open-source and patent-free and therefore threatens them somehow.
Ogg Vorbis is exactly what I was thinking when I said "other newer codecs". It is better than MP3, but since the lame engineers tweaked MP3 encoding it is possible to get mp3 quality *almost* as good. I still encode to .ogg though.
When it comes to video however mp3 doesn't compete.
Note that in video codecs where audio is only a very small percentage of the file size, AAC is used in h.264, Vorbis is used in WebM, and Opus is used in WebM2. Where is mp3 used in video?
.avi?
I don't disagree here either, but I used to encode video to .ogm and I notice today it's not supported at all anywhere.