BITRATE AND STORAGE
How to Estimate Video File Size—and Leave Useful Headroom
Multiply duration by the combined average bitrate, convert bits to bytes, label the unit convention, and add evidence-based headroom.
SHORT ANSWER
The decision in one minute
Estimated bytes = duration in seconds × total average bits per second ÷ 8. Total bitrate includes video plus every audio track and any other material contribution. The result is exact only for a constant measured average; variable-bitrate encodes, muxing overhead, metadata, captions, and alternate tracks create variance.
Build the estimate in base units
Convert the whole programme duration to seconds. Add video and all audio-track bitrates in the same bits-per-second unit. Multiply, divide by eight, then convert bytes to MB/GB or MiB/GiB. Keep the unrounded byte result until display.
Decimal GB uses 1,000,000,000 bytes; GiB uses 1,073,741,824 bytes. Storage vendors, operating systems, upload limits, and production teams may label these differently, so report both or state the convention.
Know what the bitrate represents
A target encoder bitrate may be constant, constrained variable, or quality-driven variable bitrate. A VBR target does not guarantee the final average. Short complex programmes and multipass behavior can deviate materially. Measure the completed file when the limit is strict.
Do not add the nominal bitrate of a mezzanine source when estimating a newly encoded deliverable. Use the output codec settings. Include all delivered language, descriptive, and surround tracks; distinguish kb/s from kB/s.
Add headroom for what the simple equation omits
Containers add indexes, timestamps, metadata, and packet overhead. Captions and chapters are usually small, but extra video/audio streams are not. Some platforms impose a hard decimal-byte limit while cloud storage forecasts care about every derivative and backup copy.
Use a documented margin based on prior encodes with the same codec, mode, duration, and content type. For a hard cap, solve for an allowed total bitrate after reserving overhead and audio, then test an encode.
Use platform guidance as a delivery input, not a universal truth
YouTube’s official upload guidance recommends specific ranges by resolution and frame rate and says to upload at the recorded frame rate. Those values are for that service’s ingest workflow, not an archival master, broadcaster, or another platform.
Keep the destination specification, encoder version, codec/profile, raster, frame rate, color, audio layout, target mode, actual size, and actual average bitrate with the estimate. That history improves future headroom.
A practical workflow
- Confirm the final programme duration and delivery specification.
- Add output video and every audio-track bitrate in bits per second.
- Calculate bytes and label decimal GB versus binary GiB.
- Reserve documented overhead and safety margin for the encoding mode.
- Run a representative encode and measure actual size/average bitrate.
- Record settings and variance; revise before the final batch.