FLAC Joins The Xiph Family
Ancipital writes "Xiph.org (of Ogg Vorbis fame) have today announced that the FLAC (Free Lossless Audio Codec) project has joined the Xiph rebel alliance. The full story and press release can be found at the Xiph site. (FLAC is nice, because it gives you pristine lossless audio at roughtly 50% size reduction over uncompressed WAVs- you can store them on your hard drive/wherever and then transcode down to a lossy format when you need portability, yum!)"
And why is this any better (or even interesting) compared to Shorten (.shn) which has existed for years?
I don't find lossless audio / video compression terribly impressive... lossless compression has been studied and worked on for decades.
Insurance or open source?
Does it work better than ZIP???
Once again, Slashdot is posting wild claims about a new compression scheme. This one claims to have a 50% compression ratio while losing no data. Earth to Slashdot, that's not possible! Either you are getting rid of data (and a filesize that's half the original indicates they are) or you aren't. There's no such thing as "lossless compression" by definition.
of html.
FLAC about MP3!
How to Download YouTube Videos
I don't see why FLAC is so cool, there has been lossless Audio Compression for some time now, in the form of Monkeys Audio Codec or MAC, it's been around for at least 2 years now, and gets the same compression ratio FLAC claims. Even better is that there is a winamp plugin to play them already. Though I will give FLAC credit, because it just sounds cool
Bork Bork Bork!!
What about that? What about adaptive delta coding, is that the same thing as ADPCM? I just know that ADPCM is already supported in WAV files and has been for years. Maybe it has strings attached though.
Even gzip might be able to achieve 50% compression, right? I wonder why they can't achieve higher ratios?
It's great to see something available for those of us who want to record our favorite music to hard drive, but don't want the low quality and artifacts of lossy formats like mp3 and ogg. Even 256kbps mp3s are noticeably worse than CDs when listening to certain types of music.
I'm also a little curious as to why they've gone and reproduced all of this work rather than just using gzip or bzip2, which frequently achieve compression rates of 50% or more.
Either way, I urge all of you to consider lossless compression of music data. Lossy compression is a great burden for one person to bear, and there are other options.
Boromir, son of Faramir, King of Gondor and Minas Tirith
So the point isn't that FLAC is new... the point is that FLAC is OSS, and has joined forces with an organization backing such efforts. The SHN codec is not OSS.
If you take your LPs out of the cardboard sleeves you easily save over 50% space.
Trolling is a art,
FLAC? Xiph? Ogg Vorbis? Narf!
Try saying that out loud, see what your co-workers do.
I think your equating two different things. The "rebel alliance" comment doesn't have to be construed as a statement of superiority. It could easily be seen as them fighting the reigning superpower, M$, which they are. There is a big difference between striving, as the underdog, to put out a decent product and holding ignorant, grade school attitudes. You seem pretty quick to get huffy about the post, why the resentment?
-or so you'd think
The upcoming version of AlsaPlayer will support FLAC streaming over HTTP, and even seeking if you use HTTP 1.1. We should see FLAC streaming support in Icecast soon, at least I hope so.
-adnans (*plug*!)
"In short: just say NO TO DRUGS, and maybe you won't end up like the Hurd people." --Linus Torvalds
This is good news in a nebulous sense, but what about actually getting 3rd party adoption? How many players out there support FLAC? Or even Ogg Vorbis?
I've been contemplating a digital audio player like the Turtle Beach AudioTron for awhile now, and while the AT has better support for a variety of formats than most, it's missing both FLAC and OGG (and the developers have stated it's not coming due to lack of CPU power).
I'd love to encode all my CDs onto a central server and have several units around the house playing from that. But I'd rather not rip around 1000 CDs more than once. And it's still not cost effective to just store them as WAVs - using FLAC would double the capacity.
Yeah, I know... Samba can translate files on the fly now, but that requires a good bit of horsepower. The Celeron 300A in the server just isn't going to be capable of transcoding FLAC->anything in real time, much less do it for 2 or 3 streams at once.
I guess the question is, what's holding back consumer electronics companies from implementing OGG and FLAC support? Is it technical, financial, or what? And what can Xiph do to help them in this?
They are working on a lossless codec. This means that your sound quality would be exactly the same as the source, whether it be CD, DVD, or something else. MP3, Ogg, and all the other commonly used codecs are lossy, which means that they are of lower quality then the source file.
Whether or not the world needs another lossless codec is another matter entirely, but this project has a different goal then producing yet another MP3 competitor.
(Yes, that may have been a troll, but someone reading this probably managed to get confused in one way or another)
I just started archiving my CD collection (350+ discs) using FLAC. I tested a number of codecs, including LAME, Ogg Vorbis, and FLAC.
In the end, I settled on FLAC for four reasons:
* It's completely lossless.
* Gapless playback
* If you save the TOC from the source CD, you can burn an exact copy, pregaps and all, from your FLACs.
* I can reencode to Ogg, MP3 or whatever lossy format I want at any time. Nice for when I want to make a MP3 disc to play on my MP3 walkman, and I don't lose quality like I would if my source material was in Ogg.
Hopefully, we'll see wider support for FLAC come from this partnership. Not too many players support FLAC, though the FLAC developers have made plugins for XMMS and WinAmp.
Oh, and some people have been tossing the '50% compression' thing around already. It really depends on the music. I have managed up to 70% compression on some sparse music, (mainly ambient and classical) while my death metal and noise encoded around 30%. It seems that the more dense the source is, the less it compresses.
So what sort of compression algorithm does FLAC use?
.OGG, and appending that to the .OGG. Then if you can just strip off the added info when you make copies to restricted-space devices. The only question is whether this can be done with a competitive compression ratio.
One idea that would be really cool is if they could get acheive lossless compression by noting the differences between the original and the
Is lossless really a good idea?
Why can't we develop a codec which is "almost lossless" and works well at higher bitrates? Ogg and MP3 do okay at 320kbps, but the quality increase isn't 3 times a 128kbps mp3.
A good test for encoding quality is to encode new age (enya, enigma) or classical music as they tend to have many subtle, yet distinct instrumental sounds (bells, small symbols, synthesized effects) in the background. Listen to them using a pair of good quality headphones (seinheisser or bose) - you're not listening for artifacts (at high bitrates, you should't find any) - instead listen for the subtle background sounds. THEN, make the decision if lossless really is better. Personally, I prefer 192kbps OGG for my encoding, as it provides reasonably good quality without sucking up my entire drive.
-- If you try to fail and succeed, which have you done? - Uli's moose
well, my phatbox already plays both flac and ogg (in my car). if they're merging, does this mean i'm losing a media format?
ADPCM is lossy, so I'm not sure what you're trying to get at...
I can assure you that FLAC and codecs specifically modelled around sound compression will -- in general -- outdo something general like lz77+huffman.
Belief is the currency of delusion.
... the point is that FLAC is OSS ...
When I first read this headline I was wondering how this could be better then zip / rar / bz2 / etc. Then I remembered that you still need a WAV file (or whatever) to compress first. WAV isn't fully OSS, but FLAC *is*. So this is a good idea: a fully OSS sound format for lossless audio.
Xiph is just a host for the projects, akin to SourceForge. You can have three different competing Gnutella clients on SF, but they're independent of each other.
I don't know if Xiph provides anything more than www and IRC, though.
What's this Submit thingy do?
With all of the damn codecs in the world, one that only provides 50% saving is just Not Ready for Prime Time. Somehow, with all of the repetition in music, there has GOT to be a way to do better than that.
I'm sure everyone here would welcome any successes you have in researching this.
Storing in one format and then have to convert to another all of the time just not an option. Maybe when memory is a dollar a gigabyte (and I mean RAM!), them this might be a choice - but I am hoping for something better.
Maybe you're missing the point. FLAC is a replacement for WAV. That is, a lossless way to store sound, and still be able to use it, via. direct playability in XMMS and WinAmp.
If you want small, then use mp3 or ogg, which is for small but lossy files. If, after encoding to mp3, you still keep your old WAV files, in order to be able to re-encode into any other lossy format, then FLAC is useful to convert your WAV collection to -- not as a replacement for mp3 or ogg.
The price of freedom is eternal litigation.
the audiotron is supported
This is great... but how am I going to encode/decode this stuff without using something with a worse UI than Winamp or WMP? Infact, are there any plugins for these yet?
AFLAC!
(somebody shoot that duck, please!)
- Mike
This is why (or at least a major reason) lossless audio compression is so hard. There just isn't enough repitition at the sample level to produce a dictionary for your traditional compression algorithms (gzip, bzip2 etc)
Now, if music was as repetative as you thought, we'd be able to compress 90% of the music released in the last 5-10 years to about 1kbyte ;)
Bill - aka taniwha
--
Leave others their otherness. -- Aratak
With all the news on Microsoft's "new" TabletPC (old idea), I am quite intrigued that Microsoft doesn't have any innovative technology to bundle with their TabletPC; Xiph.org has it! The Opensource "revolution" is crumbling many barriers, including the proprietary ones put up just as a "distraction" (yes, inter-operability with Microsoft's proprietary software is a distraction from good programmers to design and implement better software and standards).
Come to think of it, Microsoft has nothing innovative in the audio and video world. Their AVI format, its many subspecies (wsf, wmf, wma, etc), and the general proliferation thereof are a justified (and quite notable) example of how media standards is not as crucial element in a company's survival. Bill Gates (yes his statment still stands as being verry impressive and of his accurate observation) generally stated that Microsoft's goal is to extend itself to its competitors by ussurping them to use Microsoft software. I just saw a black cat, the same one, walk by twice. XIPH has technology that Microsoft wants; loss-less audio. We know S3's S3TC is a loss-less standard of computer graphics and it is the only standing technology that is keep the DRI project from being able to objectionably compete as an opensource platform. So now, where does Microsoft think its going today? Microsoft has no software forcing anyone to use it now; the better of the software is opensourced and freely available.
In the immortal words of Nelson... "Hah ha!"
But I'm sure you already Gnu that.
Everyone on Hydrogen Audio disagrees with you. Do NOT link to r3mix.net - that site is notorious for its blatantly false information and crappy comparisons. Read the MP3 forums at Hydrogen Audio and becomre more enlightened.
________
Entranced by anime since late summer 2001 and loving it ^_^
On top of this, you are still limited by the response of the equipment you are playing it on. Maybe this would help a little if you had an optical connection to a good amp, but computer speakers will provide more interference than compression any ol day.
People who think they know everything really piss off those of us that actually do.
Just curious. How many gigs did you need to store your 325 music CDs in FLAC files? ;)
(I mean 'gigs' as in Gigabytes, not the head-banging kind
I am actually more than curious, I am very interested to know. I have a 500+ CD collection that I have never ripped. I think it's time to begin backup-ing everything digitally, but I can't decide between mp3 and ogg (and I don't want to rip more than once either). So FLAC looks like the right thing for me. Just wondering about the size of files.
decoding flac requires next to nothing in terms of cpu
To add this this...using an extremely simplified example but:
ABABABABCDCDCDCDGHGHGH (22 chars)
4AB4CD4GH (9 chars)
The second line is a different representation of the first, but the same data can be extrapolated. Compression works in a similar fashion, finding patterns and reducing them.
You can get the first sample from the second, and have the same data. Visibly, data is less, but there is no real loss, only a change in representation that gives a smaller filesize
I pretty much know how lossy compressions work and how gzip/zip/etc work, but what does this do (that must be specific to audio) that zip doesn't?
I doubt it. There is repitition to YOU, but digitally, it's different. THis isn't about "no detectable loss in the waveform".. it's about perfect reproduction of a digital stream.
You could compress any data you want with flac, and get the original back out of it... like zip.
This is a way to store an original, full quality recording without using the same space as the original.. NOT a replacement for lossy high compression codecs.
I ripped my CD collection to FLAC on my PC hard drive. It's like having a CD jukebox that remembers my playlists (WinAmp). I emailed the main developer and he wrote me right back -- nice guy. Thank him (or contribute code or $) if you use FLAC.
G
What the hell is going on? Is this some sort of ploy to discourage trolls or something?
Are subscribed people gonna get far better response times?
Timeout after timeout.
Just because you don't have a use for it doesn't mean it's useless!
There is a real market for such a codec in the professional audio industry - have you any idea how much space backing up a 48-track studio recording takes, especially now the industry is moving towards 96Khz/24bit recording?
Respected (at least until Apple bought them!) music software giant Emagic will sell you a program called ZAP which make about a 35% space saving and costs about $100, so free software that beats that is definitely good news for some people.
A pizza of radius z and thickness a has a volume of pi z z a
Does anyone know if there is any way to edit FLAC files at the commandline? Like tell it to output a region from a starting time to an ending time to another file?
Editting 30-minute audio files on Linux is quite slow going using the GUI programs. The best I've yet found is GLAME, which at least lets me select a region then resize the region to get things right, but it takes an age. It would be much quicker to pinpoint the start and end points by listening in xmms, then use a commandline.
Somehow, with all of the repetition in music, there has GOT to be a way to do better than that.
The problem comes with the word "lossless".
Music does indeed have a *lot* of repetition, at a high level. If you look at an audio waveform, you can see very regular-looking patterns in the data, that change every now and then but can go on for thousands of samples with only slight variation. At a low level, however, music has a *huge* amount of noise (not noise as in clicks and artifacts, mind you, noise as in stronly leptokurtic Gaussian deviations from what the waveform "should" look like), and even extremely regular plosives just destroy any sort of adaptive prediction-based encoding. For reference, "huge" means on the order of 5 to 6 bits out of 16 (even local nonlinear methods give a RMS error of at best 40ish, but getting that low means storing a lot of parameters of the prediction model, RBF centers and weights as an example).
If you want and extremely high level of compression that you can *almost* call lossless, use FLAC (or Shorten, or Monkey's, or whatever) *after* running your sound through a trajectory-based nonlinear noise reduction filter. You'll see the compression go from 50% to 25% or better (for reference, "archive quality" VBR OGG only gets down to 20-25%). But, you can't *truly* call that lossless anymore, because even though you might not consider the "noise" as part of the music, people *can* tell the difference and usually prefer the version with noise (and, as I mentioned, such a filter blunts plosives, which *should* stay in the music, so you'd need to detect those and add them back in to avoid a noticeable degredation of quality).
Trust me, lossless audio compression does *not* count as a "toy" problem, nor one that people have already "solved" optimally (for example, just about every well-understood time series prediction/analysis technique out there depends on a property called "stationarity", which music very strongly lacks... You can still use such methods, but they give suboptimal results in the best case, and exhibit serious instability in the worst cases). For another problem, *almost all* research on time series analysis has focused on out-of-series error and stability. This lets you do things like predict stock values and the weather. It doesn't, however, necessarily give the best *in-series* error, which matters in an application like audio compression, since you already know the entire extent of the data you need to predict (postdict?). In AI, this has a close analogy to the idea of "overfitting" a neural net - if you train a neural net too long, it learns too many subtleties of the training data and loses its generalization power. Except, in audio compression, you don't *care* about the generalization power, you care about it learning as much about the training data as possible.
What I think he means is about non-musician types.
I currently have my CD collection ripped/converted to MP3 (r3mix settings. I know, even those aren't the greatest anymore.) There currently is no real justification for me to re-encode all my CD's in FLAC. Maybe someday I will. But for now I'm happy with my CDParanoia/LAME -r3mix/winamp combination. The files are reasonably small, sound quality is close to excellent.
But for Musicians and people who move/remix music a lot, hell FLAC does look like the way to go.
Sean D.
"Hmm. I am to metaphor cheese as metaphor cheese is to transitive verb crackers!"
A 3rd party Linux spectrum analysis tool called baudline supports the automatic loading of both FLAC and Ogg Vorbis audio files. You can use it for visualizing the damage a lossless codec does among other things.
PS: This post is a user interface question. I understand the entropy stuff :)
No, native FLAC will live on; teaming with Xiph will mean better integration with Ogg tools in general.
FLAC - Free Lossless Audio Codec
"FLAC Joins The Xiph Family"
Finally we can get some reasonable supplemental health care. I love those duck commercials!
Can we generate a a filter perhaps like the bayenisian filter from the spam work which discards all the music you don't like? Look at compression, ID3 or other format based headers to determine whether or not your radio station is trying to feed you junk music! If you had a multicard radio system which did delay play (a la video recorder) with this sort of a "spam" filter it would be very cool! You could listen to new music (or football or news), browse your radio archive (a wee lcd will do). Could we build properties which would help classify otherwise indeterminate audio? I think we could but I'm not sure. Here's one idea, speach recogintion software could be trained, by as many people as are willing collectively, to recognise and understand radio personalities (including duplicitous advertisers). Now we could even look at extending it out (and perhaps we should) into all media, including video and web content! Each have their headers and content. Each must leave encoding properties which can provide clues, each must have properties of it's raw content which can be examined. I think we are looking at some serious CPU power to do this as I think about it, but perhaps digital radio broadcasting will expedite matters.
Never underestimate the dark side of the Source
People should check out: http://wiki.etree.org, an online network for people interested in live jam band music. They are trying to move towards using all FLAC, or at least mostly. Also check out the etree audio archive, they have some stuff in FLAC, although most of it's in SHN.
Is lossless really a good idea?
It depends. If you have oodles of disk space and it doesn't matter much space it takes up. But if you have a small memory area (or you have size/power constraints) you may be able to put in a microdrive or whatever. There's also bandwdith to worry about.
Lossy allows you to put the audio in a areas where it wouldn't normally go.
What the original poster was suggesting would be to encode the file losslessly, and then FLAC encode the residual produced by subtracting the encoded waveform from the unencoded one. This is a very cool idea, but it won't work. The residual signal is going to be very noise-like, so it would be resistant to FLAC compression (FLAC uses a "verbatim" mode when it sees noise -- the verbatim mode does no compression at all). It isn't that you couldn't do it, but I very highly doubt you'd gain anything by it.
Right tools for the right job.
CD Audio comes in stereo. That means that there are two extremely similar mono streams (Left/Right). Doing a Huff style tree on the difference between the two streams looks to be what FLAC is doing.
Pretty simple, pretty smart, pretty effective.
Monkeys audio seems to be more aggerssive with it's compression. So much so that it breaks streambility and a couple other nifty things (correct me if I am wrong). While either format is fine for archiving audio, I beleive that FLAC is more usuable in that you can build it into DAW's and such (Digital Audio Workstations).
I sincerely hope it works out for them.
check it out to see how other compressors are doing (FLAC is not included, though).
If you want to see how FLAC performs vs. Shorten, Monkey's Audio Codec, and other popular lossless waveform codecs, read this page.
Will I retire or break 10K?
Windows is likely to disappear from the face of the earth sometime in 2004
MS-DOS lived from 1981 to 2002. It is no longer maintained; instead, a GPL clone is maintained by the community.
The first good version of Microsoft Windows (Windows 3.x) appeared around 1990. I don't see the product surviving past 2020, let alone the 2080's when the copyrights begin to expire.
Will I retire or break 10K?
Seamless play. Mp3 by its very nature will cause a pop or blip or something if you rip, say two consecutive tracks from a continuous mix into two files, and then encode them.
MP3 and Ogg Vorbis are overlapping-transform codecs, and overlapping-transform codecs need a short period of silence before and after the signal. The MP3 specification doesn't specify what to do with the silence.
It might be possible to get it right if you engineered your whole ripping process around it (rip an extra mp3 frame of overlap on each file and then throw out that frame once you've done the encoding?) but I don't think anyone's done that.
Xiph.org has done something like that. Vorbis always encodes exactly n samples of silence before and after the audio and then discards them on playback, producing a gapless result. FLAC has been gapless from the start, as each block of samples is independently coded. Thus, Ogg audio as we know it is gapless.
Will I retire or break 10K?
I went and looked it up, and it turns out "plosive" is a real word. Now we know what "explosives" used to be.
did i read somebody saying there was a flac plugin for winamp? i didn't see it on their site. please to edumacate me. thanks in advance.
disponibile
There's enough proof that many things which is said at r3mix site is false if you look for it
Not everybody reading your comment is an expert at forming search engine queries. Please back up your assertions with URLs.
Will I retire or break 10K?
Why does it matter if you have a lossless compression in the digital domain? You already tossed tons of the data out the window in the A/D. Thats one of the big reasons to go digital, you can throw away data that you dont think you need. Mp3 does the same as the CD format. CD's say "we only need 20-20Khz and about 16bit dynamics" Thats what the human ear and our hifi's can handle. The mp3/ogg/MD formats do the same, only in a smarter way. Sod CD's, DAT's and all other crap formats! I sample in 48bit/192kHz! Thats what I will need when I get my new ear implants back from the shop!
Conversion between lossy codecs is meaningless
this is simply NOT TRUE. I convert between lossy formats all the time. I like to listen to 320kbps MP3 at work, but have trouble fitting them on floppies, so I encode them at 64kbps and then when I get to work, I RE-ENCODE them to 320 kbps. It's a brilliant trick, and I'm suprosed more people don't do it. I must say, however, I expected the sound quality of 320 kbps mp3 to be better than it is...
-RAEJIN
even theoretically perfect equipment will not reveal differences your ears aren't capable of perceiving.
Your ears are not my ears, and my ears are not CmdrTaco's ears, and CmdrTaco's ears are not Trent Reznor's ears, and Trent Reznor's ears are not Britney Spears's producer's ears, etc. Different ears hear different artifacts. Lossless audio coding, which I define as audio coding where coding noise is smaller than the room's background noise, is the only way to please every ear now known or hereinafter built.
Will I retire or break 10K?
One example? You can compress some of the most beautiful images in the world in a few lines of code and some parameters.. It's called a fractal. I don't have to send you a PNG; I give you the parameters, and you generate it, given the 'specialized compression algorithm'..
Generic fractal compression works only with fractals created by hand. It cannot compress a scene captured with a camera.
So Barnsley came up with a special case of fractal compression called the fractal transform. Guess what: It's 1. patented with no available royalty-free license, and 2. not as efficient as JPEG 2000.
Will I retire or break 10K?
Actually 2:1 is a pretty typical compression ratio for all kinds of digitized media. Still images, audio, you name it. Video can get a little bit better, because of interframe correlation.
But for any given encoder, there is always at least one source that will result in output at least one bit more than the input.
Any given content will have a Shannon Limit, which is the maximum theoretical compressibility. The more entropy/randomness in the content, the higher the Shannon Limit will be. A completly random series of numbers will have a a Shannon Limit of the size of the file - it's impossible to compress*.
*and yes, it's cheating to know what the random number algorithm is and working back to the seed number. When I say "truly random" it means "truly random."
My video compression blog
>I'm sure everyone here would welcome any successes you have in researching this.
Oh, so no one has the right to criticized the Tower of Babel unless she has invented her own superior language? Forgive me for having an opinion!
>Maybe you're missing the point.
I think not. I never said that FLAC was to replace MP3 or OGG or whatever. You read that into my word. It is just a 50% decrease over WAV is not enough to trouble switching to FLAC and re-encoded all of my WAV files to FLAC. Or adding to mountain of codecs IN MY HOME. I don't care what codecs you use - knock yourself out. Just don't lay your bum trip on me.
Now tell me what FLAC has that lzip hasn't! I constantly compress my CD rips down to a few MB's. You can too!
Some impressive stuff from the FAQ that made me leave that Monkey-compression-thingy once and for all:
"We're talking about a constant-time algorithm that can reduce a file down to 0% of its original size. What's not to like?"
---
"You will most likely experience a feeling of euphoria or lightheadedness as you watch your free disk space cascade upwards to 100%."
---
Are there any drawbacks?
"Not that we know of. Occasionally, in the pre-1.0 days, someone would compress a file down to 0K and it would be lost for good. But that has been happening less and less frequently, and these days it has been a long time since we received any complaints from the people who reported this originally."
---
I'm especially impressed by their complex PLACeBO and Lessiss-Moore algorithms.
And don't forget to read their Free-Object Oriented License (or simply "FOO"):
Beware: In C++, your friends can see your privates!
Omigawd, have got some ultra-sentisive moderaters here or what. Just because someone dares to have an opinion that you don't share, you mod her as flamebait?
I think you prissy-butts need an true example of what REAL flamebait is...
You FLAC whores are a bunch of brain-dead motherlovers who vote Republican!
You single-neuron Mormons needs to get a new wife to add to your collection, one with a brain!
You holey-than-WAV pussy-cats are in a terrible need of a good cleansing douches!
How THAT is flamebait.
And for the sake of Richard-[expleative deleted]-Nixon, do NOT mod as funny. Don't make me come over there!
It's obvious. They just need to set up some licensing with those insurance people, then start running commercials with a talking duck.
Instant overnight marketing sensation!
The Humblest Mollusk on the Net
Start by converting stereo to A+B and A-B form. This is lossless, but the A-B track often has less variation than the A+B track; anything that's on both channels doesn't affect the A-B track much.
Then convert those two tracks to deltas from the previous sample. This reduces small changes to small numbers, which compress well in later steps. When the source material doesn't have high frequencies, you'll have runs of similar numbers.
Then reorder the bytes so that samples are sequential, not interleaved. That way, runs of similar deltas are sequential.
Then run gzip, which is very good at compressing runs of similar bit sequences.
This is completely reversible. Try it and see how well it compresses. It should do especially well on instrumental classical music.
I am now certain that my profession is entirely populated by aliens.
Thou hast damnable iteration, and art indeed able to corrupt a saint - Henry IV, Act I scene II
Oh, so no one has the right to criticized the Tower of Babel unless she has invented her own superior language?
I didn't mean any offense. But I perceive your remark as the typical slashdot complain about something, but do nothing. FLAC's lossless compression might be just about as good as it gets.
It is just a 50% decrease over WAV is not enough to trouble switching to FLAC and re-encoded all of my WAV files to FLAC. Or adding to mountain of codecs IN MY HOME. I don't care what codecs you use - knock yourself out. Just don't lay your bum trip on me.
This depends, perhaps on two things: (1) how large your collection is, and (2) how easily you can automate the conversion.
I actually prefer my software (and hardware devices) to have support for as many formats as possible (except WMA), to give me greatest compatibility. (Not having WMA is my choice.) I still might only keep my files encoded in a (very) limited number of formats.
The price of freedom is eternal litigation.
Except that they go even further than your naive scheme, and use a predictor to get even smaller deltas than your scheme (e.g., assume waveform is locally quadratic/cubic/quartic then extrapolate the next sample). A signal can be varying rapidly and yet still be highly predictable. Your simplistic scheme wouldn't handle it.
Then they use Rice-Golomb coding to encode the deltas. This does FAR better than gzip ever could, because it is designed SPECIFICALLY to handle the geometric distribution of the deltas, whereas gzip is a generic dictionary algorithm.
I really doubt you've even tried what you are suggesting. You're on the right track, but the FLAC team beat you to the punch. Sorry.
Microsoft Windows Media 9 is an audio format that was created in light of the FLAC. Microsoft spotted FLAC and mimicked it to the point of near legal battle...
Umm, you try it. Presumably they've spent a lot of time on designing a format. You should take a little bit of effort before claiming you can do much better, especially since verifying the compression of such a simple format should be easy. Making the claim without even taking that much effort is insulting.
Besides, FLAC has important features your format does not. In particular, FLAC is seekable. As anyone who has tried to quickly extract a single file from a large .tar.gz knows, gzip is not.
try zip
zip?
Most people don't use OSS because it is open, they use it because it is better. The problem with FLAC is that shorten is established as the standard and there are shorten encoders/decoders available at no cost. The only way FLAC is going to be able to thrive is if it does something better. I was seriously considering moving my 500 GB SHN collection to FLAC, but after doing a few test encodes, I concluded that it wasn't worth the hassle. If FLAC were to give me 75% compression ratio that would free up 125 GB for me and would definitely be worth the hassle. But as it stands now, I'm not going to spend a few days converting my SHN collection just for the sake of it using an open file format and this is coming from someone who uses OSS for just about everything (except Photoshop and Sound Forge) .
Quick point of note: FLAC has been around for a couple of years - it is far from new.
bzip2 can compress about 30% of .wav files in my tests with 10 classical CD.
And by GNU no matter!
Its called gzip. Try it yourself and see the results!
gzip -c9 audiofile.wav > audiofile.gz
What signature defines me as a person?
Microsoft is not the "reigning superpower" in lossless audio codecs; what the fuck are you smoking? In fact, Microsoft is not the "reigning superpower" in ANY widely distributed audio format, lossless or not. Stop the anti-Microsoft rhetoric, please.
We wave the flag of freedom as we conquer and invade.
Thanks. Bookmarked. Now we can put --r3mix to rest in favor of --alt-preset standard -Y
A lossless coding scheme is one which can be reversed to obtain a bit-identical version of the original.
The definition of "lossless" you refer to is a valid definition of "reversible coding of digital signals", and this is what is generally meant by "lossless" in digital audio coding.
However, the "original" audio signal is not bits. The "original" is vibrations in air, which become bits through the recording process. A signal recorded with 4 bits per sample (such as the sampled recordings used by some video game consoles' sound chips) can be represented with few bits and often coded reversibly. But it'll still sound like crap.
That's why I define "lossless" in an end-to-end fashion, implying that 1. the recorded signal is represented with sufficient SNR to put its noise floor below the quietest detectable sound across the entire frequency spectrum of interest, and 2. the recorded signal is reversibly encoded.
Will I retire or break 10K?
I believe FLAC uses rice coding too??? Anyhow, all lossless compressors I've seen never manage to get to 50% with most files.. it's usually more like 60-70%
Who cares who came first? He said Microsoft didn't have a lossless codec, and I corrected him. Please tell me English is a second language for you. And what "near legal battle"?
This sig intentionally left blank.
Keith, you are obviously trolling for dollars today, but you have merits I recognize. From the history of Microsoft, I present:
Microsoft has innovated: NOTHING.
Microsoft has developed originaly in-house products: 0.
Microsoft has purchased other business models, patents, and software: ALL
Microsoft is communism: everyone is forced to use their products and everyone monopolizes the resources so only support is available to Microsoft products and out of shear anti-competitive status other software companies are slandered away from the market by Microsoft-inspired retailers that perpetuate slander.
If I told someone else that your software is bad, you would be angry. The difference between everyone else and you is they are stuck on the Microsoft platform and all these uncorrected Microsoft flaws are manifesting themselves and whoever tries to disclose the flaws or speculate on the severity of the flaw are immediatly prosecuted as being a (pseudo) Computer Hacker or Cyber Terrorist or criticized on your merits as a "rogue" individual hell-bent to destroy some oblivious aspect of the free market. Did I make sense? Microsoft...there is nothing more to be said because nothing *originated* from them to begin with; they bought their technology and extended it to the point of no return to security and stability. They're just a bad pun that keeps getting construed more than the ol' Benjamin Franklin quote, "give up freedom for little security...deserve no freedom/security, etc".
Another Microsoft Worm appears. I always wonder how someone gets the NDA clearance to view Microsoft's code because that is the only way these worm-authors know how to target Microsoft's internal flaws 99% of the time. I wouldn've be surprised if Norton is in-bed with Microsoft. Norton makes a hefty ammount of money providing utilies that secure a Microsoft Operating system from design flaws: anti-virus, filesystem problems, windows registry errors, system diagnostics and recovery.
printf("And they want to replace this!\n");
printf("Aieeeeee!\n");
That seems low.
That's because you haven't thought about it very hard. Consider that each bit you strip away from a sample takes away half the dynamic range. So if you strip away 8 bits from a 16 bit sample, you are left with 1/256th of the bandwidth of the original signal, and you still want to encode in that miniscule space every little nuance of the original signal. Got more respect now?
Have you got your LWN subscription yet?
ADPCM encoding is actually quite cool, it has some advantages compared to other compression algorithms, but in the end I don't think there is so much use for it.
I once wrote a very simple ADPCM encoder which we used for the soundtrack in a computer game (Ignition, released in around '96 for PC). The advantages of that one was:
1. Compressed 16 bit audio to 4 bits, giving a compression ratio of 4:1.
2. Extrememely fast decompression, decompressing and playing actually took less CPU resources than just playing the original WAV file. This because I just needed to send each sample through two very small look-up tables (less than 1kb in total) which therefore were cached and uncached memory reads from main memory was decreased by a ratio of 4:1.
3. Very fast compression, almost as fast as decompression.
4. Very simple algorithms. Both compression and decompression algorithms were written from scratch and tweaked in less than two days, including WAV-conversion tool.
5. Good sound quality. Sure, the difference could easily be spotted by a trained ear by direct comparison with the original using good sound equipment, but there were no specific artifacts, just a feeling of a lowpass filter having been applied (which basically is what happens with ADPCM compression, it smoothes out the soundwaves a bit).
However, there is still no compelling argument for using ADPCM today except for very specific needs. Compression/decompression speed is with todays fast processors secondary to the quality/size ratio. 256 kbit/sec mp3 or Vorbis sounds definitely better than 4 bit/sample ADPCM and is notably smaller.
ln -s bzip2 gzip
...which only works under XP, not any earlier version of Windows.
D'oh!
Comment removed based on user account deletion
Ogg is the *container*, and Vorbis is the lossy audio codec designed as a free replacement for MPEG 1 Audio Layer 3 (MP3).
Ogg, the container, is also useful for other formats, as it's more of a "packet-izing" thing than a format.
I think.