Calls and email answered 24/7/365 · An HSM Company contact@hsmservices.ca 1 800 716 8955

Security Cameras guide

How to calculate NVR and VMS storage

Bitrate, retention, H.265 and RAID: a worked method for sizing recorder storage you will not outgrow.

  • Advanced
  • 5 min read
  • Includes diagram

Key points

  • Storage per day in GB = bitrate in Mb/s × 10.8. Multiply by days and cameras.
  • Bitrate depends on resolution, frame rate, codec and how busy the scene is. Measure it on site, at night as well as by day.
  • H.265 and smart codecs cut storage substantially, but only if the recorder and cameras both support them.
  • Add headroom and RAID overhead. A recorder that runs short of space silently cuts your retention.

Recorder storage is where many camera quotes quietly cut corners. The spec sheet promises 30 days, but nobody calculated it, and three months after install the recorder is keeping eleven. This guide gives the method we use so you can check any proposal, or size a system yourself.

The core formula

Cameras send a stream measured in megabits per second (Mb/s). To turn that into storage:

Formula

GB per day = Mb/s × 86,400 seconds ÷ 8 bits per byte ÷ 1,000 = Mb/s × 10.8
Total TB = GB per day × retention days × cameras ÷ 1,000

So a camera averaging 4 Mb/s writes about 43 GB a day, or about 1.3 TB for 30 days. Twenty such cameras need about 26 TB before headroom and RAID.

Worked example: 20 cameras, 30 days Average bitrate 4 Mb/s per camera × 10.8 seconds, bits, bytes 43.2 GB per day per camera × 30 days × 20 cameras 25.9 TB net video + 20% headroom about 31 TB RAID 6: 8 × 6 TB drives 36 TB usable, survives two drive failures Formatted capacity shows about 9 percent less, because drives are sold in decimal TB.
Diagram Work from measured bitrate to net storage, then add headroom and RAID overhead to reach the drives you actually buy.

Getting a realistic bitrate

Bitrate is the number everything hangs on, and it is the one most often guessed. It depends on:

  • Resolution. More pixels need more bits, though not in direct proportion.
  • Frame rate. 10 to 15 frames per second is enough for most security views. 25 to 30 is worth it at cash counters or where fast action matters. Halving frame rate cuts storage substantially.
  • Scene activity. A busy lobby, trees moving in wind, rain and snow, or a parking lot full of headlights all raise the bitrate. A quiet corridor barely registers.
  • Night noise. At high gain, sensor noise looks like motion to the encoder, and night bitrates can exceed daytime. See low light, IR and WDR.
  • Codec and settings. H.264, H.265, smart codecs, quality level and GOP length, the interval between full reference frames.

The reliable way is to measure. Set up the camera, or a sample camera in a similar scene, and read the average bitrate from the camera or VMS over a full day including the night. Manufacturer bandwidth calculators are a good starting point when that is not possible, but feed them honest scene activity levels.

Codecs: H.264, H.265 and smart codecs

H.265 (HEVC) typically delivers similar image quality to H.264 at a substantially lower bitrate, often in the range of 30 to 50 percent less, with the biggest savings on static scenes. Most manufacturers also offer smart codec modes that lengthen the GOP and reduce quality in unchanging background areas, which can cut storage further on quiet cameras. Check three things before counting on the savings: the recorder and VMS support the codec, the client software and mobile app can decode it smoothly, and exported clips will play for the people you give them to.

Continuous or motion recording

ModeStorageTrade-off
ContinuousHighest, predictableNothing missed, simplest to search by time
Motion or event onlyLower, varies with activityCan miss slow or subtle events; misconfigured zones lose evidence
Continuous low rate, high rate on motionMiddleGood balance; needs a VMS that supports it

If you size for motion recording, use a conservative activity estimate. A busy period, a snowstorm or a moved shelf can triple recording time without warning, and the recorder will simply keep fewer days.

RAID and drives

Recorders with more than a couple of drives should protect video with RAID. The choice affects both usable space and what happens when a drive fails.

Eight drives, two ways RAID 5 P 7 drives usable. Survives one failure, but a second failure during the long rebuild loses everything. RAID 6 P Q 6 drives usable. Survives two failures, so the array stays protected during a rebuild. Video capacity Parity capacity (spread across all drives in practice)
Diagram With large surveillance drives, rebuilds take a long time. RAID 6 keeps the array protected while it happens.
  • Use drives designed for continuous surveillance or NAS workloads, not desktop drives.
  • Prefer RAID 6, or RAID 5 with a hot spare, once arrays reach several large drives.
  • Keep the operating system and VMS database on separate drives from the video array on server-based systems.
  • Set up alerts for drive health and recording failures, and send them to someone who reads them.
  • Enable SD card edge recording on critical cameras, so a network outage does not leave a gap.

Checking a proposal

  1. Ask for the bitrate assumption. A storage figure without a per-camera bitrate, frame rate and codec is a guess.
  2. Check the recording mode. If the calculation assumes motion recording, ask what activity percentage was used.
  3. Check usable, not raw. Confirm whether the quoted terabytes are before or after RAID.
  4. Look for headroom. Around 20 percent leaves room for busy periods and a few more cameras.
  5. Verify after install. After two weeks, check the recorder's actual oldest recording date against your target. Our maintenance checklist includes this check.

The retention target itself should come from your privacy policy, not just the budget. See retention, signage and privacy.

Want a professional to handle it?

Our technicians install and certify security cameras for businesses of every size. Send us the details and we will come back with a plan.