What is bit perfect?

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
AX tech editor
Joined 2002
Paid Member
dhaen said:

Jan,

This just can't be so. If a dust particle shadows a "pit" on one read, and not on the next, then the data is different.[snip]


No, John, its not! The ERROR CORRECTION is different, but the data is the same each time. That's the crux of the matter.
There is a lot of redundant data on the disk, and if the dust particle is there, data from another frame is used to assemble the "dust" frame correctly. So, yes, the processing in each case is different, but you get the same data, each time. Without it, the CD could never been the succes it has been. It is a very robust medium.

Jan Didden

PS There is of course a limit to what can be corrected. If that limit is reached, error concealment is entered. But that is not what we talk about here, I assume.
 
Jan,

I have some understanding of error correction systems and the maths. My dust particle was for example only. Yes, the CD is very robust, but there is sometimes a lot of damage.

Consider the situation where a scratch causes some diffraction, and the wobble of the disc is sufficiently chaotic that particular data is sometimes read, and sometimes not. In this case a CD player may sometimes correct or sometimes conceal. Perhaps it gets it right 60% of the time.
If an the data is read many times with statistical correction, the chances are that the result will include the correct value.
 
Variac said:


I think error concealment could be a big part of what we are talking about here. It might happen a lot.
Yes it does - or at least did. I'll explain:
In the very early days of CD's I was privy to tests at a Japanese manufacturer of error correction tests on discs produced in Europe and Japan. We found error flags far more often on the Euro-discs. These were new discs. The errors were either manufacured-in or recorded-in. It meant some design changes to equipment to cope with this.
I don't know how things are now, but even in the last 5 years I've heard of dust problems in manufacuring plants.
 
AX tech editor
Joined 2002
Paid Member
Well, it gets a bit speculative now. But let me tell you, a CD that needs error concealment is unlistenable! You will very quickly get frustrated and throw it out, or at least skip that track. The fact that the vast majority of CDs off the rack play perfectly in most any player, scratches and dust and all, is a testimony to the robust error correction algorithms.

Those Philips/SONY engineers knew their trade!

I know a guy who worked at Philips, his job was to test third-party players to see if they conformed to the Redbook. Only then were they allowed to carry the well-known CD Audio logo. He told me that error free data reading is almost never a problem. Even the simplest, cheapest player delivered error free data. The problems were more with servo tracking under shocks, eccentric spindels etc.

Jan Didden
 
questions:

if errors occur during playback and the CD player needs to
correct them, will the SPDIF output contain the corrected
data, or not (see question below)?

also, some "CD`s" with certain "copy protection" schemes are
made with known errors a redbook cdplayer are supposed
to correct without any loss of quality.how does this affect
the data integrity of the CD when it gets scratches, compared
to a real CD?
 
AX tech editor
Joined 2002
Paid Member
yulquen said:
questions:

if errors occur during playback and the CD player needs to
correct them, will the SPDIF output contain the corrected
data, or not (see question below)?[snip]


Of course the output will have the correct data. You are not even aware of the correction process (as long as it can cope).
You take a virgin CD, and play it. 100% correct data. Now you put a scratch on it, play it again, 100% correct data. You put on another scratch, play it again, 100% correct data. In all those cases, the raw data stream off the CD is different, but the data coming out of the digital output is identical.

Jan Didden
 
janneman said:
Of course the output will have the correct data. You are not even aware of the correction process (as long as it can cope).
You take a virgin CD, and play it. 100% correct data. Now you put a scratch on it, play it again, 100% correct data. You put on another scratch, play it again, 100% correct data. In all those cases, the raw data stream off the CD is different, but the data coming out of the digital output is identical.

Jan Didden
This is assuming that your scratches aren't too wide, or are spaced in such a way that the de-CIRC process corrects for it. But put a third deep scratch on your CD so that the CIRC algorthm fails, and anything could happen.

Most CD players will interpolate, producing a "non-bit-perfect" output. Some will snap/crackle/pop. Your CD player might even lose tracking and skip if it's a bad scratch.

