Low-voltage path · Division 10: Video surveillance · Lesson 193

Calculate storage from declared bitrate and retention

Free for apprenticesRead it or play it. No card, no account, nothing to cancel.
Calculate storage from declared bitrate and retention

What you should be able to do

Calculate recorded-video payload from explicit bitrate and time assumptions. Distinguish this result from the raw disk capacity a system needs.

Define The Inputs

List the streams actually recorded, their declared rates, recording schedules and required retention. A live-only stream crossing a network link does not automatically consume recording space. Multiple recorded profiles or copies do. Axis explains that encoded bitrate changes with scenes and control settings. An average-rate estimate is conditional on the actual long-term rate and schedule. A configured retention value does not create capacity.

Original Worked Example

Eight streams are recorded continuously for 30 days. Each has a declared video bitrate of 4 Mb/s, taken as constant for this exercise. Audio, metadata and storage overhead are excluded. Aggregate bitrate = 8 × 4,000,000 = 32,000,000 bits/second. Recorded seconds = 30 × 24 × 60 × 60 = 2,592,000. Bytes = 32,000,000 × 2,592,000 / 8. Result = 10,368,000,000,000 bytes. Using decimal units, this is 10.368 TB.

The same result can be checked per camera: 4,000,000 / 8 = 500,000 bytes/second. 500,000 × 86,400 = 43,200,000,000 bytes/day = 43.2 GB/day. 43.2 × 30 × 8 = 10,368 GB = 10.368 TB. The word "day" here means exactly 86,400 seconds, not a calendar interval adjusted for local clock changes.

TB AND TiB

NIST distinguishes decimal prefixes from binary prefixes. One byte is eight bits. One TB is 10^12 bytes; one TiB is 2^40 bytes, or 1,099,511,627,776 bytes. 10,368,000,000,000 / 1,099,511,627,776 ≈ 9.43 TiB. The two numbers describe the same quantity. This conversion is not lost storage and is separate from formatting or protection overhead. Check how the actual tool labels its units.

Schedule Variant

For the same eight streams recorded exactly 12 hours per day for 30 days, recorded time halves and payload is 5.184 TB. That result assumes the same rate throughout the recorded intervals. For event recording, do not invent a fixed low activity percentage without evidence. Include the configured pre-event and post-event intervals and understand how overlapping events are handled. A busy day can consume much more than a quiet-day sample suggests. If a low-rate continuous stream and an event stream are both recorded, count the actual stored streams and intervals rather than assuming one replaces the other.

Payload Versus Capacity

The example is encoded video payload. Account separately for recorded audio, relevant metadata, container/database/filesystem needs and product-required free space. Do not automatically add every network-packet header to disk storage: identify what the recorder actually writes. Compare the result with the recording allocation available after the chosen disk-protection arrangement, system usage and reserve. Raw drive labels are not the same as usable video allocation. Storage protection also does not by itself constitute an independent backup. Use the exact recorder documentation and configuration; no universal RAID capacity formula or reserve percentage is prescribed here.

Original Review Exercise

A proposal says "12 TB installed, therefore 30 days guaranteed." The worksheet's calculated video payload is 10.368 TB. Request the actual recording allocation, storage configuration, other stored data, reserve policy and rate assumptions. The two numbers alone cannot establish adequacy. A second proposal uses a 20% addition to payload. Another says 20% of total usable space must remain free. These are different statements: adding 20% multiplies the base by 1.2, whereas reserving 20% of total space requires dividing the relevant occupied amount by 0.8. Neither percentage is adopted as a standard in this lesson.

Verify Retention In Operation

Record the intended quality and duration together. Reducing the encoded data until a storage target fits may make the original video task fail. Compare representative storage growth and bitrate with the estimate. Verify that recordings from the required past interval can actually be found and played, and investigate gaps or early cleanup. Label early projections as projections until enough evidence exists for the actual period. Do not change retention, delete recordings, format media or alter RAID as part of this exercise.

Worksheet

Recorded stream IDs; rate basis; units; schedule; retention; calculated video payload; additional stored data; usable allocation; reserve; configuration reference; observed growth; oldest accessible recording; playback result; exceptions. Keep the requested retention and demonstrated retention separate.

Knowledge Check

  1. How many seconds are in 30 continuous 24-hour days? 2,592,000.
  2. Why divide by eight? To convert bits to bytes.
  3. What is the example payload? 10.368 TB, approximately 9.43 TiB.
  4. Does live-only traffic necessarily add recording storage? No.
  5. Does sufficient raw disk labeling prove retention? No.

Where beginners go wrong

Mistake: Comparing the calculated 10.368 TB payload directly with raw drive labels. Correction: Find the actual recording allocation after protection, system use and reserve, and include other stored data before assessing capacity.

Mistake: Calling 9.43 TiB a loss relative to 10.368 TB. Correction: Compare the byte counts: these are different unit expressions of the same quantity, separate from storage overhead.

Mistake: Assuming event recording occupies a small fixed percentage without measuring activity. Correction: Use supported scheduling behavior, representative event duration and pre/post-event intervals; state the assumptions and verify actual growth.

Check Yourself - Explained Reasoning

Why does a live-only stream not automatically belong in the storage total?

