A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Audio Codecs and File Formats

Graduate Depth 77 in the knowledge graph ☐ I know this ☆ Set as goal
342prerequisites beneath it
See this on the map →
Digital Audio Fundamentals→
audio-formats codecs digital-audio audio-engineering

Core Idea

An audio codec (coder-decoder) is an algorithm for encoding audio data, typically to reduce file size, and decoding it for playback. The choice of codec and container format determines audio quality, file size, playback compatibility, and suitability for specific use cases. Professionals must understand the tradeoffs between lossless and lossy codecs to make appropriate format decisions for recording, editing, delivery, and distribution.

Lossless formats preserve every sample exactly as recorded — the decoded audio is bit-for-bit identical to the original. WAV (Waveform Audio File Format) is the dominant uncompressed format in professional audio — a 24-bit/48kHz stereo file stores approximately 17 MB per minute. AIFF (Audio Interchange File Format) is Apple's equivalent, functionally similar. FLAC (Free Lossless Audio Codec) compresses audio without data loss, reducing WAV by approximately 50–60% — useful for archiving and audiophile streaming (Tidal MQA, Amazon Music HD, Apple Music Lossless use FLAC or ALAC). Broadcast WAV (BWF) embeds timecode and metadata into the WAV container, essential for film and broadcast post-production workflows.

Lossy codecs achieve much greater compression (10:1 or more) by perceptual coding: removing audio content the human auditory system is unlikely to notice — frequencies masked by louder simultaneous sounds, content below the hearing threshold, and temporal post-masking. MP3 (MPEG-1 Audio Layer III) was the dominant consumer format for 25 years. AAC (Advanced Audio Coding) is its successor, used by Apple, YouTube, and streaming platforms — at the same bitrate, AAC sounds better than MP3 due to improved psychoacoustic models. Opus is a highly efficient modern codec (used by Spotify, Discord, WhatsApp) that delivers excellent quality at low bitrates (96–160 kbps) through time-frequency adaptive coding.

Bitrate (kbps — kilobits per second) directly controls the quality/size tradeoff in lossy formats. 128 kbps AAC is sufficient for casual listening; 256–320 kbps is transparent to most listeners; 320 kbps MP3 is the highest standard MP3 bitrate. Variable bitrate (VBR) encoding allocates more bits to complex passages and fewer to simple ones, maintaining consistent perceived quality at lower average file size.

Explainer

The proliferation of audio formats reflects the tension between audio fidelity and practical constraints of storage, bandwidth, and computational resources. In the early history of digital audio, storage and bandwidth were genuinely scarce — MP3's ability to compress CD audio by a factor of 10 was transformative, enabling music to move over the early internet and portable digital players.

Today, storage is cheap enough that lossless streaming is commercially viable (Apple Music delivers 256 kbps AAC as its standard, with lossless ALAC to all subscribers at no additional cost). The practical need for lossy compression has shifted from storage to real-time communication — Opus at 48 kbps powers Discord, WebRTC, and voice calls while delivering intelligible audio with acceptably low latency.

For audio professionals, format decisions cascade through workflows. Always work in the highest-resolution lossless format available during production — any lossy encoding should be a deliberate final delivery step, not an intermediate storage decision. Applying effects and processing to already-lossy files compounds the artifacts, particularly with lossy codecs at borderline bitrates. The standard practice is: capture and edit in WAV/AIFF, master in WAV, deliver in the format and bitrate specified by each platform's technical requirements.

What did you take from this?

Topics in reflective domains aren't scored by quiz answers. Read, reflect, and mark when you've thought it through.

Quiz me anyway →

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Literal Equations → Slope-Intercept Form → Point-Slope Form → Writing Linear Equations → Parallel and Perpendicular Line Slopes → Graphing Linear Equations → Piecewise Functions → Step Functions → Composition of Functions → Inverse Functions → Radical Functions and Graphs → Rational Exponents → Exponential Functions and Graphs → Logarithms Introduction → Pitch and Frequency → Digital Audio Fundamentals → Audio Codecs and File Formats

Longest path: 78 steps · 342 total prerequisite topics

Prerequisites (1)

Leads To (0)

No topics depend on this one yet.