ThisCalculator

Everyday

Camera Bitrate Calculator: How to Set It

Updated · Standard formula, shown below

The calculator for this page is switched off while it is checked. The formula is below, and the worked example in the article shows how to use it by hand.

A camera bitrate calculator works out the amount of data your video stream or recording will produce per second, based on the resolution, frame rate, and compression settings you choose. You enter the video length, resolution, frame rate, and bitrate, and it returns the file size, or you enter a target file size and it returns the required bitrate. This helps you balance video quality against storage space and bandwidth.

Formula

The core formula is simple: File size (bytes) = Bitrate (bits per second) × Duration (seconds) ÷ 8. The division by 8 converts bits to bytes, since there are 8 bits in a byte. For video, the bitrate is usually expressed in megabits per second (Mbps), and file size in megabytes (MB) or gigabytes (GB).

In the calculator above, the formula is:

File size (GB) = (Bitrate (Mbps) × 1,000,000 ÷ 8) × (Duration (min) × 60) ÷ 1,000,000,000

Where:

  • Bitrate (Mbps) – the number of megabits of video data per second. This is the key variable you control.
  • Duration (min) – length of the recording or stream.
  • 1,000,000 – bits per megabit (using decimal, as storage devices typically do).
  • 8 – bits per byte.
  • 1,000,000,000 – bytes per gigabyte (decimal).

If you want the result in mebibytes (MiB) or gibibytes (GiB), use 1,048,576 and 1,073,741,824 instead. Most camera manufacturers and storage drives use decimal units, so the calculator follows that convention.

Worked Example

Using the default values: 60 minutes of video at 8 Mbps.

  1. Convert bitrate to bytes per second: 8 Mbps × 1,000,000 = 8,000,000 bits/s ÷ 8 = 1,000,000 bytes/s.
  2. Convert duration to seconds: 60 min × 60 = 3,600 seconds.
  3. Multiply: 1,000,000 bytes/s × 3,600 s = 3,600,000,000 bytes.
  4. Convert to gigabytes: 3,600,000,000 ÷ 1,000,000,000 = 3.6 GB.

The calculator returns 3.60 GB, matching the step-by-step calculation. This is the file size for one hour of 1080p video at a typical streaming bitrate.

Why Bitrate Matters

Bitrate is the single biggest factor in video file size and quality. A higher bitrate preserves more detail and reduces compression artifacts, but it consumes more storage and bandwidth. A lower bitrate saves space but can introduce blockiness, especially in fast-moving scenes.

For surveillance cameras, bitrate directly affects how long you can store footage on a given hard drive. For streaming, it affects the upload bandwidth required and the quality viewers see. For filmmakers, it determines how much footage fits on a memory card.

Most modern cameras use variable bitrate (VBR), which adjusts the bitrate based on scene complexity. The calculator assumes a constant bitrate (CBR) for simplicity, which is a good approximation for estimating maximum file size.

How to Choose the Right Bitrate

Choosing a bitrate involves trade-offs. Here are general guidelines for common scenarios:

  • 1080p at 30 fps – 4–8 Mbps for streaming, 8–12 Mbps for high-quality recording.
  • 1080p at 60 fps – 6–12 Mbps for streaming, 12–20 Mbps for recording.
  • 4K at 30 fps – 15–35 Mbps for streaming, 35–70 Mbps for recording.
  • 4K at 60 fps – 25–50 Mbps for streaming, 50–100 Mbps for recording.
  • Security cameras – 2–6 Mbps per camera at 1080p, depending on detail and frame rate.

These are starting points. For archival footage where quality is critical, use the higher end. For casual streaming, the lower end is often acceptable.

If you have a target file size, rearrange the formula: Bitrate (Mbps) = (File size (GB) × 8 × 1,000,000,000) ÷ (Duration (s) × 1,000,000). For example, to fit a 90-minute movie in 4 GB: (4 × 8 × 1e9) ÷ (5400 × 1e6) ≈ 5.93 Mbps.

Common Mistakes and Misconceptions

One common mistake is confusing megabits (Mb) with megabytes (MB). A file size listed as 800 MB is 800 megabytes, not 800 megabits. The calculator handles this, but when reading specs, always check the case: Mbps vs MB/s.

Another mistake is using binary units (MiB, GiB) when the camera or storage uses decimal. Most hard drives are marketed in decimal GB, but operating systems often show binary GiB. The difference is about 7% – a 100 GB drive shows as 93.1 GiB in Windows. This can lead to underestimating storage needs.

