Where to get the bitrate
This is the only number that matters and the only one worth getting right. There is no preset for it on this page, deliberately, because a camera's bitrate depends on its codec, resolution, frame rate, compression setting and how much its scene moves. Two identical cameras differ if one watches a car park and the other a stairwell. Any figure published here would be wrong for most readers while looking authoritative.
Two places to find the real one:
- The recorder. Most NVR and VMS software reports a live per-camera bitrate. That figure already reflects this site, these scenes and these settings, so it beats anything from a data sheet.
- The camera's data sheet, which states a bitrate at a given resolution and frame rate. Use it when the cameras are not installed yet, and treat it as a starting point rather than a measurement.
The 4 Mbit/s in the form is an example to replace, not a recommendation. It is a round number chosen so the arithmetic below is easy to follow.
Choosing a resolution in the first place is a different question, and a measurable one: see 1080p or 4K? Do the pixel math first, which works out pixels per foot and what each DORI level actually requires.
A worked example
Sixteen cameras, each recording continuously at 4 Mbit/s. A 4 Mbit/s stream is 500,000 bytes a second, which over a day is 43.2 GB per camera and 0.691 TB of footage across all sixteen, before overhead.
Thirty days of that, with 10% overhead, is 22.81 TB — which is 20.75 TiB once a recorder reports it. Those are the same quantity of footage described in two different units, and confusing them is how a system ends up a tenth short.
Turned around: a 10 TB array carrying those same sixteen cameras fills up in 13.2 days. If the requirement was thirty, that array is less than half the size it needs to be.
How it is worked out
bytes per second = bitrate Mbit/s x 1e6 / 8
bytes per day = bytes per second x 3600 x hours recorded
total = sum over groups(cameras x bytes per day)
x retention days
x (1 + overhead / 100)Overhead is applied once, to the total. The hours figure is a duty cycle: continuous recording is 24, and motion or schedule recording is the number of hours actually written on an average day. Guess that generously — an underestimate shortens the retention you actually get, which is the error that matters.
TB and TiB are not the same number
Drives are sold in decimal terabytes, where 1 TB is 1012 bytes. Operating systems and most recorders report binary tebibytes, where 1 TiB is 240 bytes, about 10% more. So a drive loses about a tenth of its apparent size the moment you look at it in a file manager, without anything being wrong.
| Sold as | Reported as | Apparent loss |
|---|---|---|
| 4 TB | 3.64 TiB | 0.36 TB |
| 8 TB | 7.28 TiB | 0.72 TB |
| 12 TB | 10.91 TiB | 1.09 TB |
| 16 TB | 14.55 TiB | 1.45 TB |
| 20 TB | 18.19 TiB | 1.81 TB |
What this does not tell you
- Results are estimates. Variable bitrate is the normal case, so recorded size moves with how much the scenes actually move. Treat the figure as a planning number.
- It says nothing about whether the array can keep up. Sustained write throughput, recorder channel limits and simultaneous-stream limits are properties of the hardware, not of the arithmetic.
- No RAID. Enter the capacity the array actually presents; parity is already taken out of that figure. The RAID capacity calculator works out what that figure is for a given set of disks.
- No audio, which adds a small constant bitrate per channel.
- Nothing about how long you are required to keep footage. That depends on your jurisdiction, your insurer and your own policy, and is not a question this page can answer.
Sources
The calculation is arithmetic over unit definitions, so there is no standard behind it. The prefix definitions are worth citing because mixing them up is the common error:
Full derivation, worked examples and limits: docs/cctv-storage.md in the site's repository.
Rather not size it yourself?
We design and install camera systems across Illinois, and sizing the recorder is part of that rather than an afterthought.
Other tools
- Voltage dropHow much voltage a run loses, and how much reaches the device at the end of it.
- Wire sizeThe smallest conductor that still gets the device enough voltage.
- PoE budgetWhat a set of cameras and door controllers asks of the switch feeding them.
- CCTV bandwidthWhat the cameras ask of the switch, recording and while being watched.
- RAID capacityWhat an array really gives you, and how many disks can fail.
- Conduit fillWhether the cable you are pulling fits the conduit, and how much room is left.
- Resistor colorsWhat the bands mean, and which resistor a supervised zone wants.
- Ohm's lawAny two of volts, amps, ohms and watts give the other two.
- Speaker loadWhether the amplifier covers the taps, with reserve left over.
- IP subnetWhat a prefix really holds, and how to carve one up by system.
- Address planThe commissioning address list, before you are up a ladder.