I wouldn't mind seeing a professional CD player that will flash a LED whenever a CIRC failure occurs...
 
janneman said:



Of course the output will have the correct data. You are not even aware of the correction process (as long as it can cope).
You take a virgin CD, and play it. 100% correct data. Now you put a scratch on it, play it again, 100% correct data. You put on another scratch, play it again, 100% correct data. In all those cases, the raw data stream off the CD is different, but the data coming out of the digital output is identical.

Jan Didden


so if I understand you correctly, it is not possible to create a
copy protection scheme for regular CD-players that
screws up the audio data at the SPDIF connector while
retaining flawless playback at the analogue outputs?
(not taking copy bit into account since it is easy to get around)
 
fmak, I'm not sure why this thread went this direction exactly...

Whenever someone talks about bit-perfect in PC audio, they are generally talking less about the error recovery of the CD-ROM ripping process (though that's important) and more about everything AFTER that.

The key is never doing mathematical operations on the data that will cause a loss of dynamic range, or ideally, any change in the absolute values of each sample. No EQs, no windows mixer (easier said than done), no volume controls at all, no nothing. Ideally you should be able to rip a DTS-encoded CD, play it out via SPDIF to a DTS-capable receiver, and have it work.

Successfully accomplish all that and you have a "bit-perfect" digital signal chain.
 
AX tech editor
Joined 2002
Paid Member
yulquen said:



so if I understand you correctly, it is not possible to create a
copy protection scheme for regular CD-players that
screws up the audio data at the SPDIF connector while
retaining flawless playback at the analogue outputs?
(not taking copy bit into account since it is easy to get around)


Jorn,

I'm not sure I understand the question. For one thing, the analog output is produced by running the dig output through a DAC, so the analog can only be good if the digital is good.

I am no expert on the copy protection stuff, but I understand that it is handled separately by the playback logic. In fact, as I see it, the copy protection bit is just 'one' bit in the total data stream and as such will also be corrected if necessary. It then depends on the player logic what it does with it.

So it seems that in theory that player logic can take the correct dig signal, route it through the DAC for 'perfect' analog, but then manipulate the SPDIF output data to prevent a dig copy. Anything can be done in that respect. But I don't know if that is how it is done. Maybe domeone else knows it more in detail?

Jan Didden
 
AX tech editor
Joined 2002
Paid Member
gmarsh said:

This is assuming that your scratches aren't too wide, or are spaced in such a way that the de-CIRC process corrects for it. But put a third deep scratch on your CD so that the CIRC algorthm fails, and anything could happen.

Most CD players will interpolate, producing a "non-bit-perfect" output. Some will snap/crackle/pop. Your CD player might even lose tracking and skip if it's a bad scratch.

I wouldn't mind seeing a professional CD player that will flash a LED whenever a CIRC failure occurs...

Yes, sure. As soon as the error correction 'gives up' because the damage is too large, it will generally sound horrible, sometimes whole parts of tracks are repeated or muted, as I said above, you'll probably throw out that CD.

I don't know about the CIRC failure statistics, but I once used a small add-on developed by Elektor that connected to the player logic and displayed the number of error corrections while playing a CD. Thousands, literally. I had perfectly (at least that's how it sounded) playing CDs, with 4000, 5000 error corrections during one play! So, error correction is not some kind of last-ditch rescue for bad data, it is part of life of every CD. Think about it, a scratchy CD must have many thousands of damaged frames on that CD. Still it plays correct, thanks to the error correction.

Jan Didden
 
AX tech editor
Joined 2002
Paid Member
guido said:
Hi,

Wasn't that between 7210 to 7220: the decoder telling the filter to do interpolation? (so NO perfect read of the disc).
I don't think you'll hear it if there is one or a few samples interpolated at one moment. 5000 'events' would be a lot, think the article stated only a few per disk.

Think i still have that article, i'll look it up.


Sigh. The 4000-5000 was error correction, NOT interpolation or another form of error concealment. Error correction is transparant. The majority of CDs have zero error concealment, the error correction taking care of the, well, errror correction. Error concealment by nature is more than 'a few samples interpolated', because if only a few samples are damaged, chances are that the error correction can fix it, transparently. Error concealment is gross and generally quite audible, like 'yikes!'....

