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?"

23 comments

  1. hey now by Anonymous Coward · · Score: 0, Offtopic

    this is microsoft technology here .. certainly, it will NEVER be broken!

  2. 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 ;)

  3. 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
  4. Interesting.... by psyconaut · · Score: 1

    My Toshiba DVD player plays HDCDs.....but this is the first time I've heard that it's a Microsoft technology. Did Microsoft maybe acquire this?

    -psyco

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

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

    1. Re:Good luck! by Anonymous Coward · · Score: 0

      So. My only suggestion would be to give up now before you've wasted any effort on trying.

      Yes, good call. IMHO, give up = go analog.

      Number 1, it sounds better (duh, it's real), number 2, there's no programming involved.

      I admit, a 20-bit CD would make for a great distribution medium for master tapes made on my 40db-headroom consumer VCR. Good luck hacking it, I'll stick with making music.

      Do those 20-bit CD's have bass or did the bits go somewhere else again?

    2. Re:Good luck! by Anonymous Coward · · Score: 0

      you are an idiot, plain and simple.

      please never post here again

  7. Compatible means that by hackwrench · · Score: 1

    it will play as a regular CD on a normal CD player and thus compatible with it.

  8. 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 mr3038 · · Score: 1
      Most sound cards you use won't be able to [output 20 bit audio] 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.

      I agree with the output part and in addition not that many consumer amplifiers have inputs for 20 bit digital audio either. However, I think that using 20 bit original for Ogg or MP3 should increase the resulting quality because you have more information to select from to discard unneeded pieces during compression. If you had 20 bit output I'd guess that 20 bit Ogg or MP3 (assuming 20 bit format is supported) would sound better than uncompressed sound dithered to 16 bit.

      But then, I don't have audio equipment or ears to hear even full 16 bits. Even NICAM sounds pretty nice to me.

      --
      _________________________
      Spelling and grammar mistakes left as an exercise for the reader.
    2. 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.

  9. Thanks for the heads up! by Vinum · · Score: 1

    Now I know exactly what CDs NOT to buy thanks to the logos! I wouldn't want to buy a CD and have some of my money go to Microsoft. Same reason I build all my computers from scratch instead of buying prebuilt with the m$ tax already on it... and yes... I do buy CDs :)

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

  11. Re:There is no 'encoding', there are two layers by Anonymous Coward · · Score: 0

    You sound like you know what you are talking about, but you don't. And you are just plain wrong to boot!

  12. Re:There is no 'encoding', there are two layers by Anonymous Coward · · Score: 0

    That's nonsense. I have an outboard DAC with HDCD decoding. I feed it a standard SP-DIF stream from my CD transport, and the DAC automatically recognizes the information encoded in the LSBs, and decodes it.

    It has ABSOLUTELY NOTHING to do with any physical properties of the disc. Whoever told you that was lying.

    As for encoding 20 bits into 16 bits, you obviously can't do that losslessly, without some form of compression that would make the disc unlistenable on standard players. What they somehow do is encode some information in the LSBs of the signal, that has the capability of extending the dynamic range to 20-bit, in some circumstances. If you want to know more about it, you should try to search for the papers presented at the AES (Audio Engineering Society) conference, and the like.

    Unlike AC3, at least HDCD isn't part of a broader standard, such as DVD.

  13. You're right, confused SACD with HDCD by Crutcher · · Score: 1

    Two layer SACDs are what I was thinking of, and I confused them with HDCDs.

    More informaiton is available:
    http://www.sonymusic.com/sacd/
    http:/ /www.hdcd.com/about/index.html

    --

    -- Crutcher --
    #include <disclaimer.h>
  14. 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.

  15. a round about solution... by zonker · · Score: 0

    buy a new dvd player (many new one are including hdcd support right out of the box). hook up the optical output (or whatever the highest quality ins'n'outs you have, however they might not be good enough...) to your fancy soundcards input. start recording. don't bother to encode to mp3 or ogg if you are truly concerned (ie if you are a diehard audiophile) with hifi sound as any lossy compression will degrade the quality.