A Audio, hi-fi and car audio  forum. Audio Banter

Go Back   Home » Audio Banter forum » UK Audio Newsgroups » uk.rec.audio (General Audio and Hi-Fi)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

uk.rec.audio (General Audio and Hi-Fi) (uk.rec.audio) Discussion and exchange of hi-fi audio equipment.

HDCD



 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 10th 12, 11:43 AM posted to uk.rec.audio
Jim Lesurf[_2_]
external usenet poster
 
Posts: 2,668
Default HDCD

This is a long shot, but it seems worth asking...

Anyone know the *details* of HDCD flagging/encoding and/or know how to
contact 'cjk32' (C. J. Key, I think) who at Cambridge produced the hdcd.exe
for Windows users? I'd love to do an analysis of this, but that means being
able to understand the system and be able to decode discs using my own
software so I know what it happening.

There is a USA patent I've found, but it only gives a woolly all-covering
description. It lacks the details needed to replicate the process with an
existing HDCD.

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html

  #2 (permalink)  
Old June 10th 12, 12:02 PM posted to uk.rec.audio
Don Pearce[_3_]
external usenet poster
 
Posts: 1,358
Default HDCD

On Sun, 10 Jun 2012 12:43:00 +0100, Jim Lesurf
wrote:

This is a long shot, but it seems worth asking...

Anyone know the *details* of HDCD flagging/encoding and/or know how to
contact 'cjk32' (C. J. Key, I think) who at Cambridge produced the hdcd.exe
for Windows users? I'd love to do an analysis of this, but that means being
able to understand the system and be able to decode discs using my own
software so I know what it happening.

There is a USA patent I've found, but it only gives a woolly all-covering
description. It lacks the details needed to replicate the process with an
existing HDCD.

Slainte,

Jim


There was a pretty good analysis article associated with the Crystal
DAC that Arcam used. I've just tried to find it, but I can't locate
it. It should be out there somewhere.

d
  #3 (permalink)  
Old June 14th 12, 08:24 PM posted to uk.rec.audio
[email protected]
external usenet poster
 
Posts: 13
Default HDCD

Email address here?

http://dvdid.cjkey.org.uk/

Paul

On Sunday, June 10, 2012 12:43:00 PM UTC+1, Jim Lesurf wrote:
This is a long shot, but it seems worth asking...

Anyone know the *details* of HDCD flagging/encoding and/or know how to
contact 'cjk32' (C. J. Key, I think) who at Cambridge produced the hdcd.exe
for Windows users? I'd love to do an analysis of this, but that means being
able to understand the system and be able to decode discs using my own
software so I know what it happening.

There is a USA patent I've found, but it only gives a woolly all-covering
description. It lacks the details needed to replicate the process with an
existing HDCD.

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html


  #4 (permalink)  
Old June 15th 12, 08:40 AM posted to uk.rec.audio
Jim Lesurf[_2_]
external usenet poster
 
Posts: 2,668
Default HDCD

In article ,
wrote:
Email address here?


http://dvdid.cjkey.org.uk/


Paul


Thanks! :-) I'll send him an email.

BTW I have now written an experimental program that tries to
correct the 'soft limiting' range compression of HDCD. This
seems to work OK on the few discs I have tried. But as yet
I have my doubts about the other 'features' HDCD claims to
use.

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html

  #5 (permalink)  
Old June 18th 12, 10:05 AM posted to uk.rec.audio
Jim Lesurf[_2_]
external usenet poster
 
Posts: 2,668
Default HDCD

On 15 Jun, wrote:
In article ,
wrote:
Email address here?


http://dvdid.cjkey.org.uk/

Paul


Thanks! :-) I'll send him an email.


I've not had - as yet - any reply to the email. But in the interim I've
been doing some experiments trying to de-spread the LSB coding on three
discs with HDCD logos.

The Patent says the LSB control uses a maximum length sequence spreader
and gives as an example the (5.3) example. It also says the sequences are
39bit inc. a check. Which is consistent with (5.3) as that gives a 31 bit
pattern, so 39 could be the pattern plus a check byte.

To test that I wrote both an MLS encoder and matching decoder. These work
when I use one to feed the other, as per the textbooks.

One of the documents I've found about an HDCD ADC/recorder says that
recordings should start with about 100 ms of 'hdcd silence'. i.e. no audio
and a place to put a control pattern which the player/dac can then
unambiguously detect.