Answer: Only data actually written consumes recording space; transport and recording paths can differ.

Why does a configured thirty-day value not prove thirty-day retention?

Answer: Capacity and recording behavior may remove footage sooner; the required past recordings must actually be retrievable.

Sources

NIST, Prefixes for binary multiples: https://physics.nist.gov/cuu/Units/binary.html Basis: byte and decimal/binary unit definitions. Axis, Bitrate control for IP video: https://whitepapers.axis.com/en-us/bitrate-control-for-ip-video Basis: variable bitrate and storage-budget assumptions. Axis Camera Station Pro User manual: https://help.axis.com/en-us/axis-camera-station-pro Reference for product-specific recording and storage configuration; no configuration action is performed. All numerical scenarios and exercises are original.

Gigabytes Per Day As A Working Unit

Storage sums become easy to check when each recorded stream is first reduced to one number: gigabytes per day. Do that conversion once per rate and reuse it.

A stream at a declared 2 Mb/s carries 2,000,000 / 8 = 250,000 bytes per second. Over an 86,400-second day that is 250,000 x 86,400 = 21,600,000,000 bytes, which is 21.6 GB per day in decimal units. Write "2 Mb/s is 21.6 GB per day" on the worksheet and the rest of the sum is multiplication.

One such stream kept for 14 days is 21.6 x 14 = 302.4 GB. Sixteen of them for the same 14 days is 302.4 x 16 = 4,838.4 GB, which is 4.8384 TB. The same total reached the other way is 16 x 21.6 = 345.6 GB per day across the site, then 345.6 x 14 = 4,838.4 GB. Two routes to one figure is the cheapest arithmetic check available, and it catches a factor-of-eight slip immediately.

Keep the unit discipline that makes the check work. The rate is bits per second, the daily figure is bytes, and the divisor between them is 8 in one direction only. The day is exactly 86,400 seconds. And the figure covers the video payload alone: audio, metadata, the recorder's own index and its required free space are separate lines on the worksheet, not a rounding allowance folded into 21.6.

Solving The Same Sum For Days And For Rate

The storage relationship has three quantities, and you can solve for whichever one the project leaves open. Most worksheets only ever solve for bytes, which is why a capacity constraint turns into an argument instead of a number.

Suppose the recorder offers 8 TB of usable recording allocation and the site has 16 streams at a declared 2 Mb/s, already reduced to 345.6 GB per day in total. Solving for days gives 8,000,000,000,000 / 345,600,000,000 = 23.148 days. If the brief asked for 30, the shortfall is arithmetic and it is visible before anything is installed.

Solve the same relationship for rate instead. Thirty days is 2,592,000 seconds, so 8,000,000,000,000 / 2,592,000 = 3,086,420 bytes per second across the whole site, which is 3,086,420 x 8 = 24.7 Mb/s, or 24.7 / 16 = 1.543 Mb/s per stream. That is the per-camera figure the stated capacity and retention actually allow, and it is the number a quality discussion needs.

What it is not is permission. The next question is whether 1.543 Mb/s still delivers the recorded task those cameras exist for, and that is answered by looking at a recording made at that rate, not by accepting the arithmetic. If it does not, the finding is a conflict among retention, capacity and the stated task, and all three belong in the escalation rather than whichever one is easiest to reduce.

Mixed Retention On One Shared Volume

Not every camera needs the same retention, and mixing them is where a single site-wide multiplication stops working.

A fictional site records 16 streams at a declared 2 Mb/s, which the worksheet has already reduced to 21.6 GB per day each. Four cameras covering the cash office are required to hold 30 days, so 4 x 21.6 x 30 = 2,592 GB. The remaining 12 are required to hold 7 days, so 12 x 21.6 x 7 = 1,814.4 GB. The total video payload is 2,592 + 1,814.4 = 4,406.4 GB, or 4.4064 TB, against the 10,368 GB that a flat 30 days across all 16 would have needed.

Then ask the question the arithmetic cannot answer. Does the recorder enforce retention per camera, or does it delete the oldest recording on the volume regardless of which camera made it? On a shared volume with oldest-first cleanup, a busy week on the 12 short-retention cameras can consume space and shorten the 30-day cameras, and the configuration screen will still display 30.

So record, for each group, the required retention, the calculated payload, and the mechanism the product documents for enforcing it. Where the product supports a per-camera allocation or quota, record the configured value. Then verify by retrieval: ask for a recording from 29 days ago on a cash-office camera and play it. The oldest recording that can actually be retrieved is the only retention figure worth writing down.

Also working toward the electrician journeyman licence? Take the free 15-question readiness check

Texas journeyman, 15 questions, scored by topic against the 70% mark. No card, and no account needed to start.

Free study material for low-voltage apprentices. This is a national foundation course: requirements differ by state and by local jurisdiction, and a practice that is common in one place is not a rule everywhere. Nothing here is a licence, a certification, or authority to work unsupervised, and completing it does not count as apprenticeship hours or continuing-education credit. Check the codes adopted where you are working, the licensing authority for that work, and your employer's safety programme. VoltMark is not affiliated with, endorsed by, or sponsored by NFPA, OSHA, NICET, BICSI, FOA, or any state or local licensing authority.

—
Help