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.

20 of 777 comments (clear)

  1. 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 CharlieO · · Score: 4, Interesting

      This is similar to the phenomenon that photographers will tell you about: The human eye/brain system is very good at correcting for color cast. Cameras record the true color (within the bounds of the film type and latitude), so the cast is visible in the photo when it wasn't in the original scene. But photographers learn to see the full color and can't ignore a color cast, just a musicians learn to hear all the sound and can't easily ignore background noise

      Well this photographer will tell you differently.

      If you use film stock then a very important part of the printing process is setting the filters to give the correct colour balance - either by hand or by bulk scanning the film and normalizing to 18% grey.

      On a digital camera or video camera you have to set the white balance so the camera electronics know the reference to record the colour signal against.

      Neither film nor CCDs/CMOS sensors have anywhere near the dynamic range of the human eye, so they record a substantially less accurate picture with either the highlights or shadows saturated out.

      The only way of accurately scientifically measuring the scene is with a multispectral scanning radiometer - as used in remote sensing.

      Speaking as a sound engineer I find it difficult to agree with your stance about this odd entity 'the music' - every stage of the process should be as flat as possible unless it is an artistic decision to change it. So if I'm recording a live event I should use the best mics, with the flatest response, use the recording device with the flatest response on most headroom, and then master the recording. Now at this stage I can play around with the EQ on the recording and make an artistic decision on the timbre and tone of the sound - because I have not predisposed myself one way or the other by colouring the sound I recorded. I don't disagree that a doctored sound might sound better, but it is not more accurate.

      In the real world systems aren't perfect, and those that are close cost a lot of money. Now you have to make a decision of what makes the best sense with your budget. Now some mics and recording systems colour the sound in a pleasing and predicateble way - it sounds like the setup you settled on does. A lot of people forget that the post production of a recording or the setup of the PA at live gigs is a very important part of the music creation process, guitars drums and keyboards may be your instruments of choice, but for a sound engineer the instruments of choice are mics gates EQs compressors and sound desks - in producing a recorded work both the musicians and engineers are important - would the Beatles work have been the same if it hadn't been for the creativity of the Abbey Road engineers who broke from the tradition of 'perfect reproduction' and started working with the musicians to create new ways of presenting the sound - probably not.

      In your example the rolloff at high frequency is a common effect with high volume PAs - at high SPLs your ears get tired and the high frequencies are affected first. Most people can relate to that slightly muted feeling to thier hearing after a particularly good gig - so the slightly muted nature of the mic that you use matches people recollection of live gigs. Interestingly popular mics for live work will not be the same as those for live work - even with the same instrument and musical style.

    2. Re:That's all very well but by smilinggoat · · Score: 3, Interesting

      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...

      Even if they are using 48kHz sample rate, they're still compressing the hell out of it, which destroys all those extra frequencies you're getting over 44.1kHz (22.05kHz - 24kHz). AAC does the same thing MP3 and vorbis does, which is chop off a significant amount of high frequencies to cut down on data.

      And besides, the original masters could have been tracked at 44.1kHz, 16-bit in ProTools or what have you. Not necessarily any higher than that.

  2. Unfortunately I'm sticking with MP3 by jolyonr · · Score: 4, Interesting

    I agree that Ogg is a better format, better quality sound for similar bitrates to MP3, but until the portable devices I use, in-car CD/MP3 players, etc. accept the Ogg format as readily as they do MP3, then I (like most people) are stuck with the MP3 format. At least nowdays storage is cheap, so I whack everything to MP3 at a high bitrate.

    --


    Please read my Canon EOS tech blog at http://www.everyothershot.com
  3. Re:Hard To Tell Difference by Anonymous Coward · · Score: 3, Interesting

    how are you encoding your mp3s?
    try lame with --alt-preset extreme
    can you tell the difference then?

  4. Converting AAC (".m4p") to MP3? by kriegsman · · Score: 4, Interesting

    My portable HD music jukebox, and my car stereo, and tons of other devices out there ONLY play MP3s.

    But any new music I buy through Apple is AAC encoded, in an m4p "protected" file.

    So here's a purely technical question: What's the shortest path to convert these shiny new "protected" ACC files into plain MP3s so that I can take the music that I've just paid for and listen to it on my Archos MP3 Jukebox? I've already successfully gone from AACs to audio CD, and then re-ripped and re-encoded the album as MP3 but ... ew. There's got to be a better way.

    And yes, I know Apple and Big Music and the RIAA and Homeland Security don't want me to be able to do this (easily, or maybe at all) but at this point I'd like to sidestep the politics and focus on a technological solution that works for me- a legit, paying user.

    So: what's the closest we can get to "acc2mp3", or better yet "m4p2mp3"?

    -Mark

  5. Two Words by Anonymous Coward · · Score: 4, Interesting

    Beta-Max!

    Ogg = Too little, too late, overmatched and unknown to the masses. Also, too geeky. No hardware support to speak of. Walk down a street anywhere in the world and ask them what Ogg is, then ask them what MP3 is..... I guarantee you 1000 more people will know what a MP3 is compared to Ogg. It may be smaller, but in the age of 200 Gb harddrives for $200 size is no longer an issue.

    MP3 = Widely known, was first on the scene, its everywhere, tons of hardware on the market, good quality, reasonable size ... hell my grandma even knows what it is.... that means Ogg is screwed!

    AAC = Already has an installed user base, sounds just as good as Ogg or MP3, plays nicely with the best known\most widely sold MP3 player on the market. Promising, but probably the lesser of the three unless this thing takes off.

    You may not like what I have to say, but it is the truth.... and you all know it!

  6. Re:Spectrum analysis is useless by MS_is_the_best · · Score: 4, Interesting

    How can this parent be +5 insightful? It is wrong and uninformative.

    I worked with MPEG4 (AAC) and OGG a lot (for my phd. thesis) and spectral analysis IS very important. Although it is correct that it doesn't show precisely what information is left out because of what our hearing system doesn't register. However, these hearing curves and integration times are already known (although not the same for evry human) and most post-MP3 encoders do this rather correct. Most profit nowadays is in clever signal processing. The spectrum of a decoded signal shows almost all artifacts very well and is therefore something which helps a lot in showing artifacts in a coding scheme.

    Of course listening test must also be done. They show that modern encoders make choices (not all our ears are the same, and so isn't all the music) which very often pays of in a certain test.

    Theoratically AAC and OGG are rather similar, but AAC has a few nice extra's like the Temporal Noise Shaper. However in practice OGG seems good enough (unless MP3) and is free, while AAC is not that much better and unfree, so my choice is obvious.

    I will wait for the OGG hack of the IPod, now it had a better processor.

  7. 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
  8. Re:pretty lame! by trezor · · Score: 4, Interesting

    And as all people who have taken advanced math knows: Sound can be described with equal precision in the time-domain and in the frequency-domain.

    It's called a Fourier-transform.

    And in the frequency-domain you still got phase, in case you wondered. It's covered by the use of imaginary-numbers.

    So analysing the signal in the frequency-domain should uncover the same errors as an analysis in the time-domain, if it's extensive enough, that is.

    I don't bother going into the theorys behind this, but google for Fourier-transforms and wise up :)

    --
    Not Buzzword 2.0 compliant. Please speak english.
  9. 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.)

  10. Re:Anyone seen real specs for Apple's format? by MasterVidBoi · · Score: 4, Interesting
    I'm wondering if there are any libraries out there for decoding them, even within the confines of the DRM...

    While I'm not sure, I would say yes.

    I noticed last night that the protected AAC files played both in the Finder's preview pane and in Quicktime 6.2 itself. I assume the actual AAC-Protected decoding is done in quicktime, and no modifications were made to the finder to allow it to explicitly play AAC-Protected files. This implies that any program that can use quicktime can also play protected AAC files.

    I'd be suprised if may of the other mp3 players on the mac didn't already support playing via Quicktime, and by extension, playing AAC-Protected

  11. Re:They chose AAC because it's already in QuickTim by ScooterComputer · · Score: 3, Interesting

    Two points:
    1) Apple does not explicitly mention how their Music Store songs are encoded (neither what the source is nor what encoder they are using)---they very well could be using a higher quality AAC encoder than what ships with QuickTime, which has reviewed poorly. There exist, it should be noted, other professional level encoders that have reviewed much better.

    2) That being said, Apple released QuickTime 6.2 at the same time as iTunes 4 yesterday, and one of the headlining new features is an enhanced AAC encoder. It is entirely possible that Apple has addressed problems with their encoder, and perhaps the new version would stack up better in blind listening tests.

    Of course, it would have been nice if Apple could step out of the Reality Distortion Field for ten seconds, and do the "Right Thing". They had to have known that AAC--because of current, community-reviewed blind listening tests--would be a controversial choice. Why they didn't undertake/commission prior subjective testing and why they haven't bravely taken their encoder to the "street" and up against OGG and MP3Pro, I don't know...if they had, we wouldn't be arguing about how crappy their encoder was, we'd be arguing subjective listening differences. Now, this potentially great new service will suffer from a 3 to 6 month "shake out" in the more discriminating audiophile community (the people who recognize that CD is better than cassette, and can hear that 128 CBR MP3 is NOT CD quality) because of the technical merits of the quality of the encoder. No new service needs such hesitancy to overcome, much less one from Apple. I predict that the stigma of the quality demon is going to be a major adoption speed bump for this service among the group most important to its widespread adoption--the audiophiles.

    Once again Apple (read Steve Jobs) makes the mistaken assumption that just because they SAY their stuff is better, everybody should just accept that--it is a clear misread of their (new) market demographic, which is proving to be growing more and more into a Slashdot crowd. If they keep ignoring the fact that their fastest growing fanbase is a fairly technical, information hungry group, they will certainly lose them as fast as they gained them...if there is one thing I have learned in my years of being a Slashdotter is that we are a fiercely loyal, but not easily fooled community, and we certainly don't suffer fools gladly.

    --
    Scott
    "Hokey religions and ancient weapons are no match for a good blaster at your side, kid."
  12. 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.

  13. 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.
  14. AAC works for me... by berniecase · · Score: 3, Interesting

    I bought about 10 songs from Apple's music service yesterday, and they all sound great. When I got home, I ripped Would? from Alice in Chains's Dirt and compared it to the 182kbps VBR MP3 I already had. The AAC sounded about the same as the MP3. It didn't sound worse, and I was running this through my iMac G4's audio system and then a pair of Polk bookshelf speakers I have on my desk (and a Pioneer receiver/amp). I'll stick with AAC, and I'll stick with the iTunes Music Store. For my money, it's a good deal.

  15. Re:Ok, here goes... by Anita+Coney · · Score: 4, Interesting

    Sure he's flamebait, but he's right. When I decided to rip all of my CDs and store them on my computer, I tried various formats. MP3, MP3pro, WMA, and yes OGG. In all honesty I could not hear the difference between any of them whether I played them via headphones or through my Sony STR-DE475.

    Thus the choice was easy because only one factor remained: ubiquitousness.

    Will it work with any portable player I buy, or will my hardware choices be limited?

    Will I be able to share them with friends without having to explain how to play them?

    Will it work with programs such as Nero without decoding the files to a different format first?

    One format fit that criterion and it was MP3. Sure it's proprietary. But so is my car. I'm not going to stop using something that works merely because its proprietary. Computers are tools, not a religion!

    --
    If someone says he and his monkey have nothing to hide, they almost certainly do.
  16. Re:CD is the problem, not wma, mp3 or ogg by norton_I · · Score: 4, Interesting

    Are you sure that the problem isn't in the mastering engineers, not the CD format? Almost all pop music is dynamically compressed within an inch of its life to make it sould louder on cheap equipment. I am told that this is much less of a problem with classical music, but classical music also tends to have a much higher crest factor than pop, and is therefore more sensitive to compression as well.

    The noise floor and dynamic range of a CD with a high quality DAC should be better than almost anybody's ears, if correctly mastered. DVD-Audio should be even better than CD, with multi-channel to boot, and also gives recording engineers a lot of headroom in the ultrasonic to avoid aliasing while using low order filters that are in principle somewhat gentler on the sound. SACD on the other hand is a travesty, superbly wasteful of bandwidth, while having less resolution and more noise in the highest octave of the audio range and much, much more noise in the ultrasonic, which is inaudiable, but can have negative effects on the audible spectrum because of effects in the tweeter.

  17. Re:Hard To Tell Difference by Pieroxy · · Score: 4, Interesting

    The problem in your test is that if you know which file you're listening at, you're just not fair in your comparison and by listening several times, your brain just makes you hear stuff that is just not there.

    A test was made where people would listen to two WAV file, one supposedely was an MP3 (that was expanded to a WAV). 25% of the people could hear a difference between the two WAV files where they were actually the same...

  18. Re:Hard To Tell Difference by Wavicle · · Score: 3, Interesting

    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.

    I don't disagree with you, but I just wanted to throw in my own 2 cents worth of informal experimentation:

    I recently discovered the sourceforge cdex ripping software, so I finally had a chance to rip all my music to the superior sounding ogg format instead of mp3. Before doing so, my wife and I ran a couple double blind tests with one another to see where the best encoding was.

    The only pair of speakers I had to test this was a pair of old Yamaha YST-M7's. These are Yamaha branded $20 single driver computer speakers that came with some computer I bought a while ago. They are pretty bad speakers. For the test, I selected a reasonable genre swath of music:

    Dixie Chicks "There's your Trouble"
    Oingo Boingo "On the Outside"
    Samuel Barber "Adagio for Strings"
    W. A. Mozart "Queen of the Night's Vengeance Aria"
    REM "Nightswimming"

    Each piece was selected because of particular aspects of song such as use of strings, use of horns, or use of voice. Each song was tried in a variety of encodings in both ogg and mp3, constant and variable bit rate, with the original CD wav file thrown in amongst the samples. The mp3 encoder was Lame v 1.27 engine 3.92 Alpha 1 MMX, the ogg encoder was Ogg Vorbis DLL Encoder v 1.09 enging 1.05.

    The results strongly disagreed with conventional wisdom. In every case, across genres, on these low end speakers, 320Kbps mp3's were the only ones that fooled our ears. Low bit rate ogg and mp3 recordings were different, but we didn't take time to notice which was better... they were both unquestionably inferior to the source material. Ogg's 350Kbps encoding was good, but inferior to the smaller 320Kbps mp3 files of the same work.

    Reading some of the posts on this article, I am rather shocked how many people find sound reproduction to be anywhere between "very good" and "excellent" on mid end equipment listening to 192Kbps encoded audio.

    After running this experiment, I ripped about 30 of my CDs to 320Kbps mp3's and noticed another benefit to CD quality rips: I could listen to the music longer without my ears feeling fatigued. I had always thought that it was pumping sound directly into my head from my headphones that caused my ears to become tired of the music. For whatever reason, it takes much longer now. Perhaps 3 or 4 hours compared to 1 to 1 1/2 before.

    --
    Education is a better safeguard of liberty than a standing army.
    Edward Everett (1794 - 1865)