Audio files and formats
Pick and deliver the right format: PCM, WAV, BWF, AIFF, FLAC, MP3, AAC, Opus, bitrate, file sizes and sample-rate conversion.
14-minute lesson · Digital audio. In the app it ends with a three-level quiz and comes with the matching calculators.
An audio file is a run of samples plus reading notes: rate, bit depth, channel count. Per format, samples store raw, squeeze losslessly, or shrink by binning what ears supposedly miss. Picking right avoids an unusable take, a broadcaster-rejected file, or quality loss you’ll never win back.
PCM: raw samples
Linear pulse-code modulation (LPCM, usually PCM) is the simplest form: converter numbers filed nose to tail. No maths to read them, no loss. That’s what digital links carry and what working WAV and AIFF files hold. Its only flaw: size.
Bitrate = fs × bits × channels CD: 44,100 × 16 × 2 = 1,411,200 bit/s ≈ 1,411 kbit/s
Size (bytes) = bitrate (bit/s) ÷ 8 × time (s) 48 kHz / 24-bit stereo: 288,000 bytes/s ≈ 17.3 MB a minute
WAV, BWF and AIFF
- WAV (Microsoft and IBM, RIFF structure): a format chunk (rate, bits, channels) plus a PCM data chunk. The universal format
- AIFF (Apple): the same PCM content in another wrapper; read by nearly all software
- BWF (Broadcast Wave, EBU Tech 3285): a WAV with an extra “bext” chunk: description, author, creation date/time, and the time reference
- BWF time reference: samples elapsed since midnight at the file’s start. It auto-spots each take to the right timecode in post (see Timecode)
- Location recorders often add an iXML chunk: scene name, take, track names
- Limit: a classic WAV tops out at 4 GB (32-bit-coded size). Past that, RF64 / BW64, or one mono file per track
Lossless: FLAC and ALAC
Lossless compression works like an audio-tuned .zip: it predicts each sample from previous ones and stores only the error. Decoding restores exactly the same numbers. Savings depend on music: FLAC usually runs half to two-thirds of WAV. FLAC (Free Lossless Audio Codec) is open and IETF-described (RFC 9639); ALAC (Apple Lossless) does the same inside Apple’s world.
Lossy: MP3, AAC, Opus and psychoacoustics
Lossy codecs lean on psychoacoustics: a loud sound masks quieter ones at nearby frequencies (frequency masking) and just before or after it (temporal masking). The encoder slices the spectrum into bands, gauges what’s masked, and spends bits only on what stays audible. At decent bitrates, very convincing; at low rates you hear artefacts (“warbly” treble, smeared attacks, pre-echoes).
| Codec | Type | Common bitrates | To know |
|---|---|---|---|
| MP3 (MPEG-1 Layer III) | lossy | 128 to 320 kbit/s | Universal, 320 kbit/s max |
| AAC | lossy | 128 to 256 kbit/s | MP3’s successor, better at equal bitrate; video, platforms |
| Opus (IETF RFC 6716) | lossy | 6 to 510 kbit/s | Open, low latency; voice, video calls, web |
| FLAC / ALAC | lossless | ≈ 50–70% of PCM | Archiving, high-quality distribution |
| WAV / AIFF (PCM) | uncompressed | fs × bits × channels | Recording, editing, mixing, pro delivery |
Container and codec
The container is packaging: it files one or more streams plus metadata. The codec is how sound encodes inside. A .m4a can hold AAC (lossy) or ALAC (lossless); .ogg can hold Vorbis, Opus or FLAC; .wav holds PCM almost always; TV’s .mxf carries picture, sound and metadata. So the extension isn’t enough: a player or your DAW’s inspector says what’s truly inside.
Delivery formats: common examples
| Destination | Usual format |
|---|---|
| Live multitrack recording | WAV or BWF, 48 kHz / 24-bit (sometimes 96 kHz), one mono file per track |
| TV, radio | BWF 48 kHz / 24-bit, loudness per spec (−23 LUFS in France) |
| CD | 44.1 kHz / 16-bit stereo, with dither |
| Streaming platforms | 24-bit WAV or FLAC at project rate; the platform encodes its own |
| Podcast, web | MP3 or AAC, after a WAV master |
These formats are common practice, not law: every label, broadcaster or platform publishes its spec. Read it before exporting.
Sample-rate conversion (SRC)
Going 44.1 to 48 kHz, or 96 to 48 kHz, needs a sample rate converter (SRC): it recomputes fresh samples by interpolation and filtering. A good SRC is transparent; a bad one adds aliasing or dulls treble. Unconverted, a 44.1 kHz file played at 48 kHz runs 8.8% fast and ~1.5 semitones sharp. Convert once, with a quality tool, and reduce bit depth last, with dither.
Sources
- BWF : a format for audio data files in broadcasting (EBU Tech 3285) — Union européenne de radio-télévision (UER/EBU)
- WAVE Audio File Format with LPCM audio — Library of Congress, Sustainability of Digital Formats
- RFC 9639 : Free Lossless Audio Codec (FLAC) — IETF
- RFC 6716 : Definition of the Opus Audio Codec — IETF
- Son et enregistrement : théorie et pratique — Francis Rumsey et Tim McCormick