全部
  • 全部
  • 产品管理
  • 新闻资讯
  • 介绍内容
  • 企业视频
  • 企业图册

How Much Storage Do You Need for 30 Days of CCTV Footage? Bitrate, H.265 and Bandwidth Fully Explained


Bitrate (Mbps) is the single parameter that determines hard drive size, switch selection, and remote-viewing smoothness. Two formulas answer everything: storage per camera per day (GB) ≈ bitrate × 10.8, and total bandwidth = sum of simultaneous bitrates × 1.3 headroom. This guide covers encoding, calculation, and procurement sizing.

TL;DR

  • Bitrate is the source of everything: HDD size, switch spec, and remote lag all trace back to one number — per-camera bitrate (Mbps)
  • Core formula: 30-day storage per camera (GB) ≈ bitrate (Mbps) × 324
  • H.265 saves ~40-50% bitrate vs H.264 at equal quality — halving your HDD budget
  • Main/sub stream: record the main stream, view remotely on the sub stream — remote lag is usually a sub-stream or uplink issue
  • NVRs have an incoming bandwidth ceiling: a "32-ch" NVR rated 160 Mbps overloads on 32 × 6 Mbps H.264 cameras
  • Size HDDs with N+1 headroom: if you calculate 6 TB, buy 8 TB

1. What Is Bitrate: The Starting Point of Every Calculation

The same 4MP camera at 2 vs 8 Mbps differs 4x in detail, HDD consumption, and bandwidth. Four factors set bitrate: resolution, codec, frame rate, and scene complexity — cluttered scenes (foliage, crowds, rain) push VBR instant rates 2-3x above nominal. That is why "lab-measured bitrate" never matches the field.Bitrate (Mbps) is the data volume a camera produces per second; it simultaneously determines image quality ceiling, storage footprint, and network load. 

2. H.264 vs H.265 vs H.265+: Savings Are HDD Money

A 32-channel 4MP project needs ~33 TB for 30 days on H.264 but only 17-20 TB on H.265.Codec directly determines storage budget: H.265 saves ~40-50% bitrate vs H.264 at equal quality; smart codecs (H.265+/Smart265) save a further 30-70% in low-motion scenes. 

Codec

Typical 4MP bitrate

32 ch × 30 days

Compatibility

When to use

H.264

6 Mbps

~33 TB

Best; all legacy devices decode

Only for legacy reuse

H.265

3-4 Mbps

~17-20 TB

Supported since ~2016

Default for new projects

H.265+ / Smart265

1.5-3 Mbps (scene-dependent)

~8-15 TB

Needs same-brand NVR/VMS

Warehouses, night perimeters

Smart codec caveat: 

H.265+ maintains static backgrounds at ultra-low rates and allocates bandwidth to moving objects — the emptier the scene, the bigger the saving. Budget using standard H.265 values and treat smart-codec gains as headroom. Two real traps: old PCs/phones may not hard-decode H.265, and cross-brand H.265+ usually falls back to standard H.265.

3. Main Stream vs Sub Stream: The Real Cause of Remote-View Lag

90% of remote-view lag is a sub-stream or uplink-bandwidth problem, not a camera problem. Troubleshoot in order: site uplink bandwidth (remote viewing should use the sub stream at ~1 Mbps per channel budget), whether the sub stream is enabled, and P2P relay vs direct DDNS connection.Cameras output two streams: main (HD, for recording and local walls) and sub (low-res, for mobile remote and multi-view). 

4. NVR and Switches: Two Bottlenecks That Get Overloaded

A 160 Mbps NVR with 32 × 6 Mbps cameras (192 Mbps needed) overloads into random frame drops. Formula: required incoming bandwidth ≥ channels × main bitrate × 1.2."32 channels" is only a channel count; the true ceiling is the NVR incoming-bandwidth spec. 

  • Switch rule: 100M ports deliver ~70-80 Mbps usable; camera ports are fine at 100M but uplinks must be gigabit — 24 × 4 Mbps = 96 Mbps saturates a 100M uplink
  • Check backplane bandwidth on cheap gigabit switches: total bitrate × 1.3 should stay under 60% of backplane
  • PoE budget: size the total wattage for night peak draw (IR on, 10-15 W per bullet), not daytime — a 250 W 24-port switch can reboot at night with 24 IR bullets

5. HDD Sizing: Full Formula and Quick Table

Total (TB) = channels × bitrate (Mbps) × days × 0.0108, then ×1.1 formatting loss, then provision N+1 bays.Three steps: per-camera storage, times channels, plus redundancy. 

Per camera per day (GB) = bitrate (Mbps) / 8 x 3600 s x 24 h / 1000 = bitrate x 10.8

Per camera 30 days (GB) = bitrate x 324

Total (TB) = channels x bitrate x days x 0.0108 x 1.1

Example: 32 ch x 4 Mbps x 30 x 0.0108 x 1.1 = 45.6 TB -> 8 x 8 TB

Resolution / codec

2 Mbps

3 Mbps

4 Mbps

6 Mbps

8 Mbps

2MP H.265 (typ. 2-3M)

648

972

-

-

-

4MP H.265 (typ. 3-4M)

-

972

1296

-

-

4MP H.264 (typ. 6M)

-

-

-

1944

-

8MP/4K H.265 (typ. 6-8M)

-

-

-

1944

2592

Surveillance HDD vs desktop HDD: 

Surveillance drives (WD Purple, Seagate SkyHawk) are firmware-optimized for 24/7 sequential writes, rated 180 TB/year workload vs ~55 TB/year for desktop. A 32-ch 4 Mbps project writes ~140 TB/year — desktop drives will not survive two years. The price gap is only ~20%; there is no reason to cheap out.

