Sizing storage
10 min Read in this browser
You will be able to
- Work out how much disk a set of cameras fills in a day
- Work out how many days a disk keeps
Before quoting a job, work out how much footage the disk will hold. A customer who expects a month of recordings and gets four days finds out the day they need a clip from last week.
One Mbps for a day
Everything follows from one number: a stream of 1 Mbps fills 10.8 GB a day.
- 1 Mbps is 1,000,000 bits a second, so 125,000 bytes (8 bits a byte).
- A day is 86,400 seconds: 125,000 × 86,400 = 10,800,000,000 bytes.
- That is 10.8 GB, counting 1 GB as 1,000,000,000 bytes, as disks are sold.
So, for cameras recording around the clock:
For example, 3 cameras at 4 Mbps make 12 Mbps, so 12 × 10.8 = 129.6 GB a day, and two weeks take 129.6 × 14 = 1,814.4 GB: a 2 TB disk, just.
How many days a disk keeps
Turn it around when the disk is already chosen: divide the disk by the GB per day, and keep the whole days. A recorder deletes the oldest footage when the disk fills, so a part of a day doesn't count.
Leave room
The numbers above are the worst case, recording everything. Two things move them:
- Recording only events (when something is detected) takes far less; how much less depends on how busy the scene is. The Frigate track covers how. Size for continuous recording anyway if the customer may ask for it later.
- The disk is never all yours. The system, the database and snapshots need space too, and a disk run full slows down. Plan on using about 90% of it for recordings.
Use the bitrate set on the camera, not the one on its box. Check it in the camera's settings, at constant bitrate, after you've set the resolution.
Frigate
The open-source recorder Selora runs on the Hub. It records the cameras and detects people, vehicles and animals in what they see, locally.
Bitrate
How much data a stream sends each second, in megabits per second (Mbps). It sets the picture's quality and how fast the disk fills: 1 Mbps fills 10.8 GB a day.
Constant bitrate
The camera sends the same bitrate whatever the scene, so the disk fills at a rate you can plan for. Variable bitrate (VBR) climbs at night and in bad weather.
What you read is saved in this browser only. Sign in to keep it in your account, take the quizzes and get certified.
This lesson by Selora Homes is licensed CC BY 4.0 : share and adapt it, even commercially, crediting Selora Homes with a link. Photos by others keep their own licences, as credited.