8,720
edits
Changes
m
→File Formats
It's important to understand that file formats do not necessarily indicate the exact codec used to encode the audio they contain. They are best thought of as <u>containers</u>, with a defined header format. This allows various software to know how to extract the header information, where to find the audio data in the file, and how to decode it. A <u>codec</u> is what is actually used to en<u>co</u>de or <u>dec</u>ode the audio. Most audio player software has its own codecs, while some can refer to external software. Most file formats are limited, however, to support only a few codecs. Thus, it is common to associate compression/encoding schemes with file formats.
<u>Compression</u> uses various techniques to reduce the file size of digital audio. The main concern with compression is whether it noticeably degrades the audio signal - many schemes result in a loss of quality, known as <u>lossy</u> compression. Such compression is based upon human perception - reducing detail in places that it is least likely be noticed(ex. replacing multiple cymbal hits with high-frequency noise). Of course, different implementations may be more noticeable than others; and many feature different settings, allowing trade-offs between the compression ratio and quality of audio. Different types of compression are not necessarily firm, either. For example, the common "mp3" compression is subject to interpretation, with some implementations considered better (less evident in audio playback for the same compression ratio) than others.
<u>Lossless</u> compression, on the other hand, results in no signal degradation, and the file can be converted back and forth from compressed and uncompressed formats without any change in the sample data. Compared to lossy compression, it typically features a much smaller compression ratio, and thus results in larger file sizes.
