Système Dcalculate, tune, understand

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.

Open the lesson

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

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).

CodecTypeCommon bitratesTo know
MP3 (MPEG-1 Layer III)lossy128 to 320 kbit/sUniversal, 320 kbit/s max
AAClossy128 to 256 kbit/sMP3’s successor, better at equal bitrate; video, platforms
Opus (IETF RFC 6716)lossy6 to 510 kbit/sOpen, low latency; voice, video calls, web
FLAC / ALAClossless≈ 50–70% of PCMArchiving, high-quality distribution
WAV / AIFF (PCM)uncompressedfs × bits × channelsRecording, 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

DestinationUsual format
Live multitrack recordingWAV or BWF, 48 kHz / 24-bit (sometimes 96 kHz), one mono file per track
TV, radioBWF 48 kHz / 24-bit, loudness per spec (−23 LUFS in France)
CD44.1 kHz / 16-bit stereo, with dither
Streaming platforms24-bit WAV or FLAC at project rate; the platform encodes its own
Podcast, webMP3 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

Continue

← Sampling and quantizing · Digital links and clocking →