Calculator: Video and audio bitrate to file size
Enter the labelled inputs to calculate: Value (MB); Value (MiB); Value (Mbit/s).
Enter a finite value within the formula’s domain and supported numeric range.
How the calculation works
R=V+A/1000; B=Rt(1+o/100)/8
Image rows are packed to whole bytes without extra row alignment. PCM samples use ceil(bits/8) bytes per channel and floor(rate×duration) sample frames. No compression or file headers are included. Video uses constant average bitrates and a user-supplied overhead percentage. MB is decimal; MiB is binary.
Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
Frequently asked questions
How is the result calculated?
R=V+A/1000; B=Rt(1+o/100)/8
What assumptions apply?
Image rows are packed to whole bytes without extra row alignment. PCM samples use ceil(bits/8) bytes per channel and floor(rate×duration) sample frames. No compression or file headers are included. Video uses constant average bitrates and a user-supplied overhead percentage. MB is decimal; MiB is binary.
How precise are the displayed results?
Numerical results show up to ten significant digits. Rounding does not improve the accuracy of the input measurements or the model. Values must satisfy the formula’s domain. Nonzero results too small or too large for reliable representation are rejected.
How we verified this calculator
The calculator is checked against 3 reference cases computed independently from the sources below. Last passed: .
| # | Inputs | Expected result |
|---|---|---|
| 1 |
Value V (Mbit/s) = 8
Value A (kbit/s) = 192
Duration (s) = 600
Extra allowance (%) = 0
|
Value (MB): 614.4
Value (MiB): 585.9375
Value (Mbit/s): 8.192
|
| 2 |
Value V (Mbit/s) = 5
Value A (kbit/s) = 128
Duration (s) = 3600
Extra allowance (%) = 2
|
Value (MB): 2353.752
Value (MiB): 2244.71283
Value (Mbit/s): 5.128
|
| 3 |
Value V (Mbit/s) = 20
Value A (kbit/s) = 320
Duration (s) = 90
Extra allowance (%) = 5
|
Value (MB): 240.03
Value (MiB): 228.9104462
Value (Mbit/s): 20.32
|
Sources
- The International System of Units (SI), 9th edition (2019) — SI Brochure — Bureau International des Poids et Mesures (BIPM)
- Prefixes for binary multiples (IEC 60027-2: kibi, mebi, gibi…) — National Institute of Standards and Technology