Jan Didden
 
My understanding of "bit perfect" as it is often used in the recording field has to do with sample rate conversion. Some gear ALWAYS puts a sample rate converter on the recording input path even if you are recording at the same bits/frequency as you are inputing. You then are not guaranteed to get the same bits.

BTW I've also done all those record/rip re-record experiments and with out obvious gross failure due to disk defects I always got nada, a perfect flatline when subtracting the waveforms. At an intuitive level how could software distributed on CD be so robust and music be so weak? Take one random instruction bit and invert it in your OS's kernel and see what happens (yup even on a MAC).
 
Here's a link which describes a cd and errors correction system..

http://www.ee.washington.edu/conselec/CE/kuhn/cdaudio/95x6.htm

There's some more info on the net exactly how the reading of pits is done (thats where the laserbeam thats refelected is not as intense because of the pits in the structure), but I couldn't find that anymore.
But remember that the cd is already quite 'old', it's a bit over 25 years back.

Eric
 
AX tech editor
Joined 2002
Paid Member
erko said:
Here's a link which describes a cd and errors correction system..

http://www.ee.washington.edu/conselec/CE/kuhn/cdaudio/95x6.htm

There's some more info on the net exactly how the reading of pits is done (thats where the laserbeam thats refelected is not as intense because of the pits in the structure), but I couldn't find that anymore.
But remember that the cd is already quite 'old', it's a bit over 25 years back.

Eric


Eric, nice link. Like I said, these Philips & SONY engineers had their act together.

Two comments:
- realise that all that processing to read the disk is analog, RF and servo-circuitry, until at the very end the data is converted to square waves. Who said CD is a digital medium??
- I am still amazed that they can build & sell these complex engines for just a few 10s of euros. Incredible!

Jan Didden
 
Bit perfect

Making a bit-perfect copy of a CD to hard disk (and then to another CD) is to copy the CD exactly as it is, including the errors.

That is a bit-perfect copy.
Correcting the errors results in a non bit-perfect copy.

Some copy-protection schemes have deliberate errors on the disc.:dead:
Some test CDs have gaps on the disc, to test CD transports.
Only a truely bi-perfect copy can make a real copy of the original disc.

EDIT: a .wav file is never a bit-perfect copy, in my understanding.
Only an image file of the complete CD, made with a special software.
 
janneman said:



Sigh. The 4000-5000 was error correction, NOT interpolation or another form of error concealment. Error correction is transparant. The majority of CDs have zero error concealment, the error correction taking care of the, well, errror correction. Error concealment by nature is more than 'a few samples interpolated', because if only a few samples are damaged, chances are that the error correction can fix it, transparently. Error concealment is gross and generally quite audible, like 'yikes!'....

Jan Didden


I get what you mean, but i'm just trying to remember the elektorarticle and the stuff i did back then (with my cd650, so the article must have been based on that chipset).

From what i remember the counter in the article was used to count the number of times that the decoder told the filter to interpolate. So not 4000/5000 times but a few times per disk (depending on the quality).

The 7210 decoder does not have an output that indicates that it received a bad piece of data from the disk afaik (why would it?) Just the output to the filter to interpolate when circ fails.

According to the manual you need to physically 'brake' a disk with the fingers or use ff or reverse to generate pulses on this efab line between filter/decoder. Just playing the on purpose DAMAGED testdisk does not work: the circ can recalculate the correct samples from the damaged data.

Just wondering what the signal is that gives 4000/5000 pulses.
Best guess from me now: track loss. But that signal warns the microprocessor that track loss is about to happen. It can adjust the arm then (talking swingarm cdm's here). But track loss does not mean that the disk is read incorrectly (bad data) :att'n:
Just that this is about to happen (and it might have resulted in bad data, or maybe not)

Too bad i cant find the article anymore... I know for shure i had it (i did some experiments on the 650). Maybe they talked about both options: counting track loss and interpolation.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.