Some people assume higher resolution always requires proportionally higher bitrate. While 4K does need more bitrate than 1080p for the same quality, the relationship is not linear. Modern codecs like H.265/HEVC can deliver similar quality at roughly half the bitrate of H.264, but not all devices support them.

Also, bitrate is not the only quality factor. Color depth, chroma subsampling, and the encoder’s efficiency matter. A poorly encoded 20 Mbps stream can look worse than a well-encoded 10 Mbps stream.

Practical Applications

Here are real-world uses for a bitrate calculator:

  • Security systems: Estimate how many days of footage a hard drive can hold. For example, a 4TB drive with 8 cameras at 4 Mbps each: total bitrate = 32 Mbps, daily storage = (32 × 3,600 × 24) ÷ 8 / 1,000,000 ≈ 345.6 GB, so about 11.5 days.
  • Streaming: Determine if your upload speed can handle a stream. If you have 10 Mbps upload, a 6 Mbps stream leaves headroom for other traffic.
  • Video production: Calculate how many minutes of footage fit on a 128 GB card at 100 Mbps: (128 × 8 × 1,000) ÷ 100 = 10,240 seconds ≈ 170 minutes.
  • Cloud storage: Estimate monthly upload volume for continuous recording. A 24/7 camera at 4 Mbps produces about 1.3 TB per month.

When planning storage, always add a safety margin. Actual bitrate can spike above the average, especially with VBR and high-motion scenes. A 20% buffer is a good practice.

Limits of the Calculator

This calculator assumes constant bitrate and ignores audio, container overhead, and metadata, which add a small amount (typically 1–5%). For accurate capacity planning, add a few percent to the result.

It also does not account for the efficiency of different codecs. H.264, H.265, VP9, and AV1 all produce different file sizes for the same visual quality. The bitrate you enter is the actual stream bitrate, not the “equivalent” quality bitrate.

For security cameras with motion detection, the actual bitrate varies dramatically – near zero when nothing moves, high when there is activity. The calculator gives an average, which is fine for long-term estimates but not for short bursts.

Frequently Asked Questions

What is a good bitrate for 1080p video?

For 1080p at 30 fps, a bitrate of 8 Mbps is a solid middle ground for streaming and recording. For high-motion content or archival, use 12–16 Mbps. For low-motion content like talking heads, 4–6 Mbps can be sufficient.

How much storage do I need for 24/7 recording?

Multiply the bitrate by 3,600 seconds per hour and 24 hours, then divide by 8 to get bytes per day. For a 4 Mbps camera, that is (4 × 3,600 × 24) ÷ 8 = 43,200 MB ≈ 43.2 GB per day. A 1 TB drive holds about 23 days of footage from that camera.

Does higher bitrate always mean better quality?

Up to a point, yes. Beyond a certain bitrate, the encoder cannot add more detail – the source video is already fully captured. Extremely high bitrates waste storage and bandwidth. The optimal bitrate depends on resolution, frame rate, and codec.

Why does my camera’s file size not match the calculator?

Most cameras use variable bitrate, so the actual file size depends on scene complexity. Also, the camera may include audio, which adds a small amount. The calculator gives a close estimate, not an exact value.

What is the difference between CBR and VBR?

CBR (constant bitrate) keeps the bitrate fixed, making file sizes predictable but less efficient. VBR (variable bitrate) adjusts the bitrate to scene complexity, giving better quality per file size but making size unpredictable. Most cameras and streaming software use VBR.

How do I convert bitrate to file size manually?

Use the formula: File size (MB) = (Bitrate (Mbps) × 1,000,000 ÷ 8) × Duration (seconds) ÷ 1,000,000. For example, 10 Mbps for 2 hours: (10 × 1,000,000 ÷ 8) × 7,200 ÷ 1,000,000 = 9,000 MB = 9 GB.

Related

Formula used
in t | Video length | min | 60 | 0
in br | Bitrate | Mbps | 8 | 0
in res | Resolution | - | 1080p=1, 4K=2, 720p=0.5 | 0
in fps | Frame rate | fps | 30 | 0
out size | File size | GB | (br * 1000000 / 8) * (t * 60) / 1e9 | 2
out data_rate | Data rate | MB/s | br / 8 | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.