News for hackers. Stuff that matters.
Re:24/192 music downloads are silly by Wicher on Tuesday December 02, 2014 @06:43PM (#8690893)
> some people buy mats to put onto your CDs before putting the CD in a player

An 80-minute, 700 MB CD-R fits 80 * 60 * 44100 * 2 * 2 / 2^20 ~= 807 MB of audio.

Why is that?

The 100MB difference is not just due to the audio TOC being of smaller size than the ISO9660 or UDF file system metadata. It's also because of differences in error correction. I don't have the spec on hand but I recall from when I was investigating this that CD-ROMs use more bits for error correction than audio CDs. That's why you can fit more audio data than "filesystem data" on a CD-R. Reading (ripping, digitally) an audio CD will likely result in different digital audio files every time, since the error correction is not that good, but good enough, for audio.

I read into this when I was wondering why my CD-DA extracted .wavs came out with a different checksum every time. Vibration is one of the factors that would make the same audio CD, read with the same CD player, produce different digital signals some of the time or even every time.

CD-ROMs however, which store digital data, need better correction - you definately don't want a bitflip in your .exe, while a minor amplitude diff — an uncorrected bitflip in the upper bits of a 16-bit PCM signal — is no biggie.

So… I'm not saying that the people using CD mats are informed (or have tested whether the mat makes a difference, or would even know how to go on about testing this, scientifically), but there's more to it than what I originally thought — which was "it's digital so it's never degraded". I wouldn't have known without checking the md5sum of my .wav, though.

Re:24/192 music downloads are silly by Lazlo_Nibble on Tuesday December 02, 2014 @10:42PM (#8691781)
Uh, no. Bit-perfect ripping is trivial and routine, and tools like the AccurateRip DB (which has checksums for around three million different titles you can use to verify the checksums on your own rips) and the CUEtools database (which has recovery records you can use to correct bit errors on your own rips) prove it. I routinely get bit-accurate single-pass high-speed rips--no "paranoid" settings or re-reads--of discs dating back thirty years or more, and so do hundreds of thousands of other people. If you get different checksums on successive rips of the same CD, either the disc is damaged or the drive you're using is failing.
Re:24/192 music downloads are silly by Stratoscope on Tuesday December 02, 2014 @11:40PM (#8691939)
Oh sure, your rips may be perfect at the bit level, but how do you know that they're free of sub-bit quantization that isn't detectable by electronic circuits but can be heard by the human ear?

This sub-bit jitter and interference can travel along with a digital file and sneak right past your ordinary bit-level error detection and correction, no matter how lossless you make it. That's because these errors aren't visible in the bits. They occur at a deeper and more subtle level, in between the bits.

Even if you prove mathematically that two files contain the exact same bits, you can't prove that the human ear won't hear any difference, can you?

Re:24/192 music downloads are silly by jboggan on Wednesday December 03, 2014 @12:40AM (#8692078)
We've discovered digital homeopathy.
Re:24/192 music downloads are silly by oaktowner on Wednesday December 03, 2014 @02:21AM (#8692331)
Funniest reply I've read all day.
Re:24/192 music downloads are silly by the_solution on Wednesday December 03, 2014 @05:47AM (#8692966)
The decoder/player doesn't know how to read between the bits.

Same file -> same playback.

If you hear the same sound file twice (or two identical files) and hear something different, you software is broken or you're imagining things.

Re:24/192 music downloads are silly by Stratoscope on Wednesday December 03, 2014 @06:13AM (#8693045)
Ah, well, the human ear is a much more finely tuned instrument than your decoders and players. Think of the feelings you get when you hear the ocean waves, the birds sing, a thunderclap!

Can you turn this into mere "bits"? Of course not!

That's why it is so important to protect against sub-bit quantization errors, and this can only be done with proper interconnects. Ordinary cables allow the bits to travel willy-nilly until they jam up against each other creating a brittle, edgy soundstage. Quality interconnects are tuned, aligned, and harmonically shielded to keep those precious bits - and the all-important spaces between them - in a smooth flow.

And then, we can hear all of the things that make us human.

Re:24/192 music downloads are silly by eric_h on Wednesday December 03, 2014 @09:18AM (#8693814)
I'm very glad you stuck with the bit (har har) and didn't resort to just telling him he missed the joke. Well done.
Re:24/192 music downloads are silly by andybak on Wednesday December 03, 2014 @06:36AM (#8693131)
Whooosh.
Re:24/192 music downloads are silly by golergka on Wednesday December 03, 2014 @11:12AM (#8694464)
For a second I was terrified at the thought that you're being serious.

That comment is just perfect.

Re:24/192 music downloads are silly by psychometry on Wednesday December 03, 2014 @03:06AM (#8692465)
Flawless satire.
Re:24/192 music downloads are silly by hueving on Wednesday December 03, 2014 @04:19AM (#8692651)
Something about it being on HN also makes you assume a post isn't a joke starting out so I read for a lot longer before I realized what was happening.
Re:24/192 music downloads are silly by gpvos on Wednesday December 03, 2014 @06:28AM (#8693100)
That's also between the bits. See?
Re:24/192 music downloads are silly by black2night on Wednesday December 03, 2014 @04:17AM (#8692642)
Thank you so muuuuuuuch for the uncontrollably laugh i'm having now
Re:24/192 music downloads are silly by maaku on Wednesday December 03, 2014 @02:40AM (#8692394)
Interesting. I'll have to check those projects out. I have the same problem as the GP -- I have a script that rips CDs, taking multiple reads until it gets two bit-for-bit identical copies. And just about every time at least one track is silently "corrupted."

(I put the scare quotes on because I haven't actually bothered to check if there is an audible difference. But it does confirm the GP's experience.)

Re:24/192 music downloads are silly by mfukar on Thursday December 04, 2014 @08:11AM (#8699048)
> bit-accurate single-pass high-speed rips

"military-grade encryption"

Re:24/192 music downloads are silly by lobster_johnson on Wednesday December 03, 2014 @01:17AM (#8692148)
CD-audio "Red Book" data does have error correction (Cross-Interleaved Reed-Solomon Code). Whether you get a bit-perfect audio rip depends on how much error correction and retrying you do.

I remember experimenting with writing a CD ripping program in the 90s, using Windows APIs, and I found, like you, that I got different data each time. But modern rippers such as EAC does this stuff much better and will for the most part give you bit-perfect rips.

That mat does nothing. And if you read that linked page, you will see that he claims it drastically improves audio quality (bass, etc.), which is pure nonsense.

Re:24/192 music downloads are silly by gumby on Tuesday December 02, 2014 @08:58PM (#8691434)
> Vibration is one of the factors that would make the same audio CD, read with the same CD player, produce different digital signals some of the time or even every time.

Err, no.

That makes sense when you have an analog version of the audio picked up by an analog transducer (i.e. a vinyl record) but makes no sense with an isochronous stream of quantized samples.

I suppose a vibration could cause a small phase shift in when the sample physically appears under the LED, but but since the D->A conversion is clocked by a PLL it is irrelevant.

If you have extreme warping or shaking (e.g fling your discman onto the floor or stick your finger on the disk while it's spinning) then a sample might not appear at all, but that's something different than you are talking about.

I suppose it's theoretically possible that some extreme warping or vibration could cause a bit flip, but that's what the ECC is for.

Re:24/192 music downloads are silly by Wicher on Wednesday December 03, 2014 @03:42AM (#8692542)
From Wikipedia (Compact_disc lemma):

"[…] The change in height between pits and lands results in a difference in the way the light is reflected. By measuring the intensity change with a photodiode […]"

I'm no signals expert. Are you saying that there is no quantization in that intensity change measurement?

Regardless of quantization, maybe you're right on vibration not being a major source of errors (I know little about electronics and PLLs).

But then, what are the error sources that made the engineers put an extra 276 bytes of Reed-Solomon error correction per 2352-byte sector on a mode-1 data CD-ROM (vs none on an audio CD, which has just has the frame ECC and nothing extra). See https://en.wikipedia.org/wiki/CD-ROM#CD-ROM_format .

Re:24/192 music downloads are silly by mark-r on Wednesday December 03, 2014 @12:28AM (#8692047)
There was a day when the clock going in to the D/A converter could be affected by the bitstream coming off the CD. Those days are long gone I'm sure. Everything is buffered in RAM, overclocked, and digitally processed before it hits the D/A.
Re:24/192 music downloads are silly by aidenn0 on Tuesday December 02, 2014 @06:52PM (#8690938)
On a decent drive, cdparanoia should successfully rip with no errors on a clean disc. I have done the md5sum test before.
Re:24/192 music downloads are silly by Wicher on Tuesday December 02, 2014 @07:40PM (#8691142)
Re:24/192 music downloads are silly by X-Istence on Tuesday December 02, 2014 @09:59PM (#8691648)
"Oh, and virtually no PC on earth has that kind of I/O throughput; a Sun Enterprise server might, but a PC does not. Most don't come within a factor of five, assuming perfect realtime behavior."

Some statements just don't age well ...

Re:24/192 music downloads are silly by makomk on Wednesday December 03, 2014 @04:39AM (#8692726)
It's generally the lack of synchronization and positioning information compared to data CDs that gets you. In particular, on many older drives you can't reliably start the rip at the same place each time, so even if all the corrections and fixups work perfectly and you get a bit-exact rip (which isn't hard) you still won't get the same file twice.
Re:24/192 music downloads are silly by crazy1van on Wednesday December 03, 2014 @12:47AM (#8692085)
> I read into this when I was wondering why my CD-DA extracted .wavs came out with a different checksum every time.

You sure there isn't something in the wavs like a creation date field that would always cause the checksum to be different? That would make way more sense than "vibration"....

Re:24/192 music downloads are silly by Wicher on Wednesday December 03, 2014 @03:48AM (#8692562)
I did check by diffing the RIFF headers. Here's some info on the metadata: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ . There's little to no room for variance.
Re:24/192 music downloads are silly by aidenn0 on Thursday December 04, 2014 @11:39AM (#8700091)
FYI the difference is almost certainly due to the seeks not being sample-accurate, so your rips are bit identical for each sample, but you are starting in very slightly different places. Either that or you have a really broken CD-ROM drive (which is also possible).