How do you use the CCTV storage calculator?
Fill in four things and read two answers. The calculator works both ways: from the days you want to the disk you need, and from the disk you have to the days it keeps.
- Cameras: the number of cameras recording to the recorder.
- Hours recorded a day: 24 for continuous recording. For motion-only recording, enter the hours of recording it adds up to; see below.
- Typical setting or bitrate: pick the closest resolution and codec to fill in a starting bitrate, then overwrite it with the real figure from the recorder.
- Days to keep, or disk size: the first answer is the disk needed for the days you chose; the second is how many whole days the disk size you entered holds before the oldest footage is overwritten.
Where do you find the real bitrate on a Hikvision, Dahua or CP Plus recorder?
In the recorder's encoding or video settings for each camera, under the main stream, because the main stream is what most recorders write to disk. The menu names differ by brand and firmware, but every recorder shows the resolution, the codec, the frame rate and a bitrate or maximum bitrate for each channel.
Dahua's network video server manual is one example from a maker: it places these under Setup, Camera, Encode, Encode, with a Bit Rate setting, a reference bit rate suggested for the resolution and frame rate, and a choice of constant (CBR) or variable (VBR) bitrate. On any brand, write down the main-stream bitrate for every channel, since cameras on one recorder are often set differently.
The settings in the calculator's list are typical starting points, not measurements. Two cameras at the same resolution can be set to very different bitrates, so the figure on your own recorder always wins.
What do worked examples give for a shop and a home?
These are estimates from the calculator's own sums, recording all day at a constant bitrate:
- 8 cameras, 2 MP (1080p), H.264, 4 Mbps: 345.6 GB a day. 30 days need 10.4 TB, and a 4 TB disk holds 11 days.
- The same 8 cameras on 2 MP (1080p), H.265, 2 Mbps: 172.8 GB a day. 30 days need 5.2 TB, and the 4 TB disk now holds 23 days.
- 4 cameras, 4 MP, H.265, 3 Mbps, on a 2 TB disk: 15 days before the oldest footage is overwritten.
- The 8-camera H.265 shop on motion-only recording that adds up to 8 hours a day: the 4 TB disk holds 69 days.
How many days of CCTV recording will a disk hold?
Divide the disk's size by what the cameras write in a day. One camera at 1 Mbps writes 0.45 GB an hour, so the daily figure is bitrate × 0.45 × hours × cameras. The calculator rounds the days down, because a part-day doesn't help when you need last Tuesday.
Disks are sold in decimal terabytes, 1 TB being 1,000 GB, and the calculator uses the same units. The space the recorder can use after formatting is a little less than the label, so leave some margin. When the disk is full, a recorder with overwrite on records over the oldest footage; the oldest date in playback shows how many days you really keep.
What changes the answer the most?
Four settings move the figure far more than the brand of recorder:
- Codec. In the typical settings, H.265 halves the bitrate of H.264 at the same resolution, which roughly doubles the days a disk holds. Check that the recorder and every camera really use it.
- Motion-only recording. A camera that records only when something moves writes far less on a quiet scene and far more on a busy one. Enter the hours of movement it adds up to; a road-facing camera can record most of the day.
- Variable bitrate. With VBR, a still night scene uses less than the maximum and a busy one up to it. The calculator assumes the bitrate you enter all the time, so with VBR enter the maximum for a safe figure.
- Main or sub stream. The recorder normally writes the main stream; the sub stream is for viewing. Only count a sub stream if the recorder is set to record it too.
Does a Hikvision, Dahua or CP Plus recorder need a different calculation?
No. Storage depends on bitrate, hours, cameras and days, and the sum is the same on every brand. What differs is the menu where you read the bitrate and the options a recorder offers to lower it, such as H.265 or a smart codec. Dahua's manual describes its Smart Codec as lowering the bitrate on less important parts of the scene to save storage, on the main stream only.
Check the recorder's maximum disk size and the number of disk bays before buying a larger disk. The calculator tells you the size you need; the recorder's specification sheet tells you what it can take.
How does recorder storage relate to monitoring with GoKavach?
GoKavach watches the live video and leaves recording to the recorder. Recordings stay on your own recorder unless you add Cloud backup, a paid add-on that keeps a camera's video in the cloud for 7 days ($4 a camera a month) or 28 days ($14) on any paid plan. Each alert keeps its own picture and clip for 30 to 180 days, depending on the plan.
A full or failed disk is the usual reason footage is missing when it's needed. On Hikvision, Prama, Dahua, CP Plus and most Honeywell recorders, GoKavach checks the disk every 6 hours and sends hard-disk failure alerts. The CCTV maintenance checklist covers the monthly playback check, and the CCTV installation checklist where disk size fits in a new install. To size the internet line instead of the disk, use the CCTV bandwidth calculator.