UA
Video surveillance

How do you calculate CCTV storage: bitrate, codec and retention days?

Archive size equals the stream bitrate multiplied by the retention time. A single 1 Mbps stream produces 10.8 GB per day, so 16 cameras at 2 Mbps over 30 days need about 10.4 TB, or about 12.4 TB with 20% headroom. This is an estimate based on assumptions; determine the real bitrate from the scene and the camera settings.

IQ Trading, engineering teamUpdated: 7 min readChecked against Axis and Hanwha Vision documentation
Article contents

Key points

  • Formula: GB per day = bitrate (Mbps) × 0.108 for one stream; 1 Mbps gives 10.8 GB per day
  • Bitrate depends on resolution, frames per second, codec, scene and lighting, so our figures are an estimate
  • Axis Zipstream reduces bitrate by 50% or more on average, and Hanwha WiseStream III states ranges of 30–80% depending on mode
  • Add headroom to the calculated volume and account for RAID overhead

What is the storage calculation formula?

For a single stream, the daily volume is calculated like this:

GB per day = bitrate (Mbps) × 3600 × 24 / 8 / 1000 = bitrate × 10.8

Total archive size equals the daily volume multiplied by the number of cameras and the retention days. Then add headroom, usually 15–20%, and a RAID adjustment. In this article we take the headroom as our own assumption; there is no manufacturer standard for it.

Example: 16 cameras at 2 Mbps, 30 days. A camera's daily volume is 21.6 GB, 16 cameras give 345.6 GB per day, and 30 days give 10,368 GB, that is, about 10.4 TB. With 20% headroom the result is 12.4 TB.

What does a table of examples look like?

The bitrates in the table are illustrative and given for comparison. This is our estimate for recording with the H.265 codec in a typical scene, not manufacturer data. For a project, take values from a calculator or from a test recording at the site.

Example bitrate, MbpsGB per day, 1 cameraGB for 30 days, 1 cameraTB for 30 days, 16 camerasTB with 20% headroom
110.83245.26.2
221.664810.412.4
443.2129620.724.9
886.4259241.549.8

Going from 14 to 30 days increases the volume 2.14 times, and going to 90 days increases it 6.4 times. So retention time affects the cost of the system more than the choice between two similar models.

What determines bitrate?

Bitrate depends on resolution, frame rate, codec and scene complexity. Motion, noise and low light increase the stream. In its Zipstream document, Axis notes that noisy night scenes need much more data, and that the savings depend on activity in the frame.

Axis recommends variable bitrate (VBR) instead of constant, because constant can discard details that matter for an investigation. For cameras that record continuously, plan the bitrate with headroom for night: the daytime average will give an underestimate.

How much do codecs and smart compression save?

Axis Zipstream reduces bandwidth and storage needs by 50% or more on average compared with standard compression. It consists of three algorithms. Dynamic ROI gives 10–50%, dynamic GOP 0–50%, and dynamic FPS 0–50%. In Axis measurements, savings ranged from 25% for a lit store at a low level to 99.7% for continuous night recording at the highest level. For cloud cameras and recording to a card, the document recommends level 30 with dynamic GOP enabled.

Hanwha WiseStream III uses AI object detection and blurs areas without objects. According to Hanwha Vision, the bitrate reduction compared with the mode turned off is roughly 30–70% for Low, 35–75% for Mid and 40–80% for High. In a test video, the average stream at High dropped from 2498 to 747 kbps, about 70%. The result depends on the scene, and "up to 80%" applies to environments with limited complexity.

In a calculation, it is better to use a conservative value. If you take the stream after compression, measure it on the real scene over a full day. Also, in some VMS products dynamic GOP and FPS may play back unevenly, so check this in a pilot. Cameras with smart coding are also covered in the article on AXIS ARTPEC-9 and AV1.

Continuous or event-based recording?

Recording on motion or on an event reduces the volume but depends on activity at the site. In a warehouse at night there is little activity, and at a store entrance during the day there is a lot. For estimating, use a load factor: 100% for continuous recording and 30–50% for event-based recording. This is our assumed working estimate, and you should refine it from the event log.

Often entrance cameras and critical zones record continuously, and auxiliary areas record on events. This combination balances storage volume and completeness of evidence.

What is the practical order of calculation?

  1. For each camera, determine resolution, frames per second, codec and recording mode.
  2. Measure the real bitrate over a test day or take it from the manufacturer's calculator.
  3. Multiply the bitrate by 10.8 and by the number of retention days.
  4. Add 15–20% headroom and a RAID adjustment.
  5. Check the network and recording server throughput, because they limit the total stream.

Storage must also hold other streams, for example a second stream from each camera for an analytics channel. To choose a platform and recording modes, see also the VMS comparison.

How IQ Trading helps

IQ Trading is the official distributor of Axis Communications and Hanwha Vision in Ukraine. Our engineers can help estimate the archive size for your camera list, choose compression settings and provide equipment for a test recording. The Axis training program is described on the Axis training page. Authorized Axis and Hanwha service is available, and technical support is open Mon–Fri 9:00 AM–6:00 PM (Kyiv time).

We select recording servers and a VMS for the calculated archive within the video surveillance solution.

Frequently asked questions

How much space does one camera use per day?

At a bitrate of 1 Mbps it is 10.8 GB per day, and at 2 Mbps it is 21.6 GB. The real bitrate depends on the scene, codec and settings, so this is an estimate.

How do you calculate a 30-day archive for 16 cameras?

Multiply the bitrate by 10.8, by 16 cameras and by 30 days, then add 15–20% headroom. For 2 Mbps it is about 10.4 TB, or about 12.4 TB with 20% headroom.

How much does Zipstream save?

Axis states average savings of 50% or more compared with standard compression. The range in Axis measurements is 25% to 99.7% depending on the scene and level.

How much does WiseStream III save?

Hanwha Vision gives ranges of about 30–70% for Low, 35–75% for Mid and 40–80% for High. The result depends on scene complexity.

Read also

All knowledge base articles →