So I've tried the decoder on some discs. But this doesn't seem to give an
identifiable result. On one disc there is no such 'silence'. On others
quiet part seems to use the lowest *three* bits of samples. Not just the
LSB.

So I'm coming to the conclusion that this may be another example of how the
patents and public documents simply obfuscate and don't actually tell
anyone what hdcd does (or doesn't!) or how.

I'll experiment when I get a chance with other MLS encoder/decoder pairs,
and perhaps do some correlations to see if I can pull patterns out of the
LSBs. But the more I examine HDCD the more dubious I get about both
regarding them as 'audio CDs' and the validity/reliability of the Patents,
etc. Increasingly looks like hype with the occasional use of a peak soft
limiter!

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html

  #6 (permalink)  
Old June 18th 12, 02:30 PM posted to uk.rec.audio
Arny Krueger[_2_]
external usenet poster
 
Posts: 200
Default HDCD

I seem to recall that there is a freebie HDCD decoder kicking around. What
does it do?

"Jim Lesurf" wrote in message
...
On 15 Jun, wrote:
In article ,
wrote:
Email address here?


http://dvdid.cjkey.org.uk/

Paul


Thanks! :-) I'll send him an email.


I've not had - as yet - any reply to the email. But in the interim I've
been doing some experiments trying to de-spread the LSB coding on three
discs with HDCD logos.

The Patent says the LSB control uses a maximum length sequence spreader
and gives as an example the (5.3) example. It also says the sequences are
39bit inc. a check. Which is consistent with (5.3) as that gives a 31 bit
pattern, so 39 could be the pattern plus a check byte.

To test that I wrote both an MLS encoder and matching decoder. These work
when I use one to feed the other, as per the textbooks.

One of the documents I've found about an HDCD ADC/recorder says that
recordings should start with about 100 ms of 'hdcd silence'. i.e. no audio
and a place to put a control pattern which the player/dac can then
unambiguously detect.

So I've tried the decoder on some discs. But this doesn't seem to give an
identifiable result. On one disc there is no such 'silence'. On others
quiet part seems to use the lowest *three* bits of samples. Not just the
LSB.

So I'm coming to the conclusion that this may be another example of how
the
patents and public documents simply obfuscate and don't actually tell
anyone what hdcd does (or doesn't!) or how.

I'll experiment when I get a chance with other MLS encoder/decoder pairs,
and perhaps do some correlations to see if I can pull patterns out of the
LSBs. But the more I examine HDCD the more dubious I get about both
regarding them as 'audio CDs' and the validity/reliability of the Patents,
etc. Increasingly looks like hype with the occasional use of a peak soft
limiter!

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics
http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html



  #7 (permalink)  
Old June 18th 12, 03:23 PM posted to uk.rec.audio
Jim Lesurf[_2_]
external usenet poster
 
Posts: 2,668
Default HDCD

In article , Arny
Krueger
wrote:
I seem to recall that there is a freebie HDCD decoder kicking around.
What does it do?


Good question. :-)

The only one I know of is the 'hdcd.exe' file that 'cjk32' released for
Windows some years ago. (Hence my looking for C J Key.) No source code was
released. Nor any specific explanation of the algorithm used, or what parts
of what the HDCD patent *claims* to do it decodes.

I *think* he also let someone working on BSD have a copy of the source. But
as yet I've not tracked that down if true.

I have a copy of hdcd.exe as it is still on the web. But it isn't much use
to me without a clear specification of what it does, and how. Without that
I can't tell if it works 'correctly' in terms of whatever any 'official'
HDCD dac/decoder is supposed to do.

AIUI MicroSoft took his code and say they put it into their software
players. But they bought the HDCD Patents. I have my doubts they actually
know or care about the details beyond it being another 'feature' they can
offer.

If you know of something else, please let me know.

If you read the HDCD Patent, etc, it makes a whole series of general
claims. And says the control codes are 'dithered' into the LSB stream every
now and then. It gives the example of a maximal length sequence as seems to
say that is how the control is made to mimic 'noise'. But no real details
of what the control codes *actually* are, nor the *actual* 'spreading'
process. Nor the details of any of the claimed applied effects.

An AES paper by Johnson shows the curve said to be representing the 'soft
limiting' HDCD can optionally apply to squeeze up the waveforms by 6dB. But
again, no real detail of how this is actually flagged, etc, etc.

