Menu

1 / 2

Audio Is ~1% of Your Video: Bitrate Arithmetic for MP3, AAC and WAV

DEV Community: beginners·CompressVid·3 days ago
#dDOvYFLu
#devtobeginners#devto#dev#kbps#bitrate
Long article (775 words) — no AI summary yet.
Reading 0:00
15s threshold

Disclosure: I work on CompressVid . These numbers come from our own test files. Sizes are as shown by the tool, which counts in binary units (KiB/MiB). Bitrates are my own size × 8 / duration arithmetic.

Audio feels heavy because WAV files are big. But in a typical video, the soundtrack is a rounding error. Here are four real results, and the arithmetic that predicts each one.

The formula for audio is even simpler

Compressed audio is usually constant bitrate (CBR) or close to it, so:

size (bytes) ≈ bitrate (bits/s) × duration (s) / 8

Enter fullscreen mode

Exit fullscreen mode

Uncompressed PCM (WAV) is fully determined by its format:

PCM bitrate = sample rate × bit depth × channels CD quality = 44,100 × 16 × 2 = 1,411,200 bits/s ≈ 1,411 kbps

Enter fullscreen mode

Exit fullscreen mode

Result 1: a WAV file is exactly what the maths says

Our test WAV was a 3:00 track, shown as 30.3 MB .

const kbps = ( bytes , sec ) => bytes * 8 / sec / 1000 ; kbps ( 30.3 * 1 _048_576 , 180 ); // ≈ 1412 kbps → 44.1…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.