Opensource Apple Lossless Decoder Released
Cody Brocious writes "David Hammerton has released version 1.0 of an ALAC decoder. This allows users of operating systems not supported by iTunes/QuickTime to listen to their Apple Lossless files, a proprietary competitor to FLAC. This is a large leap forward in audio codec interoperability, and paves the way for an ALAC encoder." The site also asks for additional help on the project.
They seem to be cracking down on their most enthusiatic community members lately.
(It's never too late to join the Renaissance)
...but I just don't see why Apple felt it was necessary to make another lossless format. While Apple in the past has been accused of often suffering from NIH (Not Invented Here) syndrome, it seemed like they were improving in this area: the iMac helped popularize USB, the open-source core of OS X has its roots in BSD, iTunes supports MP3s, their web browser gives source back to Konquerer, etc. Anyone have any theories as to why they didn't just use FLAC? After all, the work was already done for them...
Save the galaxy!
My apple lossless files...? Why would I have those if I didn't have a Mac? To me it seems more of a use to Mac users, who already have the files; it might help increase compatibility between them and 3rd party programs, for multimedia editing purposes etc.
Will he get sued? Proprietary format... Apple... Lawsuits...
Also, considering that "Apple never released any documents on the format", its incredible that this guy wrote a decoder. Some people are truly amazing sometimes...
Eureka Science News - automatically updated
This initial release is version is 0.1, not 1.0
gif-like, could i use it in a real project?
world was created 5 seconds before this post as it is.
As I understand it, all the wireless Airport express streams use apple lossless codecs. How long before we can have a program to intercept these wireless music streams and then convert to mp3s or whatever you want? Pretty crappy way of getting music, slow etc the more I think about it, but why not?
WikiAfterDark.com It's a sex wiki, go now!
if i compile this on Linux will MPlayer pick it up and use it? or will XMMS pick it up and use it???
Windows Media Audio 9 Lossless released as open source from MS. Maybe Apple isn't the new Microsoft after all?
Yes, but I'd find it highly doubtful that Quictime, lossy video compression extraordinaire, would uses ALAC for sound... does it?
Because Apple is the New Microsoft. They use courts to squelch free speech rights of those who would impart Apple trade secrets to the public; they legally commit restraint of trade by mixing proprietary hardware with proprietary software so competitors can't break into their non-monopoly markets with alternative products; and they don't give all their code away for free, but instead select to give away or hold secret that which maximizes profit for their shareholders. Evil bastards! *cough!* --M
I've been transcoding all the boots I download from EasyTree to ALE just because it's easier to use than FLAC or SHN with iTunes. I'm glad to see this, because it means I can start sharing stuff in this format.
But like other posters, I'm wondering how long it will be before this project gets lawyered on. Apple hasn't exactly been user friendly lately, so it seems like it's only a matter of time. Guess we'd better get it while the getting's good!
Then you really weren't paying attention to Apple before that point where all the slashdot editors bought powerbooks. Apple Legal has always* fallen on any and all leaks in their wall of silence like rabid dogs on a barbeque-sauce-covered Pre-K student. It's just that the media's never actually paid attention before this latest event, so if you're only listening to the media it seems like this is a new development.
But as far as this project goes, if they performed their reverse engineering in a proper manner they shouldn't have anything to worry about.
* At least since Spindler left. But even before that Apple Legal wasn't nice
Irritable, left-wing and possibly humorous bumper stickers and t-shirts
We used ALAC all the time at the studio where I worked, but alas, some of our software was linux only and would not compile under OS X. This was very frustrating and required multiple computers. Finally with this system we can move over to this software as a solution. I love linux and would rather use it, but of the people I work with don't want to learn it claiming that it is more complex. Anyway, thats great that we can do the job with ALAC decoder! I'm sure other studios forced to use ALAC will be very happy with all of this.
Want to learn about anything sexual? Check out the sex wiki:
ALAC is different. Apple needed it because FLAC is too good -- it takes too much time/CPU power to encode. I think they would have used FLAC if they could have, but it's too heavy to work in the (original) iPod and the Airport Express.
"[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz
Certainly never sounds like it.
For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
I guess I haven't been paying that much attention. I suppose it was true when someone said that if Apple had the opportunity, it'd be just like Microsoft...
(It's never too late to join the Renaissance)
Good luck using Xine after the corps finally crack down on those illegal ripped and hacked win-binary codecs (real, win-media, apple's quicktime)...
If you're a gnome user you should probably check up on Planet Gnome. Here's one blog in particular that may be of interrest.
----
Go canucks, habs, and sens!
Really? You are sending manure over the postal system for free?
Well In that case what do I have to do to get you to send some fertilizer my way? I' really love to see tou pony up the dough for some silly trolling.
And to pay for it I say this: It really does not amaze me that you'd pay for something as unproductive as that, as you are paid to be unproductive. You are not capable of any coherent thougth so you country wisely decided to intern you in one of their large scale asylums. That you call it 'army' does not mean that it keeps you off the street. If your ranks grow too much you id10t dictator decides to star another war to get enough of you killed. Face it, you are a liability.
Now does that pay for you going to shit in a box, tape it up, go to the postoffice and pay to have send overseas? please?
This space is intentionally staring blankly at you
Download & Changelog:
* 0.1.0 - March 5, 2005: Initial release. Download Now!
MD5: f554fc11ee41a30bc5baf15a0fd07256
Confusing 1.0 with 0.1.0 - way to go, editors! Would like to write more, but gone compiling new 6.11 Linux kernel.
I was just thinking this morning how nice it would be if both my iPod and my Linux boxen supported a lossless format besides uncompressed PCM, and here's the solution.
;)
Desire warping reality? Nah, if my desires warped reality I wouldn't be quite as single.
Regardless, my compliments on a superb piece of hacking. As near as I can tell the thing works perfectly, and only a few months after Apple released the format.
I assume that somebody will whip up an XMMS plugin based on the library and/or get it into Mplayer's CVS over the next week or so, but even being able to do "alac file | aplay" is a great improvement in functionality for me.
Only in a Slashdot fantasy can a Slackware install turn into several hours of sex . . . . .
...they combine the two formats to get the AFLAC format. "It's the format with additional benefits!"
surely the iPod and Airport only decode.
When you have many embedded devices to program for, it is convenient to have control over the future of the CODEC you are using.
While FLAC is great, Apple has no controll over what direction FLAC takes.
Sigs? We don't need no stinking sigs!
The Airport Express is a router. I don't think it has an Athlon 900
Sounds to me like a justification to make and distribute a free software FLAC QuickTime plugin so our friends burdened with the proprietary QuickTime implementation Apple distributes can play streaming FLAC data or play FLAC files.
I see no technical justification of Apple's Lossless format that convinces me it is superior to FLAC (of course, since Apple's Lossless format is only available in proprietary software, it will always lose for those that care about software freedom). Yet I'm sure people will use it and encourage others to use it because it is distributed with their proprietary software. In this way, it reminds me of the odd stance some people take with Ogg Vorbis versus MP3--they know that the Vorbis codec has performed at least as well as MP3 in many listening tests, they acknowledge that Ogg is a better encapsulation format (allowing for more expressive tags, for instance), and they insist on using "the best tool for the job". But they cave in to popular pressure to conform to using a lesser "tool" and endorse the continued use of MP3, sometimes even exclusively (which is really silly).
I hope nobody interprets what I'm writing as though this takes away from this new BSD-licensed Apple Lossless decoder. I'm grateful for what has been done here--it was needed and it is a great contribution to the free software community. I think there's a great future for it at archive.org in case anyone submits audio encoded with Apple's Lossless codec. This could allow archive.org to decode that and re-encode it with something else (many archive.org recordings are encoded many ways). However, when I distribute losslessly encoded copies of audio, I'll continue to dismiss Apple's Lossless codec out of hand and prefer FLAC. I help manage the website for a locally-produced talk radio show called "News from Neptune" and there you can find copies of the show encoded in FLAC, Ogg Vorbis, and Speex. FLAC serves our needs excellently.
Digital Citizen
I get so tired of people misunderstanding QuickTime.
QuickTime is not a codec. It's a media architecture. The MOV file format can theoretically embed arbitrary numbers of tracks (of audio, video, 3D, animated sprites, vector graphics) in any format, and QuickTime supports several dozen formats of various sorts out of the box. ALAC, like every other codec Apple implements on OS X, is just a QuickTime plugin.
Not much of the QuickTime content you find around the web uses it, though, so I don't see how this is going to help QuickTime movie playback on Linux much. But Apple is really pushing MPEG-4 these days, so if Linux has a good MPEG-4 implementation, compatibility problems should go away eventually.
This space unintentionally left unblank.
Sony freaks out on their formats because they actually have some kind of power they can gain from those formats. They have an agenda. For example they wanted to turn ATRAC or Minidisc or whatever into a distribution format, one that other people used but that they controlled. They wanted to supplant mp3 and then leverage this to pressure people into using other Sony products. They wanted to control distribution.
But ALAC isn't even intended or positioned for distribution. There's no power in it. ALACs are created in iTunes and ripped from CDs you own, and they're intended to be played back in iTunes and copied to your own personal iPod. Going through the particularly obvious or convenient interface paths in iTunes, there's no reason that once someone creates an ALAC file that ALAC would ever pass into the possession of anyone except them. Apple seems to be almost resisting the idea people could start distributing ALACs the way people distribute FLACs now. So now Apple controls... what? The way iTunes users use iTunes? They had that already, they wrote the thing.
I guess you can say ALAC locks people into iTunes since once they've ripped their collection to ALAC they can't use those ALACs in other programs but... well, no, not really, becuase ALACs are lossless-- that's what they are! So you can just tell iTunes to convert them to mp3s with no degradation or ill effects whatsoever, by simply right clicking on them. Bang, lock-in gone. And the lossy, transcoding-error-prone format Apple's pushing... is an open MPEG format, AAC. If Apple wanted power or to lock people in, they'd be pushing people to rip their iTunes libraries as some WMP-like proprietary lossy format, not pushing people to rip to AAC and then offering their proprietary ALAC as a minor option buried in the iTunes preferences.
Personally I would suspect they used ALAC rather than FLAC simply because they already had the ALAC code internally developed and their engineers were familiar with it. I doubt anywhere near as much thought went into the decision as people seem to be assuming.
Irritable, left-wing and possibly humorous bumper stickers and t-shirts
On the Mac, it's an entirely different story, with elegant integration and very clean use (small size, not much overhead, etc.).
I've been using Quicktime Pro to encode video on my own website, and, without sound, am able to pick between numerous codecs I've installed to shrink 200mb video files down to around 5mb, with no real loss in quality. It's a beautiful thing. Not to mention how quickly it handles it, without wading through tons of menus.
But when I was on Windows, it was a true PITA.
But yeah, people need to understand that .mov is no different than .avi or whatever container people felt like using at the time. The fact that so many people use it to overcompress video simply for size and bandwidth considerations shouldn't reflect poorly on the media player/container.
There are only a handful of ways a proprietary format can remain proprietary:
Irritable, left-wing and possibly humorous bumper stickers and t-shirts
QuickTime is not a codec. It's a media architecture.
However, the standard QuickTime Pro distribution ships with codecs. I can see how a reasonable person would overload the term "QuickTime codec" to refer to the default codecs chosen by a popular video encoding app for the QuickTime architecture. In QuickTime 3 through 5, this was Sorenson video and QDesign audio; as of QuickTime 6, it is MPEG-4 advanced simple video and AAC audio.
Hmph. I moved to a Mac mini a few weeks ago, and decided that I would finish up ripping all my CD's. Up to then, they had all been ripped as flac, and I was converting from flac -> ogg as necessary.
.m4a (aac) file so something iTunes can handle.
Now, with iTunes on my main PC and my wife's laptop, i thought 'Wouldn't it be great if we could use a daap server and stream all our music?' So, I thought I would use iTunes to rip the rest of my cd's, and maybe convert my current flac files to ALAC. Then I could convert to ogg, and SURELY i could stream those.
That's when the drums of doom started playing.
First, I found that iTunes couldn't handle streaming off files. The Quicktime ogg plugin works okay for playing off the local hard drive, but no nice streaming from my daap server.
No problem, I'll convert to AAC and stream those.
(The drums started playing louder)
Then, I found there is no way to really get iTunes to play or convert FLAC files. There's a plugin, but I can't for the life of me get it to work. And , I found there was no ALAC -> anything, so I ran the risk of being locked into a format that was non portable.
No problem, I'll just find an opensource ripper to convert to FLAC, the to AAC.
(The drums started playing MUCH louder)
I started using 'abcde', a rather nifty shell script that rips and converts cd's to any of a number of formats, including FLAC. It even uses Freecddb for the track information.
But... On OSX, the only real way to easily rip CD tracks is to copy the AIFF files that OSX presents to you when it mounts the audio CD.
And FLAC does NOT like the particilar AIFF files OSX presents.
(The drums are deafening)
24 hours, a bunch of research and hacking on FLAC, I make a custom flac binaries that can handle the AIFF files. And there's the opensource 'faac' program that can convert the flac files to AAC.
Except.... the AAC files faac creates can't be streamed or played by iTunes. Something about the MP4 headers faac generates aren't compatable.
(THE DRUMS ARE IN MY HEAD!)
Another 24 hours of researching, and I come up with the MPEG4IP project at Cisco, which has a nifty little program called 'mp4creator', which is designed to create or modify mp4 files. It has an '--optimize' function which modifies the headers of an existing
I threw everything into a script, and now I can rip files on my Mac mini, store them as FLAC, and then convert and play them as AAC/M4a files via iTunes.
But Apple could have made things MUCH easier by making iTunes more open to other codecs or providing more information for others to creat iTunes codecs.
And now I find someone has written an ALAC converter, so I could have used the ALAC format to being with.
well THANK YOU. THANK YOU SO BLOODY MUCH!
With support for Apple Lossless now installed on all PCs and Macs with qucktime support, doesn't this effectively make FLAC a competitor to Apple Lossless?
Just something to think about.
I think, therefore I am an Atheist.
The DRM is added in the transport layer... the audio encoding algorithm itself has no concept of DRM. DRM can be added to FLAC in an OGG container, just as it is added to ALAC in a QuickTime container.
ALAC probably exists because of an algorithmic or patent-related reason.
THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
Well, they use an OS where almost every cheesy app does that. And certainly every "media-player". So why do they expect QT to behave any way but so?
Lars T.
To the guy who modded me down from perfect to terrible Karma - Apple haters still suck
http://damien.drix.free.fr/qtflac/
Cthulhu fhtagn!
An M4A file can contain either AAC or ALAC. But they are still totally different codecs; software that plays AAC/M4A will not necessarily play ALAC/M4A.
This must be the latest confaddled confabulation floating around on the Mac forums. You can always tell, because while they feign some concern for cold hard technical facts, they provide no data to back it up, and are sufficiently vague as to be meaningless. This latest fable, for example, ignores the fact that MP3 takes more resources to decode than FLAC, yet the iPod and Airport Express have no problem decoding MP3.
There's undoubtedly a perfectly valid reason why Apple doesn't support FLAC, but this isn't one of them.
there are more mp3 tools than ogg vorbis tools. i converted all of my vinyl (about 480 albums) to ogg however.
:)
vinyl>wav>depop>wav>ogg
there arent many files using ALAC, but there are some, at least this should be supported by mplayer soon
I agreee completely with your point about QT not being a codec etc.
As a point of information, the new version of QT due to be released with Tiger will support H.264, which [from everything I've seen] blows away MPEG-4. H.264 is also the codec that the vast majority of videoconferencing over IP systems use, so hopefully we'll see crossover products that allow live streaming videoconferences via QT at high quality.
One possible reason would be in order to stream to an AirPort Express with AirTunes. AirTunes uses a standard streaming protocol (RTSP), but streams the data in Apple Lossless format. Because of this, you currently require either a Mac OS X or Windows XP machine running iTunes to steam audio to the AirPort Express.
Being able to stream from Linux would certainly open up some new possibilities. And being able to transcode from Ogg Vorbis to ALAC in order to stream to an AirPort Express would be pretty cool (and is something you can't currently do under iTunes, even with the third-party Ogg Vorbis decoder plug-in).
Linux would still be missing the admin tools to configure the AirPort Express in the first place, but being able to stream from other OS's to AirTunes would be pretty cool.
Yaz.
FLAC is too good -- it takes too much time/CPU power to encode.
Not quite according to this post. Do you have any references that say otherwise? I've never used ALAC myself so I can not comment.
Bad boys rape our young girls but Violet gives willingly.
Go to MacUpdate to download the plugin if you don't have it.
It's also worth noting that if you convert the FLAC files into WMA lossless, iTunes will convert them automatically for you into ALAC (apple lossess) and preserve tag information.
When's the official MPEG-4 lossless codec supposed to come out?
He's from Australia, and IIRC reverse-engineering laws are different there. I'm not so sure Apple can sue. But, hey, maybe he shouldn't fly to the States, where - hmm - Freedom Abounds (copyright by George Walker Bush) - remember Dimitri?.
Furthermore, he's made it very clear that Apple used a lot of things that had been published before.
I don't know much about the Australian law, though, pointers are appreciated.
Main difference between the BSD license and the GPL license: one is from California and the other is from Massachusetts
But the computer running iTunes has to decode whatever $CODEC into uncompressed audio, and then encode into FLAC in realtime to send it to the Airport Express. Can every supported Mac -- including old G3s -- do that?
"[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz
Nope, I stand corrected. Sorry 'bout that!
"[Regarding the 'cloud,'] ownership was what made America different than Russia." -- Woz
Well, it doesn't blow away MPEG-4, because it's part of MPEG-4. H.264 is MPEG-4 Part 10. The codec implemented in QuickTime now that people refer to as MPEG-4 is actually MPEG-4 Part 2. MPEG-4 is a big standard.
H.264 is also one of the required codecs (and will probably be the preferred codec) for both rival high-def DVD standards. It's an amazing codec; it really does deliver amazing quality all the way from cell phone streams up through broadcast quality video (at bit rates that residential broadband connections can handle), up to 1080p high-definition (at bit rates similar to what MPEG-4 achieves with standard definition video).
This space unintentionally left unblank.
xine orh stone/hitchh ikersguidetothegalaxy/images/hh_large_03.mov
mplayer --playlist
http://movies.apple.com/trailers/touc
in Linux ?
Apple - PLEASE Port these missing QT codecs.
Except now I have a system that rips the CD (yes, by copying from the OSX cd filesystem, which is EXACTLY how iTunes does it, BTW), converts it to flac (with track info) for archival, and then batch converts everything to aac, all nicely scripted out.
Lots of work upfront, but I have a very efficient ripping system now, with long term, lossless archival.
And all so I was guarenteed not to be locked into a semi-proprietary format.
I love my Apple, but Apple the company could do some things better, IMHO.
jf
"Unlike music formats like MP3, AAC and Ogg Vorbis, lossless encoding results in no loss of quality - the music file sounds exactly like the original."
Unless you encode at ridiculously low quality, for 99% of the people and for 99% of the tracks, MP3, AAC and Ogg Vorbis files sound exactly like the original too. They were designed to do that.
FLAC is useful if you expect to do things with your tracks down the road.
"Thanks steve!!"
Did your mother not teach you never to speak with your mouth full?
Good lord! If you contend that MP3s sound like remotely like the original, you've got to be hard of hearing. MP3 is ok as an efficient compression scheme, but as a high fidelity experience, it is sadly lacking.
It's not particularly difficult.
/ id xQuickTimeComponentCreation-date.html
And there's a lot of sample code, including a complete implementation of an audio codec (uLaw), here:
http://developer.apple.com/samplecode/QuickTime
Take it away.
-fred
Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.
Want to write a QuickTime audio codec? Go here:
/ id xQuickTimeComponentCreation-date.html
http://developer.apple.com/samplecode/QuickTime
Grab one of the several example files, the most useful of which will be 'audiocodec', which is a complete implementation of the uLaw audio codec for QuickTime. Replace a few subroutines with your own. Test. Ship.
I mean, god, you'd think it was rocket science or something!
-fred
Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.