Slashdot Mirror


AAC vs. OGG vs. MP3

asv108 writes "Yesterday, Apple unveiled their new music service claiming that the AAC format "combines sound quality that rivals CD." Here is a little comparison of lossy music codecs, comparing an Apple ripped AAC file with the commonly used MP3 codec and the increasingly popular OGG codec. Spectrum analysis was used to see which format did the best job of maintaining the shape of the original waveform." Wish they had WMAs in there too. And for the spoilage, it looks like OGG comes out on top.

24 of 777 comments (clear)

  1. Hard To Tell Difference by Ffynon · · Score: 5, Informative

    I've got a nice pair of Bose headphones, and I listened to an Apple Store AAC file and an OGG version of the same song. I don't consider myself a real audiophile, but it's damn near impossible to tell the difference between the two; though I can definitely hear the improvement from MP3 to AAC or OGG.

    1. Re:Hard To Tell Difference by glesga_kiss · · Score: 5, Informative
      To do a true test, you need to encode the files, decode them to PCM wav format, then burn to an audio CD.

      Then, you have to do a blind test with all of them. You also need to use a variety of source material, because different genres of music compress better under some encoders.

    2. Re:Hard To Tell Difference by Vann_v2 · · Score: 5, Insightful

      That's there value in ruling out variables when trying to objectively compare things?

  2. That's all very well but by Sad+Loser · · Score: 5, Interesting

    Some decent quality properly blinded listening tests would be more interesting than a graph though.
    When VHS established dominance of the video market, there were high barriers to change - your player and media were committed to that format.
    There are far less barriers to change in the ripped audio format, although there will still be some inertia, but there is nothing* to stop ogg vorbis becoming the dominant format.

    Where's my ogg pod then?

    * apart from the silly name.

    --
    Humorous signatures are over-rated.
    1. Re:That's all very well but by jc42 · · Score: 5, Informative

      A few years back, Consumer Reports did an interesting set of listening tests. The usual blinds, of course. But the interesting part was that in addition to random staffers, they had two extra groups: sound engineers and musicians. They reported that these two groups differed radically in their rankings of sound quality. The difference was fairly straightforward: The sound engineers gave a high rank to equipment that produced the sound accurately. The musicians gave a high rank to equipment that made the music clear. These are not at all the same thing. In particular, musicians generally liked "distortions" that removed non-musical information, strengthened the fundamentals, and so on.

      From a musician's viewpoint, one of the real frustrations with just about anything published about sound quality is that it's always written from the engineer's viewpoint. But what I want to know is which gadgets do a good job of reproducing the music. They never seem to tell you that.

      --
      Those who do study history are doomed to stand helplessly by while everyone else repeats it.
    2. Re:That's all very well but by The+Original+Yama · · Score: 5, Insightful

      A decent, but simplistic article. Unless you're a fussy audiophile, this analysis should be sufficient for you.

      [rant] I wish the author would present his graphs in a more readable way. A screen dump of Photoshop in WinXP is not a professional way to show data. It's ironic that while reviewing lossy audio formats he opts to use a lossy image format (JPEG) for the graphs. I had to double their size on my screen just to make some sense out of them. [/rant]

      It's not difficult to gain better-than-CD quality. CDs have been around since the early 1980s, and their main drawback is that they have a low sample rate, 44.1KHz. This is why many sound engineers prefer vinyl. because it's an analogue format, vinyl has a potentially infinite sample frequency range (although it's obviously limited by the recording and playback equipment, and by the physics of the media itself). Apple has used original masters (not CDs) to create much of its song library, so all they have to do is encode at a higher frequency than 44.1KHz. At a guess, they're probably using 48KHz, which is on par with DAT and MiniDisc.

      I'm not surprised that Apple is using AAC. For one thing, it is clearly better than the decade-old MP3 format in all respects, and the licensing costs are probably the same or better. Technically, it may not be as good as Ogg, but most people don't even know what Ogg is so it doesn't matter. As long as Apple can say "our format is better than MP3 and CD audio" (the two prevailing formats), they will have the attention of consumers. AAC is a more mature format than Ogg (Ogg isn't bad, but AAC is more tried-and-proven), and is probably more compatible with existing DRM technologies. DRM is important to keep the recording companies happy and to ensure that the files will only play on devices that Apple specifies (like on Macs and iPods).

      A major stumbling block for Ogg is that until fairly recently it was necessary to use a floating point processor to play the format. In the arena of portable devices, only PDAs have floating point capability, which is why you can play Ogg files on your Zaurus and not on your iPod. AAC is already supported by many devices, so Apple has a larger potential market (although at present only iPods can play the files).

  3. Maybe in the future... by borgdows · · Score: 5, Insightful

    "the increasingly popular OGG codec."

    sadly, I don't think OGG is *currently* known to anybody except nerds or IT pros.

  4. Ogg by 91degrees · · Score: 5, Insightful

    Most people who use ogg do not use it for it's quality. All that matters in that respect is that Ogg is comaprable to other formats at similar bitrates.

    The important aspect of it is that it's free. There are no patents (at least as far as we know of) preventing anyone from using it, and it's made quite clear that the code can be included in open and closed source software without royalty payments.

  5. It's Vorbis, not Ogg. by Anonymous Coward · · Score: 5, Informative

    Ogg is a container format. I could in theory put an ACC audio file into an Ogg container.

    The audio format you're babbling about is Vorbis. Usually .ogg because it is inside an Ogg container.

    Hell, it's not just a silly name problem, it's an entire naming convention issue.

  6. But what does it actually sound like??? by velouria · · Score: 5, Insightful

    I don't think graphs are all that useful for comparing lossy sound compression.

    Microsoft likes to show how their wma looks better than the other compression methods... it does look beautiful in graphs, but it sounds all tinny and horrible.

    I don't care if the compressed frequency response graph looks nothing like the original frequency graph, as long as my ears are unable to tell the difference between the two.

  7. Re:Anyone seen real specs for Apple's format? by s.o.terica · · Score: 5, Informative
    Although the AAC->CD->MP3 route is possible, and I intended to buy a track and see how the quality comes out, has anyone seen anything about how the DRM works on the Apple files?

    Regarding the AAC->CD->MP3, I burned a couple of Music Store tracks to CD, then re-ripped them (using iTunes, no less) using VBR High, and they sounded indistinguishable from the original Music Store files (albeit being significantly higher average bitrates).

    Regarding DRM, it appears that your Music Store file is locked to your Apple ID, and you have to Register up to three computers that you want to be able to play songs associated with your Apple ID. If you sell a computer, you have to unregister it before you can register a replacement computer. This appears to be the only restriction on usage -- you can still burn the songs to as many CDs as you want, copy them to as many iPods as you want, and streamthem to as many other Macs (and TiVo) as you want using Rendezvous.

  8. Anybody checked out Neuros? by Ruri · · Score: 5, Informative

    The Xiph folks have signed up to add Ogg support on the Neuros audio handheld. Its a firmware upgradable handheld which currently supports mp3, but will probably have Ogg support by mid-late summer.

    Check out the highlights.

    http://www.neurosaudio.com/

  9. Musepack is better at the high-end by Jack+Comics · · Score: 5, Interesting
    --
    "We are all in the gutter, but some of us are looking at the stars." - Oscar Wilde
  10. An overlooked key point? by prestidigital · · Score: 5, Interesting

    Understandably, most of the discussion here is about the pros & cons of various compression formats. But the first thing that jumped out at me when I clicked on the apple.com link was:

    "Preview any song for free, when you find a song you want, buy it for just 99... It's what music lovers have been waiting for: a music store with Apple's legendary ease of use, offering a hassle-free way to preview, buy and download music online quickly and easily."

    FINALLY, a business model for downloading music that makes sense! (Now if only I could afford to switch to Apple products.)

  11. Next up... by cygnus · · Score: 5, Funny

    let's compare video codec image quality by streaming the data thru a hex editor in realtime. :)

    --
    Just raise the taxes on crack.
  12. I'm The Archangel Gabriel by RobotRunAmok · · Score: 5, Funny

    ...and I gotta tell you, having played that trumpet and serving as Music Director for the Celestial Choir since the Dawn of Time, I know Audio, and MP3 is the way to go. I've analyzed OGG, WMV, AAC, and this cute l'il analog thing which that wack job Orpheus put together Back in the Day, and I must say, nothing beats MP3, in your or anyone else's universe.

    Of course, I'm logging in here under a pseudonym, so you'll just have to trust me. But hey, would a member of the Heavenly Host lie to you?

  13. I have a better plan by JudgeFurious · · Score: 5, Funny

    Last night I downloaded a bunch of tracks off of Apple's Music Store Service. I then played them (along with several tracks I already had in OGG and mp3) through my computers $9.95 speakers while holding my portable cassette recorder very, very close to the speaker (For the technical out there I was holding it close to the LEFT speaker and even turned the TV down some to get the best possible sound) and then replayed them all back on the same portable cassette recorder.

    My conclusion is that all three sound like complete shit.

    --
    Appended to the end of comments you post. 120 chars.
  14. Useless Comparison by nathanh · · Score: 5, Insightful

    AAC/MP3/OGG are all based on psychoacoustic models. Comparing their decoded spectrums is pointless. The spectrum isn't supposed to be faithfully reproduced. Frequencies that your brain wouldn't fully hear aren't fully stored.

    The only value I can see in a spectrum comparison would be to find obvious errors in the encoder or decoder. Like the 16kHz spike in the Xing encoder. But how likely is that going to be these days?

    The only proper comparison involves a good hi-fi, a sensibly furnished room, and a comfortable chair. It is called "golden ear" testing and it's the ONLY way to compare psychoacoustic models.

    Or at least it's the only way until the research scientists work out how the human brain works.

  15. Spectum analysis in invalid by Compact+Dick · · Score: 5, Insightful

    Learn why you shouldn't use spectral analysis to determine lossy codecs' quality.

    The most respected technique is double-blind testing using an ABX tool such as PC ABX, WinABX or ABC/HR.

    More info on conducting blind tests can be found at the PC ABX site.

  16. Spectral analysis != psychoacoustic model... by autopr0n · · Score: 5, Insightful

    Modern compressions schemes are supposed to make sound that sounds as much like the original as possible, not looks like the original on an FFT.

    The only way to test this is to use double-blind listening tests. The spectral analysis stuff is absolutely useless for finding out how good the music actually sounds.

    --
    autopr0n is like, down and stuff.
  17. AAC is pretty weak, no marketing can change that. by RoLi · · Score: 5, Interesting
    And it's more efficient than MP3

    At low bitrates, AAC is very weak, at 128kbps it was the worst of all:

    Study

    I was one of the 3000 participants, btw. And my ranking which I gave (blind, I did not know which sample was which) confirms pretty much the results, at 64kbps, AAC was unbearable, while ogg was not distinguishable (by me anyway) to the original.

    The only test where AAC didn't fail miserably was the "expert test" with only 8 listeners.

    OGG has beaten all other codecs consitently at all bitrates.

  18. Ripping from the source a disadvantage? Huh? by pz · · Score: 5, Interesting

    Let's see. Given the task of creating a codec de novo and the financial and political means to have access to the original source material rather than a version sent through a horribly non-linear sampling mechanism out of your control and beyond your specification, which would you choose?

    I'm sure most Slashdot readers will be familiar with the Nyquist limit and understand the complete inability to represent information above the limit, but how many are familiar with the degradations that occur near the Nyquist limit when you have non-infinite signal lengths? This is why oversampling is so important. In general, if you have a signal at frequency f that you want to accurately capture, you should be sampling (by rule of thumb) at 5f or greater. If you sample at lower frequencies, the distortions in phase and amplitude are difficult to predict and statistically analyze as they tend to have uniform rather than Gaussian distributions.

    So again, I re-pose the rhetorical question: given the task of creating a new codec rather than rewriting an old one, wouldn't you want to use the least-filtered signal possible as a source, especially when the extant filtering is non-linear, and be able to select by design which parts to encode and which parts to ignore? I sure would.

    --

    Put my fist through my alarm clock with its ding-dong death inside my ear. - The Blackjacks.
  19. Under-reported but VERY important distinction: by mxcantor · · Score: 5, Funny

    from macslash:

    AAC comes with a significantly lower number of b*tching [\.] users than ogg

  20. Spectrum analysis :- by jmv · · Score: 5, Insightful

    Spectrum analysis was used to see which format did the best job of maintaining the shape of the original waveform

    Will people ever stop doing that. It's complete bullshit and certainly not the way to evaluate a codec. These codecs use perceptual weighting of the noise. That means that the idea is to distort the signal as much as possible in any region of the spectrum where it won't be heard at a certain time. That means that you see a big distortion in the spectrum and think the codec is worse than the others when in fact it's better because it realized that it doesn't matter.

    The only way to correctly evaluate a codec is to listen to it. I write codecs (see sig), so I know a bit what I'm talking about. I use spectral analysis sometimes, but only to identify problems which I've already heard before, not to say that my codec is good.

    As a aside, I'd say it probably wouldn't be hard to write a codec that does better than any other on those spectrum analysis. They would sound like crap because their psycho-acoustic model would be all wrong.