Improving .deb
Improving .deb
Posted May 28, 2019 19:53 UTC (Tue) by mbunkus (subscriber, #87248)In reply to: Improving .deb by ncm
Parent article: Improving .deb
The fundamental difference between A/V containers & file containers is how multiple streams/tracks/files are laid out. In a file container all files are laid out one after the other. Accessing the content of one file is ideally as seeking to its start position and doing one long read operation.
In an A/V container, on the other hand, you place those parts of each stream/track close together that need to be played together. All of the data is tightly interleaved by their timestamps. This is done in order not to have to seek forward and backward all the time, which is especially atrocious for transports with high latency (e.g. optical discs or online streaming). In the Good Old Days™ there were a lot of AVI files (and I even have a couple of MP4 files) where track content was laid out like in a file container (first all the video data, then all the audio data), and playing such a file from a CD-ROM was neigh impossible.