peter.ell said:
I am very curious as to how it's possible for DVDs to even work. After all, DVDs have a single stream of bits encoded on them, right? So how in the world is it possible for that single stream of bits to simultaneously produce picture and multi-channel sound?
If there two streams of data are just inter-leavened, how can the 1's and 0's of picture be differentiated from those of audio, how can there be multiple tracks of audio at once, and how can all this data be reproduced simultaneously without delay or syncing problems since it isn't being read simultaneously?
This is a real conundrum, but I know the solution must be simple, otherwise DVDs wouldn't work! So what's going on? Thank you for the enlightenment!
The solution does not have to be simple, it just has to work. In fact, sometimes the simplest solutions have the most problems.
Optical media uses a reflective surface with holes in it to denote data. When the laser shines on it, it's either reflected by the surface or absorbed by a hole. As a simplification, a reflection would be 1, no reflection 0. The actual encoding system is a little different, but the concept is the same.
The term "burning" came from one way to make the holes. Blank CDs would be a solid reflective surface, and a high powered laser would literally burn holes in it to represent data.
The way a DVD player can tell the difference between audio and video data is because DVDs have a standard format. The standard means that the player can expect certain kinds of data to be in a certain place. If the data didn't follow the standard (for example, putting in a DVD-ROM from a video game) the player wouldn't be able to interpret it right, and it wouldn't play.
As for how it can read audio and video data at the same time, it doesn't. The data is read into a buffer, and the software works on the data in there to make the picture and sound. The read head is always a few steps ahead, reading data into the buffer.
The original CD players would read the data in more or less real-time, and were vulnerable to skipping if you bumped them too hard. That would make the disk wobble, throw off the laser, and the data would be bad. Then CD players with Electronic Skip Protection came out. It used a RAM buffer so that the read head was about 5 seconds ahead of the playback at all times. If it was bumped and skipped a second, it would still be 4 seconds ahead and you wouldn't notice any skip. The reading could then race back up ahead to stay 5 seconds ahead.
As russ said, all this reading and processing happens at a speed far, FAR too fast for our mortal minds to comprehend.
EDIT: Hard disks store files as a single stream of bits too. You could also ponder how the computer is able to read files off of them and all that jazz.