Slashdot Mirror


Bitrate Peeling with Ogg Vorbis

Yort writes "Thought this might be interesting to some audiophile /.ers - there's been some discussion on the Ogg Vorbis lists, summarized in the most recent Ogg Traffic, about "bitrate peeling". In short, it's where you can simply "peel off" the high resolution data from the ends of an audio stream packet to come up with a smaller, lower quality stream. Brings up a number of geek-cool opportunities."

20 of 378 comments (clear)

  1. Wow by unterderbrucke · · Score: 0, Interesting

    This might just push net radio into the mainstream...

  2. portables by Anonymous Coward · · Score: 2, Interesting

    this brings to light the mp3/ogg hardware compatibility issue... ie: no portables/car stereos/dvds/home stereos supporting ogg, even though it's a superior format... i'm scared that it's going to suffer the betamax syndrome...

    personally, i'm converting over from 256kbps mp3 to 128kbps vbr ogg and i'm saving TONS of space and not really sacrificing any quality... does anyone know of a petition or something similar to get mainstream hardware manufacturers to include ogg support in their hardware?

  3. Audiophile? by Quikah · · Score: 2, Interesting

    Smaller and lower quality does not belong in the same sentence with the word audiophile. :)

    Cool idea though.

    --
    Q.
  4. Re:not impressed by Textbook+Error · · Score: 2, Interesting

    Bitrate peeling is not a good idea because it seperates the audio signal, with hi frequency data being seperate from low and mid frequency data.

    I'm not sure if it's frequencies that are being separated here - the idea seems similar to wavelet image compression, where refinements to the original data arrive over time.

    Note I know nothing about Ogg, so it probably isn't based on a wavelet approach, but the idea sounds more like you get low resolution data (covering the full frequency range) followed by higher resolution data. I.e., you're increasing the sampling rate over time - but the range of frequencies you sample is the same regardless.

    --

    Nae bother
  5. Alternative use.. by irc.goatse.cx+troll · · Score: 5, Interesting

    "Beni Cherniavsky mentioned a very intriguing counterpart to bitrate peeling. If you have a peeler that saves the bits it chopped off, you could reconstitute the higher quality files by adding the missing bits to the lower quality file. This idea could lead to a music download service where you can download a low quality preview version of a song, and if you are interested, download the missing bits to make it a high quality version."

    Or, Slightly modified, You could share all your high quality oggs on a P2P network, and have your client peel it down to 'future-legal-to-share' low quality files.

    --
    Pain lasts, kid. Its how you know you're alive. Sometimes I think this growing up thing is just pain management-TheMaxx
    1. Re:Alternative use.. by blinkie · · Score: 2, Interesting

      and since it's apparently possible to cumulatively download those missing bits, you could be downloading quality instead of time. sounds like an interesting (I'm not saying better--yet) alternative to those gazillions of cropped media files hanging around..

      --
      to^2
  6. You're Right by stsai · · Score: 2, Interesting

    If you read many of the audiophile magazines such as Stereophile, etc., you'll see reviews of equipment such as external DACs for CD players as well as many high-end CD players. Among those there is the legendary Linn Sondek, a CD player which retails for around 21k.

    Why would you need a 21k CD player, you ask? If a CD player is playing back an exact digital file, than shouldn't all CD player's sound the same? The answer is simple: let your ears be the judge.

    I was initially skeptical when I was first shopping for stereo equipment, but there is a world of difference between a consumer CD player obtained at the chains like Best Buy, Fry's, etc. and an audiophile CD player. The difference is primarily in the level of clarity or resolution that you can hear from a quality CD player. The difference is subtle yet dramatic, you can hear instruments and detail that you simply could not make out before.

    To make a long story short, the quality of mp3s is typically even below that of a CD played on a cheap consumer CD player. No "audiophile" will listen to them as a primary audio source. That said, I have an mp3 player that I use when running and I have mp3's on my computer. Everything has its place, but the place of mp3's or ogg is not in audiophile stereo systems but in the world of music sharing where file size is a critical issue.

    1. Re:You're Right by mindstrm · · Score: 2, Interesting

      There is so much fluff in the audiophile world it's hard to tell what really makes a difference and what doesn't. Really, like computer hobbyists, it's really about what makes you happy.

      Many non-audiphiles like to listen to music because they like the tunes and lyrics, not because they want to super-analyze every insturment. In this respect, mp3 & ogg & whatnot are fantastic. If they suck, why are they so popular?

      So.. you tried this CD player in the same audio setup you were used to using, to compare it side by side with another player you were used to with no other factors that change?

      yes.. there are differences in CD players... mostly due to oversampling & better filters, and good quality output components. That, and good power supply circuits.

      The difference between a cheap cd player and a $1000 cd player will be noticeable; the difference between a $1000 player and a Linn Sondek is more debatable.

  7. Re:Audiophiles? by Pieroxy · · Score: 5, Interesting

    Well, you should try then one simple test, that I did for myself and my friends. I just ripped a track of one of my favorites CD and encoded it with my favorite MP3 encoder (lame) to 160, 192, 256 kbps. I then burned a new CD-R with four tracks (original, 160, 192 and 256) in a random order. Since then, I'm looking for someone to be able to put those tracks in the right order.

    No one has been able to until then, and I'm not only talking (only) about average people. I have some friends which (unlike me) have a decent equipment.

    Usually these guys were able to clearly distinguish 160kbps from the set. With 2-3 pass they detected the 192kbps track and they couldn't tell the difference between the 256kbps and the original.

    Maybe I could send you guys some samples...

    Just keep in mind also that MP3 is the same type of compression than DTS & AC3 (Dolby Digital) and I've never heard someone complain about those (especially DTS). If you're unhappy with quality, just increase bitrate. And if those guys in the MPEG consortium felt that 320kbps should be the maximum, It should mean something.

    Lossless compressors have such a poor ratio!

  8. Peeling! by Emmettfish · · Score: 5, Interesting
    Okay, I'm biased in this discussion: I am the CEO of Xiph.org and I'm also a musician.

    One thing that hasn't been discussed here is that a lot of people feel that Vorbis is transparent at something like quality setting 4. Other people think it's transparent at quality setting 3. Others think it's great at 1. I release my stuff at 4, but bitrate peeling will let people peel those down to what sounds good to them. Maybe they want to monkey with it, and maybe they don't, but the option to do this without re-encoding is sexy.

    It's not just a 'chop it down for modem folks' thing, it's also a letting people choose for themselves situation that I think is more important.

    Features are cool, but features that give people options apart from 'use it or not' are even cooler.

    That's it for me. Please donate to Xiph.org, and then go listen to some tunes. Enjoy!

  9. Cool, but not unique by benwaggoner · · Score: 5, Interesting

    Scalable techniques like this are very cool, but hardly novel.

    MPEG-4's scalable profiles provide a similar effect (albeit in the other direction, with enhancement layers). Some of the higher end audio codecs (beyond CELP and AAC), like ER BSAC (Error Resistant Bit Sliced Arithmetic Coding) do exactly this. The idea in this case is that the server will in real-time only provide as many bits as the connection can currently provide. Very nice for wireless.

    QDesign's QDX format does almost exactly what is described for Ogg, with arbitrary bitrate peeling down to the 1 Kbps level. The idea is that you could copy as much data as you want to your mobile player, and it'd dynamically thin to the data rate that would fill up your device.

    And still image codecs like JPEG have used progressive modes for years, where additional data adds more detail to the image.

  10. A spurious example by benwaggoner · · Score: 3, Interesting

    Okay, if each one is double the one before, that means you'll have a 2^100 ratio between lowest and highest data rate. Thus, if your lowest is 1 Kbps, the highest would be... Not going to happen that way.

    Also, you assume the sweet spots are 2x the one before. In fact, jumps of more like 1.25 are likely to be optimal (albeit with a lot fewer jumps!).

  11. Progressive Ogg? by Luke-Jr · · Score: 3, Interesting

    Could it possibly be used to progressively download an Ogg file and begin listening to it before it's 100% done? For example, have the 32kbit quality at the start of the file, then next have the next 32kbit (starting at the end of the file), then the next 64kbit, etc...

    --
    Luke-Jr
  12. Re:Audiophiles? by mindstrm · · Score: 2, Interesting

    what's decent equipment? The audiophiles out there will want to know. Also, what was the test material?

    You can argue that 256 is the same.. and for your purposes, it probalby is. For most common equipment, it surely is.

    Someone with a really well educated ear and really good equipment can probably hear the difference though. Because there IS a difference.

    Another thing... with high bitrate mp3.. when comparing between an original and the compressed version in a blind test, someone will be able to tell you they are different, but not which one is the original... becasue both sound good.

  13. All these anti-peeling posters are retarded! by Ayanami+Rei · · Score: 5, Interesting

    There aren't ANY free lossy codecs that can do bit-peeling right now. Some non-free codecs allow you to overlay data (like progressive JPEG), which is NOT the same thing. That's just like transmitting deltas at higher compression rates, which could be done with a simple side-band for any existing method, MP3 even.
    The only option is transcoding, which compounds compression errors (decode, reencode). I often wished the MPEG group would have been more intelligent in the design of their bit-allocater so that you could "thin out" the quantization of the power bands by looking at the "right parts" of the MP3 frame. Alas, this is not possible.

    But the Vorbis designers have made this possible, thus making it possible to have high-quality and low-quality versions derived from the same source file without additional processing. I imagine you have certain restricted choices, due to how quantization information is bundled up/packeted. But it isn't just sexy, it would be stupid to NOT DO IT. It takes just a little forethought on how to lay out the information in a hierarchial fashion. What makes anyone think that this is any harder then decoding/reencoding. I guarantee it has a time complexity on the order of a straight copy.

    Hell, formats like SHN and FLAC can do it, just substitute short codes for long codes at a certain rate; it'll add a bit of wide-band energy on decode, raising the noise floor in proportion to the space savings you gain.

    So anyway, "poop on you" to all these wanna-be audiophiles/slashdot-know-it-alls who don't no a good thing when they see it.

    Don't like it, keep sucking on that Layer III.

    --
    THIS THING CAN TURN ON A DIME, MACROSSZERO STYLE ALSO FUCK BETA, ~NYORON
  14. Re:Handy? Nah, Perfect! by aliusblank · · Score: 2, Interesting

    Yes, but the average consumer doesn't give half a damn. Many of them don't know what a codec is, let alone differant bitrates. I'm sure very few people consider either when buying an mp3 player. From what i've observed, the two main forces are capacity and cost. As stated in another post, windows media player already supports this, yet I have yet to see someone use it. Many of the uninformed would rather buy a player with larger capactiy than deal with bitpeeling or reencoding.

  15. Re:Killer App? by Luminous+Coward · · Score: 2, Interesting

    You could start here or here.

  16. Re:Audiophiles? by Sycraft-fu · · Score: 3, Interesting

    Interestingly enough I find that MP3 can even give superior sound to CD if encoded and decoded properly. MP3s don't have a set word size like PCM audio does, they just take the data they are given. Good encoders, like LAME, are perfectly capable of taking 24-bit files as input. At high bitrates (256-320k) I find that the compressed MP3 sounds superior to a 16-bit PCM file when taken from a 24-bit source, despite being smaller.

    By the way, you might want to check out the MAD Winamp plugin at http://www.mars.org/home/rob/proj/mpeg/mad-plugin/ . It offers good 24-bit decoding in Winamp, which I happen to really like as a player.

  17. iPod seems to do this anyway by Richard_J_N · · Score: 3, Interesting

    I think that the iPod does a very bad attempt at this. MP3s, encoded at 320k play back really badly on the iPod, far worse than 128/192k ones. I suspect that the iPod hardware hasn't enough horsepower - and it is discarding bits that it cannot decode fast enough. The MP3s sound fine on the pc, or decoded to wav and then played back on the iPod. But played back (as MP3) on the iPod, the result is dismal - there's a 5Hz "wobbling", rather like a steel band, and lots of distortion. (Apple won't help, but I have replicated this problem on multiple setups both Linux and OSX - it would be interesting to see if any /.ers have seen the same thing. You need a good recording of a classical CD with very large dynamic range eg Mahler 8, part II to demonstrate it - listen to the quiet bits.) [I have some demo files, but can't link them - I'll get slashdotted off the net !]

  18. Why stop there? by Kwil · · Score: 3, Interesting

    Peel layers from a data file thin enough that no layer is independantly recognizable. Scatter the layers throughout a P2P system. Now no individual user possesses the whole file, but all users can reconstruct a working copy when they want to play it.

    --

    That Jesus Christ guy is getting some terrible lag... it took him 3 days to respawn! -NJ CoolBreeze