I can easily apply a reverse gain correction for the soft clipping. If I do
that *assuming* it is present, then some recordings sound much better (less
compressed). But I still have no idea if the result is genuinely
'corrected' or just less nasty as the waveforms aren't so badly mangled. I
may just be making 'less bad' some of the compression applied by 'clever'
remastering gurus. Not really undoing that part of HDCD.

For all I know, that is all 'hdcd.exe' does... or it may do something
totally different. The Patents and blurbs claim HDCD lets you mimic wider
frequency bandwidth as well by furtling about with the digital filtering
and giving output upsampled to 88.2k. But zero details...

If I had an HDCD player I'd try seeing what that does to the discs. But at
present I don't have one. And it seems a bit mad to buy one just for a few
tests on a tiny number of discs. Particularly if it confirms my growing
feeling that HDCD is a combination of some (reversable) soft peak limiting
and much smoke and mirrors...

All an interesting example of how a Patent - which is supposed to tell
'skilled practitioners in the field' how to duplicate something - fails to
provide the real details required for the actual system in use.

I don't know if CJK reverse engineered the spreading and managed to assign
the codes for different purposes, etc. At present I doubt it. e.g. How
would you work out from the discs what the different replay FIR taps of the
reconstruction filter were meant to be? But I am keeping my fingers crossed
that he will eventually reply and give me some useful info.

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html

  #8 (permalink)  
Old June 18th 12, 03:31 PM posted to uk.rec.audio
Rob[_8_]
external usenet poster
 
Posts: 6
Default HDCD

On 18/06/2012 11:05, Jim Lesurf wrote:
On 15 Jun, wrote:
In ,
wrote:
Email address here?


http://dvdid.cjkey.org.uk/

Paul


Thanks! :-) I'll send him an email.


I've not had - as yet - any reply to the email. But in the interim I've
been doing some experiments trying to de-spread the LSB coding on three
discs with HDCD logos.

The Patent says the LSB control uses a maximum length sequence spreader
and gives as an example the (5.3) example. It also says the sequences are
39bit inc. a check. Which is consistent with (5.3) as that gives a 31 bit
pattern, so 39 could be the pattern plus a check byte.

To test that I wrote both an MLS encoder and matching decoder. These work
when I use one to feed the other, as per the textbooks.

One of the documents I've found about an HDCD ADC/recorder says that
recordings should start with about 100 ms of 'hdcd silence'. i.e. no audio
and a place to put a control pattern which the player/dac can then
unambiguously detect.

So I've tried the decoder on some discs. But this doesn't seem to give an
identifiable result. On one disc there is no such 'silence'. On others
quiet part seems to use the lowest *three* bits of samples. Not just the
LSB.

So I'm coming to the conclusion that this may be another example of how the
patents and public documents simply obfuscate and don't actually tell
anyone what hdcd does (or doesn't!) or how.

I'll experiment when I get a chance with other MLS encoder/decoder pairs,
and perhaps do some correlations to see if I can pull patterns out of the
LSBs. But the more I examine HDCD the more dubious I get about both
regarding them as 'audio CDs' and the validity/reliability of the Patents,
etc. Increasingly looks like hype with the occasional use of a peak soft
limiter!

Slainte,

Jim


Seems you've got your work cut out!

What insofar as you can tell is the thinking behind HDCD - the
assumptions about say CD that it tries to redress?

Thanks, Rob
  #9 (permalink)  
Old June 19th 12, 09:14 AM posted to uk.rec.audio
Jim Lesurf[_2_]
external usenet poster
 
Posts: 2,668
Default HDCD

In article m, Rob
reply@ng wrote:
On 18/06/2012 11:05, Jim Lesurf wrote:


[snip]

What insofar as you can tell is the thinking behind HDCD - the
assumptions about say CD that it tries to redress?


Well, according to the Patent and the other info the creators have written
that I've read, their argument is as follows.

That Audio CD is limited in both

A) Dynamic range.

B) Bandwidth.

The argument for (A) is that we know people can - in fairly ideal
situations - 'hear' a range of sound levels covering about 120dB. From the
smallest sounds that can just be heard, up to the loudest that don't cause
pain or damage even on a short hearing. Whereas CD has a nominal range of
just over 90dB. So part of HDCD claims to be a menu of methods to 'expand'
the range of a CD.

