Slashdot Mirror


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!)"

62 of 307 comments (clear)

  1. Re:huh? by Deagol · · Score: 4, Interesting
    FLAC isn't just free-as-in-beer. It's Free, complete with source and everything.

    I've backed-up about 325 music CDs to CD-R using FLAC. It works as advertised. If you want lossless compression, use FLAC. It even has a XMMS plugin -- I use it all the time.

  2. Re:huh? by zoid.com · · Score: 4, Insightful

    How about ID3 tags, seekability, and built in md5 verification?

  3. Re:New? by fredrikj · · Score: 3, Informative

    There is a Winamp plugin for FLAC already (it has been around since the first time FLAC was on Slashdot, too).

  4. Re:Lossless format by spaten-optimator · · Score: 2, Insightful

    Actually, there is such thing as "lossless" compression.

    For example, dictionary-style compression (what .zip uses) compresses data by developing a small dictionary of byte sequences that recur in a file, and representing those byte sequences as a single byte, thereby saving space. You develop a large enough dictionary of this type, and you're saving file space.

    Zip is living proof that lossless compression exists - you COMPRESS your text files, without LOSING any of the data in it when you DECOMPRESS.

    That's what lossless compression is.

    For more info, look into the entropy of data, which helps to determine the lossless compressability.

    An example of LOSSY compression is mp3 or JPEG, where you (usually) sacrifice some quality for increased compression. Part of what makes mp3 work so well, is that it throws out the parts of the audio signal that are out of the human range of hearing.

    --

    --

    --
    Disclaimer: The above statement probably includes half-truths, because real truth is too complicated.
  5. Missing the Point by dewboy · · Score: 5, Insightful
    I think many posters are missing the point of the article. My first reaction was also "hey, this is nothing new -- SHN (Shorten) has been around for a long time and does lossless encoding at 50% the size of WAV"... but then I actually went to the Xiph site and read their mission:

    "Xiph.Org Foundation is a non-profit corporation dedicated to protecting the foundations of Internet multimedia from control by private interests. Our purpose is to support and develop free, open protocols and software to serve the public, developer and business markets."

    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.
    1. Re:Missing the Point by Ziviyr · · Score: 2, Informative

      So the point isn't that FLAC is new.

      And I'd laugh my guts out if it were.

      FLAC isn't new.

      --

      Someone set us up the bomb, so shine we are!
  6. Yawn.. by grub · · Score: 4, Funny


    If you take your LPs out of the cardboard sleeves you easily save over 50% space.

    --
    Trolling is a art,
  7. Re:huh? by Emmettfish · · Score: 4, Informative
    Because Shorten is proprietary, that's why. Check out their license.

    Here's a little meat for you:

    2. RESTRICTIONS. Notwithstanding any provisions in this agreement to the contrary, Licensee may not (a) make, use or load into temporary memory any unapproved copies of the Licensed Materials without the appropriate license(s) for use on additional CPUs; (b) distribute the Licensed Materials; (c) modify, transmit, rent, lease or sublicense the Licensed Materials; (d) reverse-engineer, decompile or disassemble the Licensed Materials, except to the extent required to be permitted by applicable law; (e) disclose any source core or performance characteristics of the Licensed Materials to any person or entity; (f) use the Licensed Materials in a service bureau or "application service provider" environment or for the benefit of third parties; or (g) at any time do or permit to be done anything which shall adversely affect SoftSound's right, title or interest in the Licensed Materials. If the Licensed Materials are used within a country of the European Community, nothing in this Agreement shall be construed as restricting any rights available under the EC Council Directive 14 May 1991 on the legal protection of computer programs.

    Emmett Plant
    CEO, Xiph.Org Foundation

  8. huh? by bitweever · · Score: 2, Funny

    FLAC? Xiph? Ogg Vorbis? Narf!

    Try saying that out loud, see what your co-workers do.

  9. Re:Better than ZIP? by Deagol · · Score: 2, Informative
    Yes, it does.

    I wish Jeff Gilchrist would add a unix/linux section to the Archive Comparison Test (ACT) page (http://compression.ca). He does have a corpus of sound files, so check it out to see how other compressors are doing (FLAC is not included, though).

  10. Re:New? by jonathan_ingram · · Score: 4, Informative

    FLAC has been around for a very long time, as a seperate project -- FLAC 1.0 was released in June 2001, for example. The reason for this announcement is that FLAC is joining the Xiph family of completely free (no cost, no patents, no licencing restrictions) media projects. It nicely complements Vorbis, which is Xiph's lossy codec.

    You can think of the relationship between FLAC and MAC similarly to the relationship between Vorbis and MP3. It's a slightly strained analogy, but works to a first approximation.

  11. Re:Better than ZIP? by brandorf · · Score: 2, Informative

    Here is a table listing many lossless compression techniques, FLAC is there, but it version .1c might be an early alpha, ZIP RAR SHORTEN and most of the other interesting ones are represented here as well.

    --


    Bork Bork Bork!!
  12. Re:ADPCM? by jmv · · Score: 4, Informative

    ADPCM is high bit-rate but still lossy because the "difference" is not coded losslessly. As for gzip, it does not achieve 50% compression on wave files.

  13. FLAC streaming by Adnans · · Score: 4, Informative

    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
    1. Re:FLAC streaming by Jugalator · · Score: 3, Insightful

      We should see FLAC streaming support in Icecast soon, at least I hope so.

      I'm not sure your ISP hope so, though. :-)

      --
      Beware: In C++, your friends can see your privates!
  14. Great... but what about 3rd party support? by Zathrus · · Score: 3, Interesting

    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?

    1. Re:Great... but what about 3rd party support? by joe_bruin · · Score: 4, Interesting

      well, the kenwood music keg and phatnoise phatbox support both ogg vorbis and flac (in addition to mp3 and wma). flac has turned out to be the best way to keep single session recordings (ie, concert recordings) continuous without gaps on digital music players. i'm guessing we'll be seeing more firmare upgradeable devices start adding support for flac real soon now.

    2. Re:Great... but what about 3rd party support? by Josh+Coalson · · Score: 2, Interesting
      This is good news in a nebulous sense, but what about actually getting 3rd party adoption? How many players out there support FLAC?

      There's a list on the sidebar of the FLAC homepage.

      I guess the question is, what's holding back consumer electronics companies from implementing OGG and FLAC support?

      In the case of the AudioTron, they are getting the full court press from Microsoft to do WMA lossless, and knowing Microsoft this will be to the exclusion of all others. I made a good case on their mailing list that with moderate work (and I was willing to help), the AT would be able to decode FLAC natively. Their response has always been "we tried it and it's not fast enough", despite the fact that identical hardware in other devices (Rio Receiver, PhatBox) can decode FLAC fine.

      But no matter, other manufacturers are providing a choice, and the list is growing. Recently the ReQuest guys have added FLAC support to their ARQ boxes. So time will tell what consumers really want.

  15. Re:Oh, boy, yet another codec.... by wzm · · Score: 2, Funny

    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)

  16. Very very cool by Phexro · · Score: 5, Informative

    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.

    1. Re:Very very cool by Coward,+Anonymous · · Score: 2, Informative

      Like interlaced GIFs (or those weird blocky JPEGs whose correct name I don't know)

      Progressive jpegs.

  17. Algorithms? by crow · · Score: 3, Interesting

    So what sort of compression algorithm does FLAC use?

    One idea that would be really cool is if they could get acheive lossless compression by noting the differences between the original and the .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.

    1. Re:Algorithms? by pclminion · · Score: 5, Informative
      So what sort of compression algorithm does FLAC use?

      For the most part, linear prediction. This uses a linear combination of past sample values to predict the next sample value. The difference between the prediction and the actual is Golomb-Rice encoded. Golomb-Rice codes are used when the probability of an integer occurring is geometric (i.e., the value N+1 is 1/R times as likely as the value N, for some R > 1). This is a pretty good assumption for audio, since the predicted values tend to be quite close to the real ones. Some other lossy compression algorithms also use linear prediction, but they quantize the predicted values to reduce the bitrate even further. The quantization is the lossy step.

      MP3 and OGG, on the other hand, work differently. They first transform a block of audio using the MDCT, and apply a psychoacoustic model to the resulting spectral envelope. This eliminates a lot of subbands that are "inaudible." At that point the remaining subband energies are quantized and entropy-coded. To decode, the encoded energies are decoded and the spectral envelope is reconstructed, then transformed back into the time domain to become "audio" again.

      It would be a serious feat to integrate FLAC and OGG. They are totally different systems.

    2. Re:Algorithms? by Josh+Coalson · · Score: 2, Informative
      It would be a serious feat to integrate FLAC and OGG. They are totally different systems.

      Not so, they are already integrated, i.e. you can already encode to raw FLAC or Ogg FLAC with the command-line flac encoder. FLAC packets are embeddable in an Ogg container just as easily as Vorbis ones.

    3. Re:Algorithms? by Josh+Coalson · · Score: 5, Interesting
      So what sort of compression algorithm does FLAC use?

      • interchannel decorrelation: mid-side coding
      • intrachannel decorrelation: FIR linear prediction
      • entropy coding: Rice codes with a simple context mechanism

      For more info see here

      One idea that would be really cool is if they could get acheive lossless compression by noting the differences between the original and the .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.

      This has been suggested before, but would require all Vorbis decoders to decode to the exact same result, which is not practical (Vorbis decodes to float samples).

    4. Re:Algorithms? by Pathwalker · · Score: 2, Informative

      You can wrap FLAC in an OGG stream, but why would you want to?

      FLAC already has a very good wrapper. OGG is very small, and adds as little as possible to the size of the raw data making up the media stream, but some decisions were made that make OGG useless to me as a wrapper.

      As an example, how do you seek in a file?

      In FLAC's native format, you read the Metadata Block Seektable which gives you a mapping between points in time, and points in the file.
      In QuickTime, you read the Sample Table Atom which does basically the same thing.

      In OGG? It appears ( from vorbisfile.c) that you have to seek through the whole stream, reading the headers of every page to find the locations of all of the absolute granule position markers and regenerate the same information that other formats spend a few hundred bytes to store in a table.

      Needing to read the whole file before being able to seek might not seem like much, but when you are dealing with files of moderate size (6 hours or so) stored on a media where the transfer rate between the file and the player is close to the bitrate of the audio, it becomes extremely annoying.

  18. Re:New? by tuffy · · Score: 5, Informative
    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

    Near as I can tell, Monkey's Audio still doesn't work anywhere but on Windows (though support for other platforms is promised). FLAC works on Windows, MacOS9/X, Linux, BSD and even has hardware support. That single platform limitation makes Monkey's Audio difficult to justify for any serious audio preservation.

    --

    Ita erat quando hic adveni.

  19. Re:ADPCM? by jonathan_ingram · · Score: 2, Interesting

    ADPCM is not lossless. It is a non-perceptual lossy method of encoding audio. Contrast this with MP3, which is a perceptual lossy encoder, and ZIP which is a non-perceptual lossless encoder.

    'Perceptual' means that the method has some model of human hearing, which means that it can more easily discard data which the human ear can't hear.

    'Lossy' means that the encoded data is not an accurate representation of the original.

    Generally, non-perceptual lossy audio codecs represent an old generation of technology -- they take up less processing power than perceptual codecs, but cannot compress audio as efficiently as perceptual codecs.

  20. Re:finally by Echnin · · Score: 2, Interesting
    Even 256kbps mp3s are noticeably worse than CDs when listening to certain types of music.

    300 "audiophiles" disagree with you.

    I don't see a need for lossless compression. LAME MP3 with the r3mix preset sounds perfect to me, and anyone who thinks that they can tell a difference between that and CD audio is only saying that to impress people.

    --
    Lalala
  21. Re:Oh, boy, yet another codec.... by Anonym0us+Cow+Herd · · Score: 4, Informative

    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.
  22. Re:huh? by Inf0phreak · · Score: 5, Informative

    The FLAC format has metadata support, and since you now can put FLAC in Ogg containers, it can also use Ogg tag support which is truly great.

    In short: id3 (especially id3v2) sucks and should just DIE as soon as possible. Foobar 2000 even goes as far as to completely forgo id3v2 support on ideological reasons. Honestly, I think they are on to something.

    --
    ________
    Entranced by anime since late summer 2001 and loving it ^_^
  23. Re:Oh, boy, yet another codec.... by Bill+Currie · · Score: 4, Informative
    Actually, while it might sound repetative, unless every note is carefully constructed, it's anything but repetative. Even when sampling a pure sine wave it's very rare for the sample points to repeat due to the sample rate generally not being an exact multiple of the sampled wave. Now throw in some traditional instruments (eg, violin, saxophone, piano...) and humans, and things like the exact timing of notes will fluctate wildly at the sample level let alone the fact that many instruments operate based on filtering white (or more likely pink) noise.

    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

  24. It's a go! by AnonymousCowheard · · Score: 2, Interesting


    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.
    1. Re:It's a go! by Keith+Russell · · Score: 2, Informative
      XIPH has technology that Microsoft wants; loss-less audio.

      Ya know, up to that point, you had a good Anything But Microsoft rant going there. But you missed something. Microsoft Windows Media 9 already has a lossless codec.

      --
      This sig intentionally left blank.
  25. Please - no r3mix.net links by Inf0phreak · · Score: 4, Interesting

    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 ^_^
    1. Re:Please - no r3mix.net links by shepd · · Score: 2, Informative

      I'm reading results from searches of that site for r3mix and up to now all I've come across is people who say the author of of the R3Mix site doesn't know what he is talking about.

      No proof for this criticism is given (AFAIK -- but I've only read about 4 or 5 threads on it) so it seems to be to be more of a forum vs. forum flamewar. Sort of like K5 is better than Slashdot and vice versa. Maybe what we all need is for SNUH to get involved and fix the attitudes of both groups. There's no way I will register at boards with those attitudes, though.

      I'd love for anyone to point out what is incorrect on the R3Mix site. I'm prepared to defend CDs over vinyl, though, so it had better be better than that.

      99% of the bitching seems to be that the r3mix setting doesn't produce the very best audio. Well, of course it doesn't! It's promoted as the best acoustical compromise between space and quality. Even if it isn't the best, the fact still remains that 256 & 320 kbits MP3 are unintelligable to the original by normal human ears, which is what the original poster wants people to know. I suppose if you have abnormal hearing you might tell the difference, you know, like you're a Ferrengi or something.

      --
      If you could be told what you can see or read, then it follows that you could be told what to say or think - BoC
    2. Re:Please - no r3mix.net links by CaseyB · · Score: 4, Funny
      Everyone on [my favorite site] disagrees with you. Do NOT link to [this other site] - that site is [bad]. Read [my favorite site] and becomre more enlightened.

      Remember kids, you're only allowed to have ONE source of information! You must choose a site, and take everything stated there as the word of God!

    3. Re:Please - no r3mix.net links by nelsonal · · Score: 3, Funny

      Dang I accidentally picked /. before I realized you only get one, and now I think that SOVIET RUSSIA is filled with either Beowulf Clusters or Natalie Portman and hot grits depending on who you ask.

      --
      Degaussing scares the bad magnetism out of the monitor and fills it with good karma.
  26. Lossless compression is a joke by briancnorton · · Score: 2, Interesting
    High quality music recording is great and all, but what's the point? Unless you are recording in it straight from the source, you are still limited by the frequency range and sampling rate of the delivery media. (i.e. a CD) I seriously challenge ANYBODY, even those with true HI-FI equipment to tell me the difference between a CD and a good quality MP3Pro.

    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.

    1. Re:Lossless compression is a joke by KjetilK · · Score: 4, Insightful
      I'm totally without a clue on this, really, but I can think of one obvious use: You want to back up your music collection but use less space to back it up.

      If the CD is lost or destroyed by scratches (many of mine are allready), you still have the original recording that you can compress with lossy compression of the day for your daily use. Conversion between lossy codecs is meaningless, but compressing from a lossless format to a lossy format is OK.

      So, if Ogg Vorbis 2.0 is better than 1.0, you can make 2.0 files from your lossless compressed files.

      --
      Employee of Inrupt, Project Release Manager and Community Manager for Solid
    2. Re:Lossless compression is a joke by Inf0phreak · · Score: 3, Informative
      > No matter what the sample rate of whatever your source mp3 will cut it off at 16khz

      Not true! While this is true for the Xing encoder which a lot of bad CD-ripper applications use, LAME or the Fraunhofer mp3 encoders do not mangle the sound as much. Try and get a good compile of LAME from HA and do a "lame --alt-preset standard file.wav" and open the resulting wave file in Cool Edit and have it show you the frequency stats of the created mp3. You shouldn't use this for a comparison of sound quality though - your ears are still the only useful tool for that, but what it will show you that you are wrong.

      You might have heard of the Nyquist theorem before, which states that when storing audio data using PCM (Pulse Code Modulation) the highest frequency you can have it half the samplerate. Thus there are no frequencies higher than 22.05kHz on a CD (because their samplerate is 44.1kHz).

      --
      ________
      Entranced by anime since late summer 2001 and loving it ^_^
  27. Sie of FLAC files? by Delirium+Tremens · · Score: 3, Interesting

    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.

    1. Re:Sie of FLAC files? by Garion911 · · Score: 3, Informative

      Simple..

      If it takes 650Megs to store 74 minutes of music, at 50%, it should only take 325Megs.

      325M x 325CD's = 105625Megs, or 105.625Gigs

      This of course is an approximation, since sometimes the compression is better/worse..

      --
      Slashdot is like Playboy: I read it for the articles
    2. Re:Sie of FLAC files? by Deagol · · Score: 3, Informative
      Well, I don't know the exact GB count. However, they took 165 650MB CD-Rs to back up. That was using a home-brew "optimal" pack using entire albums (I didn't want to fish out 12 CDs to rebuild an entire album). I probably could have shaved off a half-dozen CD-Rs by packing them using individual songs.

      Calculated, 650 MB per CD times 165 CDs is about 107 GB.

      As soon as I can scrape the cash together, I'm gonna buy a large hard drive and keep them on-line for XMMS. Right now I have them compressed to 256MB MP3s with LAME.

  28. Re:Is this REALLY a solution? by jankyPhil · · Score: 2, Insightful

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

    That's fine. But lossless compression is important for people that trade and distribute music. Having an *exact* copy is what we want and lossless compression schemes do that for us. In the trading circles that I'm a part of, mp3 and ogg are the product of the devil. :)

  29. Re:Is this REALLY a solution? by LinuxGeek8 · · Score: 3, Insightful

    > Is lossless really a good idea?

    Yes, it is.
    There are many musicians who want portability. Try encoding some wav to mp3/ogg at home, decoding it in the studio, mix it, encode it again to mp3/ogg and go home to your homestudio.
    Then try that 20 times, and see what remains of the soundquality.
    Then sure, you can also carry wavfiles if it matters that much to you, but 50% savings can be a lot.

    --
    Well, don't worry about that. We can get you back before you leave. (Dr. Who)
  30. Re:Is this REALLY a solution? by mindstrm · · Score: 4, Informative

    Speaking of quality increase isn't really the right way to look at it. It's the decrease from the original that is important.

    Most poeple, experts included, cannot tell the difference between a 320kbps mp3 and an original 44.1khz pcm sample. I mean, the vast, huge majority of experts simply cannot tell the difference.

    But there IS a difference. We know there is a difference because it's lossy compression. We know that when we take an original CD and use flac on it, we end up with an exact copy of the original. That's why lossy compression exists.

    If you are simply listening to something on the headphone jack of your computer with medium or low quality headphone (like Bose or most of the Sennheiser line (medium) or the normal crap you buy in any store (low)), you don't have a chance of hearing the difference between a high bitrate mp3 and the original.. there is too much noise from the computer, and not enough power from the headphone jack.

    On the other hand, if you are using a clock stabilized external output from a good external soundcard with a proper mixer, running through a good class-A headphone amp and into a good pair of headphones (Sennheiser HD580, HD600, Grado RS-1, RS-2, SR325), in a quiet room built for listening, and if you have good ears, and are used to listening for detail, you may hear a difference.

  31. Re:Is this REALLY a solution? by tapin · · Score: 4, Informative

    Is lossless really a good idea?
    Yes. It is.

    Say you've got your collection of CDs at home, and you're just about to encode them all for your iPod. "Okay", you figure, "I'm going to pick.. umm.. 192kbps MP3s, since that's pretty good and I'm going to be listening to them over cheap headphones on the train on the way to work."

    So you go ahead and encode your entire 600-album collection to 192 kbps MP3s. And you put them on your iPod, and everything's fine... until you decide you want to listen to them at work as well, and 192kpbs just isn't good enough for listening in the quieter environment in your cube.

    Now you've gotta take your 600 CDs and re-encode them at 320 kbps, because if you were to do something silly like extract your 192 kbps MP3s to wave files and re-encode to 320 kbps, you'd just end up with inflated 192 kbps MP3s.

    Better yet, say you want (vbr) ogg files at work; or Apple (heaven forfend) finally comes out with a portable player with ogg support. You still need to go back to your original CDs (are they scratched yet? Did you lend 'em to your friend and forget he had it before he left for Maryland? Did your wife take your favorite disc to work with her, where one of her students used it for an art project?) and re-encode everything.

    Now, say instead you use FLAC (or SHN, or even APE which I've never personally used).

    You take your collection to work; turns out your servers are slightly too small for the FLAC files, so you expand to wave and encode to 320 kpbs MP3s using a simple shell script for the entire collection.

    You want ogg files for your new next-generation iPod; great, just run a slightly different shell script to expand to wave and encode to ogg.

    Your apartment is broken into and your entire 600 CD collection is stolen, including that ultra-rare CD you got from that band that was once part of that other band but split off when the original drummer OD'd, but they only burned 300 copies of their indie CD and besides they haven't been together since '94. No problem, you've still got the FLAC files and can at least burn yourself a virgin, bit-for-bit exact copy (depending on how carefully you originally extracted it, of course) of the audio -- your artwork and individually-numbered disc are still gone, sorry.

    And that's not to mention new compression algorithms, media formats, etc. MP3 and any other lossy compression algorithm doesn't handle future-readiness very well.

  32. Re:Oh, boy, yet another codec.... by Andy_R · · Score: 4, Interesting

    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
  33. Re:Is this REALLY a solution? by kekoap · · Score: 5, Informative

    Visit etree.org. The big benefit of lossless compression is it makes for better distribution of live recordings. The short of it is that demanding recordings in a losslessly compressed audio format, along with verification using checksum files, guarantees no loss in fidelity.

    There are many alternate live-music trading scenarios which cause a loss in fidelity. Two of the most common: 1) CD Audio->CD Audio copies are not perfect (unless you use a specialized tool like EAC - Exact Audio Copy); 2) trading lossily-compressed audio tends to lead to loss of fidelity through inevitable decompression, writing to CD, reripping, and reencoding.

  34. Re:Better than ZIP? by kspiteri · · Score: 2, Insightful

    Since FLAC is designed specifically for audio, it can take advantage of audio statistics, enabling it to compress better. AFAIK general lossless compression programs such as zip perform bad on audio, since audio seems fairly random to them.

  35. Not a trivial feat... by pla · · Score: 4, Insightful

    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.

  36. Re:huh? by Josh+Coalson · · Score: 3, Informative
    The FLAC format has metadata support, and since you now can put FLAC in Ogg containers, it can also use Ogg tag support which is truly great.

    Minor point, but the tags are not part of the Ogg container. FLAC implements tags the same way as Vorbis does, as one of the initial packets, so they are available in raw FLAC as well as Ogg FLAC.

  37. So what if I enter random bits? by gnalle · · Score: 2, Interesting
    How does a standard compression program respond if I make a large file of random bits and try to compress it. Does it reply with an error message or does it simply return a file that is larger than the original?

    PS: This post is a user interface question. I understand the entropy stuff :)

  38. Re:Is this REALLY a solution? by Cuthalion · · Score: 2, Insightful

    I don't think that "lossless" sounds three times as good as 128kbps mp3.

    --
    Trees can't go dancing
    So do them a big favor
    Pretend dancing stinks!
  39. etree by dylelf · · Score: 2, Informative

    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.

  40. Microsoft Windows won't be around forever. by yerricde · · Score: 2, Insightful

    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?
  41. Re:Is this REALLY a solution? by Sycraft-fu · · Score: 3, Interesting

    Actually one of the most important applications for lossless audio compression is production. The "stuff you can't hear" often because stuff you CAN hear if the sound is processed forther (EQ'd, chorused, etc). It's really not a good idea to use lossey compresison until you are completely down with your stuff. But, saving diskspace is often soemthing that would be nice, multitrack audio can get real big real quick. Hence, a losless ocmpression algortihm is great. Some companies implement one or another in tehir pro software but it would be nice if they were to settle on something like FLAC as a standard so the files would be interoperable.

  42. I personally prefer lzip! by Jugalator · · Score: 4, Funny

    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!
  43. Re:Only 50% compression? Try harder. by pclminion · · Score: 4, Insightful
    You freak, you just described EXACTLY what FLAC does.

    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.

  44. Re:Only 50% compression? Try harder. by slamb · · Score: 2, Insightful
    A bit of preprocessing before gzip should do better than that. How about this? [...] This is completely reversible. Try it and see how well it compresses.

    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.

  45. Open source lossless auido compression? Been Done! by wwwgregcom · · Score: 3, Funny

    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?