6. Do You Need RAID? Respect the RAID 5 Rebuild Risk

For up to 8 bays, RAID 5 is the value choice; above 16 bays or for uptime-critical footage, use RAID 6 or N+M hot standby. With 8 TB+ drives, RAID 5 rebuild takes 24-48 hours during which the array is unprotected and heavily loaded — the second-disk failure probability rises sharply. Go RAID 6 at 8 TB and above.RAID protects against single-disk footage loss at the cost of capacity and rebuild risk. 

7. Worked Example: 48 Channels, 90 Days Retention

Codec H.265, 4MP @ 4 Mbps/ch

Storage: 48 x 4 x 90 x 0.0108 x 1.1 = 205 TB

RAID 6 (N-2): raw ~ 205 / 0.85 = 241 TB

Config: 2 x 16-bay NVR, 16 x 8 TB each

NVR bandwidth: 24 ch x 4 Mbps x 1.2 = 115 Mbps per NVR -> pick >= 256 Mbps model

Switch: 24-port PoE per 24 cams, gigabit uplink, PoE budget >= 24 x 15 W = 360 W

Remote: enable sub stream; site uplink >= concurrent remote channels x 1 Mbps

Acceptance tip: 

at handover, spot-check 3 cameras in the NVR stream properties, compare actual vs configured bitrate, then back-calculate real retention days with channels x measured bitrate x days x 0.0108. Never verify by total HDD capacity alone.

8. FAQ

Q: Can I extend retention by adding drives later?

A: Yes, if the NVR has spare bays or an expansion shelf, supports the larger per-disk capacity, and the PSU can power more drives. In practice, bays bought cheap upfront are usually full — size for target retention at purchase.

Q: How much does motion-triggered recording save?

A: 60-80% in low-motion scenes, with three risks: mis-set sensitivity misses key events; "it just did not record" gaps are hard to explain in disputes; finance and hazardous-goods regulations often mandate 24/7 continuous recording. Keep critical points continuous; use motion + 30 s pre/post on the rest.

Q: Can cloud storage replace the local NVR?

A: One 4 Mbps channel needs ~1.3 TB per 30 days in the cloud; at mainstream cloud pricing that is ~10x the amortized local-HDD cost per channel per month. The realistic pattern is hybrid: full footage local, alarm clips and key points backed up to cloud.

Q: Why is real retention always shorter than calculated?

A: Four causes by probability: VBR spikes above nominal in busy scenes; "dynamic quality boost" features raise bitrate on motion; decimal vs binary capacity (1 TB vs 1 TiB) loses ~9%; audio and analytics metadata consume space. A 1.1-1.2 redundancy factor covers the first three.

Q: Uplink is limited but I want HD remote viewing?

A: Three options: view live on sub stream and pull single-channel main stream only for evidence (most practical); upgrade to business broadband with higher uplink; or deploy an edge gateway doing on-site AI so only event clips upload, cutting bandwidth by 90%+.

Related News

Explosion Proof Surveillance Camera Guide: Selection and Installation for Gas Stations, Oil Depots, Chemical Plants, Mining

Target readers: security owners, system integrators, and EHS engineers for petrochemical, oil and gas, pharmaceutical, powder processing, and coal mining sites where explosive gas or combustible dust exists. Core takeaway: a normal camera is itself an ignition source in flammable environments. You must use explosion proof cameras certified to ATEX, IECEx, or China Ex, selected by hazard zone, installed with proper grounding, and documented for compliance. This guide gives a reusable selection, install, and acceptance workflow.

Nov 08,2026

4G 5G Cellular Surveillance Camera Guide: Remote Video without Broadband

Target readers: security owners and integrators for farms, orchards, fisheries, construction, oil and mining sites, vehicle fleets, and remote African villages where broadband is scarce. Core takeaway: when there is no fiber, no broadband, and frequent power loss, a SIM card cellular camera is the easiest and most scalable remote video option. This guide gives a reusable architecture covering power, data, backhaul, AI, and compliant deployment.

Nov 08,2026

Analog CCTV Upgrade Guide: Coax HD Reuse vs Full IP Rebuild, Cost and Timeline Compared

Factory, campus and retail chains running analog surveillance for five or six years face the same wall: blurry images, unretrievable footage, and no path to AI analytics on legacy hardware. This guide breaks down pre-upgrade system inventory, compares the coax-HD reuse route against a full IP rebuild, gives bandwidth and storage recalculation formulas, and lays out a zoned, non-disruptive cutover plan with a selection checklist.

Oct 31,2026

Analog CCTV Upgrade Guide: Coax HD Reuse vs Full IP Rebuild, Cost and Timeline Compared

Factory, campus and retail chains running analog surveillance for five or six years face the same wall: blurry images, unretrievable footage, and no path to AI analytics on legacy hardware. This guide breaks down pre-upgrade system inventory, compares the coax-HD reuse route against a full IP rebuild, gives bandwidth and storage recalculation formulas, and lays out a zoned, non-disruptive cutover plan with a selection checklist.

Oct 31,2026

CCTV Maintenance Outsourcing: SLA Tiers, Market Rates, KPI and Contract Playbook

Conclusion first: the real cost of a surveillance system is in its operation. Three years of maintenance typically equals 30% to 50% of the build cost, yet most buyers spend the budget at install and leave operation to whoever happens to notice. Lock the maintenance boundary while signing the build contract. This guide breaks down the in-house versus outsourced decision model, a three-tier SLA (P1 / P2 / P3), per-point market rates and how to read a quote, the two KPIs that decide payment (camera online rate and footage integrity), the five clauses every contract must hold, the 90-day handover that most often loses control, plus a selection checklist and acceptance tests.

Oct 25,2026