This expansion is said it use two methods. One is to apply a nonlinear
curve to the max signal levels. In effect, squash the top 9dB or so into
3dB on a sample-by-sample basis. Bit like the old 'mu-law' and 'A-law'
nonlinear sampling of methods used in comms, etc, to get a wider range from
a limited number of bits per sample.

In this case the general result on a *non* HDCD player is to squash any
peaks, distort sustained loud sounds, and lift the quieter parts by about
6dB. i.e. pretty much like the kind of idiotic 'loudness' treatments
inflicted by those obsessed with 'louder is better'.

FWIW I have a feeling some people making CDs view HDCD as a sort of 'up
market' version of plain old 'make it louder to sell better' with the bonus
that some audio enthusiasts will be drawn by the label.

On a genuine HDCD player, the player knows the details of the nonlinearity
applied, and can expand it. Ideally, that removes the distortion and level
compression. So you can argue that the result is 'compression for the
masses, but a decent result for the elite who buy into HDCD'.

However that only gets you about 6dB greater range - at the cost of
distortion for non-users. i.e. just one more bit per sample. 17bits, not
the claimed 20.

For long 'quiet' passages HDCD is also said to gradually wind up the gain
level, moving the sound further above any noise of sample-level errors.
This should improve the range for long quiet passages. And data 'encoded'
in the LSB patterns tells an HDCD player how to correct this gain shift. So
correcting this adjustment as well.

That could provide the other (claimed) 13 bits per sample. i.e. if the gain
is wound up and down by up to 18dB during 'quiet parts' of the music.

The big *however* here is that pop/rock music hardly ever has passages like
those described in the HDCD info I've seen. This says that you need music
that stays below about -40dBFS for a long time for this to kick in. But
that isn't what most pop/rock/jazz is like.

And when I scan the pop/rock HDCDs I have, as yet I've not found the codes
or any sign of their spread in the LSB. (I'll keep looking, though.)

Of course, you can then point out that if we really need 120dB ranges then
we might not want to lose the LSB to use as a control channel. :-) The
documents claim we can't hear this. But if so, why do we need such a big
range? And how many domestic situations have any hope of hearing over a
120dB range? Most homes have a background noise of around 30dBA or more,
and won't welcome having to play out at 150dBA. 8-]

And of course essentially *all* the older HDCD rock/pop/jazz material that
has been remastered would have been recorded on systems with a range well
below 120dB anyway. You have to wonder what a 120dB range has to do with,
say, analogue Joni Mitchell tapes from the 1960s or 1970s.

In addition to all that, if you noise shape conventional LPCM CD you get an
audible available dynamic range that is somewhat higher than the basic 'bit
more than 90dB' value generally quoted by shifting quantisation noise to HF
where people don't hear low level noises so easily.

Now on to (B).

There the claims are fairly wooly. The argument is that the ADC and DAC
examine the incoming data and decide to adopt a given filter function from
a menu of options. For smooth music you might use a conventional time
symmetric filter. But for transient spikes you might go for a more 'join
the dots' one to avoid side ringing. This is then communicated to the DAC
via the LSB control channel.

The effect is said to be to let you mimic a system with a wider bandwidth
and make the result sound more like you'd been able to convey details above
22kHz. The snag is that a 'spikey' filter will alias in ways that the
decoder may not be truly able to correct as the information recorded
becomes ambiguous. (This isn't true for a filter that simply shifts the
ringing to after the peak. But what I've read doesn't seem to say this is
what HDCD uses.)

In some ways this is a bit like the 'spectral replication' trick in the
AAC+ (lossy) encoder which notes down how much HF was discarded and
makes a guess at what should replace it when the file is played.
(Essentially by assuming you put in 'harmonics' of the biggest tones in
what you kept.)

However I can't find any sign of this, or its control codes. So how much of
this is simply flim-flam I can't tell. At some point I'll look for excess
folded components near 22kHz as these would be symptoms of an attempt to
have a 'spiky' encode filter which tends to generate things at (22.05 - f)
kHz when fed an input at f kHz.

Hence the Patents, etc, make a number of sweeping claims about improved
dynamic range and bandwidth. But in practice I can't say that as yet I'm
confident that it does much more than give you an (optional) reversable
'soft limiting' to get about 6dB back.

Slainte,

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 03:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.SEO by vBSEO 3.0.0
Copyright ©2004-2025 Audio Banter.
The comments are property of their posters.