Slashdot Mirror


Software HDCD Decoding?

Toshito asks: "I found that I have several CD's with HDCD encoding. I understand that these CD's contain a 20 bits stream encoded in the 16 bits (the original signal is truncated at 15 bits). A standard CD player will play the 15 bits version, but you have to get a HDCD compatible player to access the 20 bits version. My question is: do you know of any way to decode this stream on a computer with software only? Is the decodind method secret and only available in chip (hardware) form?"

9 of 23 comments (clear)

  1. compatible? by agnosonga · · Score: 2, Insightful
    High Definition Compatible Digital (tm)

    when it comes to microsoft, the word compatible doesnt really come to mind

    1. Re:compatible? by Vinum · · Score: 2, Funny

      It is very compatible... with players licensed by Microsoft to play it ;)

  2. Suggestion by Copperhead · · Score: 2, Funny
    If you know the answer and you decide to respond, you may want to post your answer anonymously so as to keep the feds from beating down your door with a warrent.

    I would love to see the Taco, et al. fight a court order kindy requesting them to turn over the userid and ip of the poster who cracked their "encryption system".

    --
    Your reality is lies and balderdash and I'm delighted to say that I have no grasp of it whatsoever. - Baron Munchausen
  3. Software Only? Sure... by sheldon · · Score: 4, Informative

    Windows Media Player 9 as it comes with Windows XP supports HDCD number of other technologies such as SRS.

    If you want to write your own talk to Microsoft about licensing it, as they purchased Pacific Microsonics(makers of HDCD) several years ago.

  4. Good luck! by adolf · · Score: 4, Informative

    HDCD, while developed by a high-end audio company whose name currently escapes me, is now 100% owned by (you guessed it!) Microsoft along with the aforementioned original developer.

    It is also patented.

    You can find an overview of how things work during the encoding process here, but don't expect anyone to tell you how to do any of those things without you first handing them vast fistfulls of cash.

    You might be able to glean some useful information from the patent text, but probably the only sane way to go about this effort would be to read the bitstream coming from the CD. And while you should able to discern what the bitstream looks like without too much effort, it would probably be a fairly involved task to learn what it means.

    So. My only suggestion would be to give up now before you've wasted any effort on trying. But if you insist on putting real time into this project, here's a couple of nice encapsulated postscript HDCD logos you can illegitimately use to adorn any illegitimate HDCD products you produce.

  5. Well... by TheSHAD0W · · Score: 4, Informative

    Unless you're using some really amazing audio hardware, I wouldn't bother. Most any equipment you'd want to hook up to your PC will not be able to give the full dynamic range of the 16-bit signal, much less the HDCD audio. Most sound cards you use won't be able to either, and that includes ones with SPDIF output. Not to mention, once you encode to Ogg or MP3, all that extra quality goes out the window.

    Ripping tools may be desirable when they start putting "exclusive content" on the HDCD layer only, or start making them without the compatibility layer, but there's nothing like that in the pipe, so far as I know.

    1. Re:Well... by adolf · · Score: 3, Interesting

      I don't know about ogg, but MP3 is not at all tied to having things sampled at a specific bit-depth - it just doesn't matter to it whether it is 16, 20, or 24 bit - the format has sufficient dynamic range. I know of at least one free 24-bit MP3 decoder, but I've not run across anything for the encoding side just yet (and I haven't been looking, either).

      'sides, HDCD essentially only adds 4 bits worth of dynamic range, for a total of 20, which isn't such a stretch for current consumer audio gear. The human ear is likely to be a greater limiting factor than the equipment.

      And finally, there will never be any "exclusive content" on the HDCD layer, because there is no HDCD layer. The extra four bits are gleaned from unused space on a CD and interspersed with everything readable by a normal CD player. HDCD is an adjunct to a standard red book audio CD, not a replacement for it. Take away red book compatibility, and you not only remove 16 of HDCD's 20 bits, but eliminate compatibility with existing HDCD players (which are numerous indeed).

      You're thinking of Sony's SACD, which can include multiple layers, and currently lacks ripping tools and PC-compatible hardware. I'm sure that Sony would love to convert the world to SACD and then stop adding a red book layer to their music as a cost-saving measure.

      I doubt it will ever happen, however. Remember, this is the same company that brought you Beta, Minidisc, and Memory Stick. All of them are good, well-designed products, but lack of interoperability has always held them down, just as it will SACD.

  6. Re:Software Only? Sure... by foobar104 · · Score: 3, Funny

    talk to Microsoft about licensing it, as they purchased Pacific Microsonics....

    Okay, I know this is dumb, but at first I read this as, "the purchased Pacific Histrionics, which seems very much like the sort of company Microsoft would want to purchase.

    Well, it amused me, anyway.

  7. Re: Technical papers by Omniscient+Ferret · · Score: 2, Informative
    The same site has some technical papers up. From skimming them, it looks like they take the least audible bit of digital audio at set times for set durations, and encode suggested filters. The filters are most useful at times of extreme volume - loud or quiet. Even if you have to output to 16-bit depth, you might have a choice on dithering type, producing specific acoustic effects.

    Like albums and Dolby noise reduction cassettes, there are complementary filters for encoding or decoding; it's just more complex than an equalization.