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.
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.
Don't forget that Apple's AAC's aren't ripped from 48.8 16-bit AIFF's, but re-mastered directly to AAC.
I hate Grammar Nazi's
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.
And it's more efficient than MP3.
Their encoder is not particularly good, and AAC is covered by a ton of patents, so there probably are other reasons why they chose it.
For anyone else but Apple I see no reason to use AAC when you can have Ogg Vorbis.
PS: Shameless plug: I wrote a vorbis patch to add SSE support for enhanced encoder and decoder speed. It also contains some 3dnow! optimization for you K6 users, decoder only.
What about if I tell someone I'm off to trade some OGGs with my friends, and they think I'm going to throw little plastic discs about?
Hmmm.
"the increasingly popular OGG codec."
sadly, I don't think OGG is *currently* known to anybody except nerds or IT pros.
Slashdot's first reaction to VMware
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.
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
Tubes and transistors are different though. With Ogg vs whatever, it may be more subjective, who knows. But at least with tubes there is a known difference between how they amplify and how transistors amplify. Tubes produce more even order distortion, which to our ears sounds warm and pleasing. Transistors produce more odd order distortion, which tends to sound harsh and stressing.
Subtle difference? Perhaps, but it's there.
Ogg is a container format. I could in theory put an ACC audio file into an Ogg container.
.ogg because it is inside an Ogg container.
The audio format you're babbling about is Vorbis. Usually
Hell, it's not just a silly name problem, it's an entire naming convention issue.
I spent some time last night playing around with the new Music Store feature in iTunes 4. Besides the fact that iTunes crashed on me twice, and 3 never crashed on me, it seems like a very well put together feature.
What kept me from buying the dozen or so tracks I found that I thought were worth a buck a pop was the fact that my Rio Receivers need MP3 or, via "upgraded" software, FLAC, etc... 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?
I'm wondering if there are any libraries out there for decoding them, even within the confines of the DRM... just so I can get them into either a raw data stream or something so I can play them on my Rio Receivers... I'd probably switch to buying all my music (where possible) from them, if thats the case... but if I can't get them into a format I can play using my existing equipment, I'll have to pay the five buck "CD"-tax to get them in a format I can rip to high-bitrate MP3.
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.
Will people please stop talking about Ogg as though it were an audio compression scheme. It is not - it is a wrapper format.
I don't care what kind of tests were done, but anything comparing Ogg to a lossy compression scheme is bound to be unfair, as the Ogg family includes a lossless encoding scheme. Not only does Ogg include FLAC and Vorbis, but it also includes Speex, targetted at voice, and Theora, a video codec.
So please, stop trying to compare Ogg to MP3. It's like comparing AVI or Quicktime to MP3.
My portable HD music jukebox, and my car stereo, and tons of other devices out there ONLY play MP3s.
... ew. There's got to be a better way.
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
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
According to this blind listening test conducted by c't magazine, AAC at 128kbps was ranked the lowest of all codecs sampled at that bitrate (WAV, OGG, WMA, RA, MP3Pro and MP3)... One can always hope that the claims of Apple making their AACs directly from the record masters are true, as this would help the situation some.
Slashdot's first reaction to VMware
Beta-Max!
... hell my grandma even knows what it is.... that means Ogg is screwed!
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
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!
Arguably the best resource for audio compression information can be found at Hydrogen Audio. Visit the various forums, check out the excellent Foobar2000 win32 multiformat audio player, and learn.
I have also written a guide on ripping high-quality MP3s using CDex, aimed towards beginners. If you know people who use Musicmatch, help them switch to a decent, easy-to-use CD ripper.
Cheers,
CD
Use ISO 8601 dates [YYYY-MM-DD]
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/
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.
MP3 this, OGG that, AAC somewhere in the middle... Sorry, I don't use any of the above. I encode all of my music into Musepack. At high bitrates, it's the best lossy audio codec, period. For more information on Musepack, see Case's Musepack Page</a>, or <a href="http://www.hydrogenaudio.org/index.php?act=S T&f=11&t=1927&">List of Recommended Musepack Settings</a>.
Musepack encoders and decoders are available for both Windows and Linux, with Winamp plugins available. The only real downside to Musepack is there is currently no hardware support. But having tried each of the codecs mentioned in this article as well as Musepack at the Quality 8 setting, Musepack is music to my ears each time.
"We are all in the gutter, but some of us are looking at the stars." - Oscar Wilde
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.
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.)
let's compare video codec image quality by streaming the data thru a hex editor in realtime. :)
Just raise the taxes on crack.
...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?
son, if you were an audio expert, you wouldn't be working for Real.
> Is it that difficult to grasp! Ogg is a container file! Vorbis is the audio codec!
IT DOESN'T F'ING MATTER!
Just like Linux isn't an OS, (it's a kernel) no one aside from you and some other geeks (not meant as an insult, I am a geek too, obviously) will ever convince others of the truth.
More importantly it doesn't even matter. The details are subtle and by continuing the geeky "I'm better than the stupid lusers" all you are doing is keeping Vorbis from becoming more popular -- people will become pissed off that they get hassled every time they mention it, and then ignore it in the future.
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.
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.
My favorite part of this discussion is where slashdotters believe that they, the open source community and Ogg in particular are foremost in the minds of people like Steve Jobs as he unveils his new music service.
Get a clue already. Apple went with AAC because it's great quality, supports the (fairly mild and necessary to get the RIAA onboard) DRM restrictions for the service, and is a subset of the excellent MPEG4 video codec.
Even if Ogg is better quality at lower bitrate (a point that I am not convinced of, "waveform comparisons" notwithstanding), Apple has legitimate reasons for going AAC that have nothing to do with The Man trying to keep you and the open source community down. Jesus, it's not always about you, mkay?
You like your Macintosh better than me, don't you Dave? Dave? Can you hear me Dave?
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.
Use ISO 8601 dates [YYYY-MM-DD]
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.
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.
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.
from macslash:
AAC comes with a significantly lower number of b*tching [\.] users than ogg
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.
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.
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.
Opus: the Swiss army knife of audio codec