Does CD-DA specify any restriction on encodable signals? |
![]() ![]() |
Does CD-DA specify any restriction on encodable signals? |
Nov 21 2006, 05:22
Post
#1
|
|
|
Group: Members Posts: 55 Joined: 21-November 06 Member No.: 37843 |
I have not found this issue addressed anywhere. Does the Red Book standard specify how a CD player should behave when it is given a signal that has large amplitude content in the 20 - 22.05 kHz range? It would never have occurred to me to pose this question until I read that the SACD standard restricts the amplitude of the audio signal to 1/2 full scale and specifies the noise-shaped frequency spectrum to some extent -- that is, there are PDM signals that are not compliant as SACD encodings. I'm wondering if there is anything comparable for CD's. Most of the time, I've seen CD format specs that list 20 - 20000 Hz for the frequency response. This suggests that one of the following may be true:
16/44.1 PCM signals that have large amplitude content over 20 kHz are not compliant with the CD standard, and the behavior of a CD player when faced with such an input is undefined; a proper CD player must reproduce musical content in the 20 - 20000 Hz range within a few decibels, but has great leeway in how to handle content outside that band; a CD player is expected to filter out most content outside the audio band; or the standards are silent on this point. I would like to know which is the case. The question interests me largely because theoretical discussions and tests of ADC's and DAC's often make use of test signals that contain nearly full-scale content at or near the Nyquist frequency, for example square waves, and I don't know if criticisms based on these test signals can be considered relevent to anything of importance. |
|
|
|
Nov 21 2006, 08:45
Post
#2
|
|
|
Group: Members Posts: 2048 Joined: 31-August 05 Member No.: 24222 |
First, all data needs to be limited in frequency to 1/2 the Nyquist limit or aliasing occurs. These filters are a normal part of a DAC, whether said DAC is part of a CD player or not. In practice, the type and extent of output filtering differs considerably. My soundcards record input and play back output all the way to the Nyquist limit, but I've seen claims that some DACs filter steeply above 20kHz.
The CD data is not constrained to any particular signal strength limitations because of this. I pretty sure that anything that can be encoded in 16 bits/44.1kHz is within the standard. However, hardware implementation has many variables. Some DACs do not behave properly with samples at or very near 0dB (of any and every frequency) but others have no problems at all with the same data. In some circumstances the analogue produced by digital data can be well above the value indicated. If those sample values are near enough to 0dB, the output can be above 0dB (up to about +6dB). Some DACS have adequate headroom to handle this, some will clip. |
|
|
|
Nov 21 2006, 11:33
Post
#3
|
|
![]() ReplayGain developer Group: Developer Posts: 4615 Joined: 5-November 01 From: Yorkshire, UK Member No.: 409 |
I have not found this issue addressed anywhere. Does the Red Book standard specify how a CD player should behave when it is given a signal that has large amplitude content in the 20 - 22.05 kHz range? It would never have occurred to me to pose this question until I read that the SACD standard restricts the amplitude of the audio signal to 1/2 full scale and specifies the noise-shaped frequency spectrum to some extent -- that is, there are PDM signals that are not compliant as SACD encodings. That's because it's a stupid (IMO) non-linear (and potentially unstable) system which can go into self oscillation if those signal limits are exceeded. There is no similar feature in CD, thankfully! Cheers, David. |
|
|
|
Nov 21 2006, 12:50
Post
#4
|
|
![]() Group: Members Posts: 2 Joined: 20-November 06 Member No.: 37833 |
I am not a technical person, but I want to know if different CD players will produce different lossless files from the same Audio CD input. (considering lossless files generated by same sw with same setup options).
Is my question correct or I am missing something? Georges |
|
|
|
Nov 23 2006, 01:26
Post
#5
|
|
|
Moderator Group: Super Moderator Posts: 3934 Joined: 29-September 01 Member No.: 73 |
16/44.1 PCM signals that have large amplitude content over 20 kHz are not compliant with the CD standard, and the behavior of a CD player when faced with such an input is undefined; a proper CD player must reproduce musical content in the 20 - 20000 Hz range within a few decibels, but has great leeway in how to handle content outside that band; a CD player is expected to filter out most content outside the audio band; or the standards are silent on this point. I don't know which of the above statements is the good one. I would vote for the 4th one, but this is just my feeling. After all, digital-to-analog conversion is something that exists outside of the Compact Disc domain. Before the Compact Disc, ADC and DACs were already used in records manufacturing in order to replace the clusmy tape recorders with digital delay lines in order to drive the cutting head. From a digital point of view, the CD standard allows you to write any PCM data. But in practice, a CD player will filter out DC offset. It is also possible to generate artificial wav files that are nearly un-burnable on CDR, like this one |
|
|
|
Nov 23 2006, 02:19
Post
#6
|
|
|
Group: Members Posts: 4163 Joined: 2-September 02 Member No.: 3264 |
I have not found this issue addressed anywhere. Does the Red Book standard specify how a CD player should behave when it is given a signal that has large amplitude content in the 20 - 22.05 kHz range? It would never have occurred to me to pose this question until I read that the SACD standard restricts the amplitude of the audio signal to 1/2 full scale and specifies the noise-shaped frequency spectrum to some extent -- that is, there are PDM signals that are not compliant as SACD encodings. That's because it's a stupid (IMO) non-linear (and potentially unstable) system which can go into self oscillation if those signal limits are exceeded. There is no similar feature in CD, thankfully! Cheers, David. I am interested in learning more about DSD encoding at a theoretical level. Are there any good resources you could recommend? QUOTE I am not a technical person, but I want to know if different CD players will produce different lossless files from the same Audio CD input. (considering lossless files generated by same sw with same setup options). Assuming the readers are working correctly and the CD is undamaged, you should get identical results. |
|
|
|
Nov 23 2006, 02:43
Post
#7
|
|
|
Group: Members Posts: 830 Joined: 3-November 05 Member No.: 25526 |
Pio2001: why is that WAV nearly unburnable?
|
|
|
|
Nov 23 2006, 12:35
Post
#8
|
|
|
Moderator Group: Super Moderator Posts: 3934 Joined: 29-September 01 Member No.: 73 |
Pio2001: why is that WAV nearly unburnable? This is a wav file into which I inserted some so-called "weak sectors". These parts are not burned in an optimal way, and are most of the time unreadable. They produce read errors. Weak sectors are data that usually confuse EFM encoders, that do not always optimize the DSV (balance between pits and lands), and produce too much pits or too much lands for optimal optical tracking. They are used in CD ROM copy protection, the manufacturing plant being capable of mastering them without problem. The ones that I used here are strong ones, whose Pit/land balance can't be otpimized at all, even in professional mastering. The resulting CDR is at the limit of red book specification, because the pit/land imbalance reaches the maximum allowed value, and thus is extremely difficult to read. This is my understanding of weak sectors. Feel free to correct me if i said something wrong. |
|
|
|
Nov 25 2006, 22:34
Post
#9
|
|
![]() Group: Developer Posts: 1317 Joined: 20-March 04 From: Göttingen (DE) Member No.: 12875 |
I am interested in learning more about DSD encoding at a theoretical level. Are there any good resources you could recommend? Some years ago I tried to get infos about that and to simulate PCM->DSD and DSD->PCM conversion processes. The important things I can remember are (sorry, no references):
SG Edit: Actually, there is a paper I can link to. But this one doesn't deal directly with the additional requirements for the noise shaping filters and the signal level. However, it's a good read and it has very good arguments against DSD: Why 1-Bit Sigma-Delta Conversion is Unsuitable for High-Quality Applications by Lipshitz and Vanderkooy You may also need to google the net / search this forum for dithering and noise shaping. This post has been edited by SebastianG: Nov 25 2006, 23:49 |
|
|
|
Nov 26 2006, 11:52
Post
#10
|
|
![]() LAME developer Group: Developer Posts: 2950 Joined: 1-October 01 From: Nanterre, France Member No.: 138 |
If I remember well, it is recommended that CD players filter out past 20kHz content, but i's not mandatory.
|
|
|
|
Nov 26 2006, 12:32
Post
#11
|
|
![]() Group: Members Posts: 651 Joined: 10-January 06 From: Zagreb Member No.: 27018 |
From a digital point of view, the CD standard allows you to write any PCM data. But in practice, a CD player will filter out DC offset. It is also possible to generate artificial wav files that are nearly un-burnable on CDR, like this one OT, but have you noticed low compression rations FLAC, APE and RAR have on this file, compared with simple ZIP routine? |
|
|
|
Nov 26 2006, 12:53
Post
#12
|
|
|
Group: Super Moderator Posts: 4483 Joined: 23-June 06 Member No.: 32180 |
Well, they're optimised for audio signals, which Pio's file probably does not much resemble; Zip instead is a general data compression.
|
|
|
|
Nov 26 2006, 20:01
Post
#13
|
|
![]() Group: Members Posts: 651 Joined: 10-January 06 From: Zagreb Member No.: 27018 |
Well, it's pure sine signal with some audio drops.
They should compress well, I think. |
|
|
|
Nov 28 2006, 03:22
Post
#14
|
|
|
Moderator Group: Super Moderator Posts: 3934 Joined: 29-September 01 Member No.: 73 |
Yes, the sine part is highly compressible using Winzip. It detects the repetition and encodes it using only one symbol.
I'll never forget how I once compressed a wav with several minutes of silence. Toto.wav -> Toto.zip : 99% compression ratio Toto.zip -> Toto.zip.zip : 99% compression ratio |
|
|
|
Nov 28 2006, 03:57
Post
#15
|
|
|
Group: Members Posts: 2048 Joined: 31-August 05 Member No.: 24222 |
I added a few seconds of silence to the beginning of the signal. I pulled up the second sample of the silence to make a positive reference point. I wrote to CD-RW. I extracted from the CD. There was something funny happening. The extraction started out at speed, slowed down briefly, then speeded up again. However, the extraction was bit identical with the source.
Of course this might not be the result if tried repeatedly, but that possibly isn't interesting enough to make me find out. |
|
|
|
Nov 29 2006, 00:54
Post
#16
|
|
|
Moderator Group: Super Moderator Posts: 3934 Joined: 29-September 01 Member No.: 73 |
Interesting. What burner did you use? The Plextor Premium and 716A could not produce a bit-identical copy of this file.
Here, the easy part is that the weak sectors are at constant level, and the read errors are interpolated. So the erroneous parts are always correct. But in spite of this, these two Plextors produced errors in the sinewave at the neighborhood of the weak parts. |
|
|
|
Nov 29 2006, 02:23
Post
#17
|
|
|
Group: Members Posts: 2048 Joined: 31-August 05 Member No.: 24222 |
This writer says PlexWriter 40/12/40A on the front of the drawer.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 01:32 |