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…