Loop recording is not a recording mode. It is a deletion policy bolted onto a continuous recording pipeline: the camera writes video whether or not there is free space, and a separate housekeeping routine destroys the oldest eligible file each time the card needs room. Emergency locking is the exemption list for that routine. Everything else in this article — segment boundaries, overwrite order, G-sensor thresholds, retention hours, and the ways footage quietly disappears — follows from those two sentences.
That framing matters for anyone specifying hardware in volume, because the failure modes are almost never “the camera stopped recording.” They are “the camera recorded for eleven hours instead of fourteen,” or “the clip that mattered was in the folder that gets purged first,” or “the card was full of files nobody could open.”
What Loop Recording Actually Is
A dash cam has no concept of “running out of space.” The encoder thread opens a file, streams to it for a fixed interval, closes it, opens the next one, and repeats until power is removed. A second, independent routine watches free space; when free space falls below a watermark — or when the file count hits a limit — it deletes the oldest file that is not protected and returns those clusters to the pool.
Two properties of that design are worth stating plainly, because they drive everything downstream:
Recording never stops to ask permission. There is no “card full, recording paused” state in a correctly implemented loop. If a product does pause, it is not looping — it is recording until it dies, which is a procurement red flag worth testing for explicitly.
Deletion is always whole-file. The ring does not trim the first thirty seconds of an old segment to make room. It removes an entire segment, which means the usable capacity is quantised: the history depth is floor(usable pool / average segment size), and adding a few megabytes of overhead per file costs you a whole segment at the boundary.
The consequence is a hard ceiling on history that has nothing to do with how long the vehicle drives. A camera that has been running for three weeks still holds only the last N hours, and N is determined by bitrate and usable capacity — not by elapsed time.
Inside the Write Path: Sensor to Segment
Before any of the ring logic matters, bytes have to reach the card at a rate the card can absorb continuously. The chain is short but every stage has a timing constraint.
The image sensor delivers frames to an ISP, which runs auto-exposure, wide dynamic range tone mapping, noise reduction, and — on a 2K part — a 2560×1440 frame at 30 fps, or 2560×1440 at a lower frame rate with tighter compression. The ISP output goes to a hardware encoder (H.264 or H.265), which produces a group of pictures: one intra-coded keyframe (IDR) followed by a run of predicted frames that reference it. The muxer wraps those NAL units into an MP4 or MOV container, and the storage driver writes the container’s bytes to the card over SDIO.
Three numbers in that chain set the budget:
Bitrate. At 8 Mbps the camera produces 3.6 GB per hour (0.45 GB per hour per Mbps). At 12 Mbps it is 5.4 GB/h; at 16 Mbps, 7.2 GB/h. This figure — not resolution, not card size — determines how fast the ring turns over.
Sustained write speed. The card must absorb the peak instantaneous bitrate, not the average. A card that benches at 60 MB/s but stalls during garbage collection will drop frames even though the arithmetic says it has headroom.
Buffer depth. The SoC holds a small write buffer to smooth SD card latency spikes. When that buffer fills, the encoder is told to drop frames — which is why a marginal card manifests as stutter and timestamp gaps rather than an explicit error.
H.265 matters here for a specific reason: at equivalent perceived quality it typically costs 30–50% fewer bits than H.264, which translates directly into longer retention and lower card wear at the same 2K resolution. On a fleet deployment the compression choice is a capacity decision, not just an image-quality one.
Segment Writing: Boundaries, Nominal Length, and File Naming
The segment interval — usually 1, 2, 3, or 5 minutes — is a firmware setting that trades three things against each other: the granularity of loss when something goes wrong, the size of the smallest recoverable evidence file, and the metadata overhead per hour.
Boundaries fall on keyframes, not on the clock. An encoder cannot end a file in the middle of a predicted-frame run, because the next file would begin with frames that reference data it does not contain. So the muxer closes the current segment at the next IDR frame after the timer expires. With a 2-second GOP, a nominal 60-second segment lands at 60 or 62 seconds depending on where the trigger falls; with a 1-second GOP the drift stays under a second. This is why segment lengths in a file listing rarely match the menu value exactly, and why anyone doing capacity arithmetic should measure real files rather than assume N files × N minutes.
Each segment must be independently decodable. That is the whole point of the keyframe rule: pull segment 0417 off the card and it plays on its own, in any player, with no dependency on 0416. A design that violates this — long GOPs spanning file boundaries, or a single rolling file with an external index — turns every segment into a partial fragment and makes forensic handover to insurers or regulators far more fragile.
File naming encodes recency, and recency drives deletion. Typical schemes are a monotonic counter (20261118_143022_00417F.MP4) or a fixed-width sequence (REC_00417.MP4). The counter is the important part: it is generated by the firmware, increments on every segment, and is independent of the real-time clock. That independence is a design requirement, not a nicety — see the next section.
Container overhead is small but not zero. Each segment carries a header, an index, and a filesystem directory entry. At 32 KB clusters — the usual FAT32 allocation size on cards of 32 GB and above — each file wastes on average half a cluster, about 16 KB against a 30 MB segment. Negligible for retention, but it is one of the reasons the usable pool is never exactly the sticker capacity.
One structural limit is worth knowing: FAT32 caps a single file at 4 GiB. At 8 Mbps that is roughly 70 minutes, so ordinary segment lengths are nowhere near it — but the limit becomes binding for high-bitrate parking time-lapse concatenation, which is one reason exFAT appears on cameras that write large single files. If a supplier’s architecture depends on merging segments into a long file, ask which filesystem it ships with.
Overwrite Order: How the Ring Decides What Dies Next
The deletion routine is where most silent data loss originates, and the details are almost never in a datasheet.
Oldest-first by sequence number is the correct implementation. The routine scans the loop partition, finds the lowest counter value among unprotected files, and deletes it. Because the counter comes from firmware rather than the clock, this ordering survives a dead RTC battery, a GPS time jump, or a manual clock change.
Oldest-first by filesystem timestamp is the fragile implementation. If the camera sorts by creation or modification time and the RTC has reset — a coin cell or supercapacitor that no longer holds charge, a vehicle that sat unpowered for months — every new segment is stamped with a date in the past. The ring now believes the newest files are the oldest. It starts deleting fresh footage while retaining stale footage, and the symptom is baffling: continuous recording, no errors, and the last two days missing.
Deletion is scoped to a partition, not a filter. Most implementations put loop files in one directory (\Normal, \DCIM\100MEDIA) and protected files in another (\Event, \EMR, \Parking), and the housekeeping routine only ever walks the loop directory. This is a clean design because it makes protection structural: no amount of file-attribute confusion can cause the ring to consume a locked clip. Cameras that instead rely on a per-file “read-only” attribute are one firmware bug away from overwriting evidence.
Watermarks, not full-disk triggers. Well-behaved firmware deletes when free space drops below a reserve (commonly 10–20% of the partition), then deletes in batches rather than one file at a time. Batch deletion keeps filesystem churn and fragmentation lower than delete-one-write-one behaviour, at the cost of a slightly coarser ring granularity.
Protected files are excluded from the count but not from the capacity. This is the part fleet managers underestimate: every locked clip permanently reduces the pool available to the loop. A camera with no cap on the event partition, or a cap that no one monitors, will slowly convert its loop capacity into a museum of minor pothole triggers until history depth collapses.
Where the Ring Lives: Capacity, Allocation, and Fragmentation
The ring buffer is a filesystem abstraction, and filesystems degrade under exactly the workload a dash cam produces: allocate, fill sequentially, delete the oldest, allocate again, forever, in the same region of the medium.
Allocation behaviour. A healthy design pre-allocates space for the next segment before it is needed, so writes land in contiguous clusters and the muxer never has to hunt for free extents mid-stream. Without pre-allocation, the camera gambles on FAT32 finding a run of contiguous clusters large enough for a 30 MB file among the holes left by deletion. It usually does early on and less reliably after a year of churn.
Fragmentation. FAT32 has no defragmenter inside a camera, and every delete-allocate cycle leaves the free space slightly more scattered. The observable symptoms are not dramatic — occasional dropped frames, a segment that ends short, an occasional write error during a bumpy stretch — which is precisely why this failure mode survives so long in the field. The mitigation is architectural rather than procedural: contiguous pre-allocation on the firmware side, and a periodic in-camera reformat at the recommended interval to reset the map. A PC-side “quick format” from a different operating system often uses a different cluster size than the camera expects and can make things worse rather than better.
Capacity is not usable capacity, and usable capacity is not loop capacity. Three deductions apply before any retention arithmetic: filesystem and metadata overhead (typically 5–10%), the reserved event partition (15–25% on a fleet-tuned configuration), and whatever slack the firmware keeps as headroom during batch deletion. A 128 GB card therefore does not give a 128 GB ring. Section on retention budget does the arithmetic.
Write Endurance Under a 2K Bitrate
Loop recording is a continuous write stream that never idles, and that is a fundamentally different stress profile from a phone’s bursty camera use. NAND cells have a finite number of program/erase cycles; below a certain free-space threshold the controller’s wear-levelling and garbage collection become less effective, and the card eventually either slows to unusable speeds or locks into read-only mode.
The arithmetic is simple and worth doing before specifying capacity:
| Stream | Bitrate | Per hour | Per day (24/7) | Per year (24/7) |
|---|---|---|---|---|
| 2K front, efficient H.265 | 8 Mbps | 3.6 GB | 86 GB | 31.5 TB |
| 2K front, higher quality | 12 Mbps | 5.4 GB | 130 GB | 47.3 TB |
| 2K front + rear 1080p | 12 Mbps combined | 5.4 GB | 130 GB | 47.3 TB |
| 2K + rear + interior | 16 Mbps | 7.2 GB | 173 GB | 63.1 TB |
Those are host-write volumes. Over a three-year service life, an 8 Mbps 2K camera asks a card to absorb roughly 95 TB, and a three-channel 16 Mbps configuration asks for roughly 190 TB. Whether that is comfortable or fatal depends entirely on the card’s rated endurance — which is why endurance, not capacity, is the specification that separates a two-year deployment from a four-month one.
Two consequences follow that are counter-intuitive:
Larger capacity extends service life, but not because it reduces writes. Bytes per hour are fixed by bitrate. A bigger card writes the same volume; it spreads those writes across more NAND die, so wear per cell falls roughly in proportion to capacity. Capacity therefore buys both retention hours and wear margin at the same time — but only if the extra capacity comes with proportional endurance rather than a cheaper, denser NAND process.
Cheap high-capacity cards are the worst case, not the best value. Dense multi-level NAND with an aggressive pseudo-SLC cache delivers high sequential throughput on an empty card and then collapses once the cache is exhausted — which, in a loop recording workload, is permanently. A card rated for sustained recording at the camera’s peak bitrate, over its full temperature range, is the only kind that survives a windshield in summer.
Thermal load compounds it. A 2K encoder plus a continuous card write plus solar gain through glass is a genuinely hostile environment; cabin temperatures of 70–85 °C in direct sun are routine in many markets. Consumer cards frequently specify an operating range that stops at 70 °C, and behaviour above that range is throttling, write errors, or controller shutdown — none of which the camera reports as anything more informative than a gap. Industrial-temperature or high-endurance ratings exist precisely for this workload.
G-Sensor Event Protection: From Acceleration to Locked Clip
The accelerometer is the trigger for the exemption list, and the quality of the whole evidence chain rests on how its signal is conditioned.
The sensor and the signal. A three-axis MEMS accelerometer with a selectable range of ±2 g to ±16 g and an output data rate around 100 Hz samples continuously. Because the camera is mounted at an angle, the sensor never reads zero at rest: it reads the gravity vector plus vehicle motion. Firmware estimates that baseline (typically with a slow low-pass filter or an initial calibration at power-up) and subtracts it, so the quantity that matters is the magnitude of the residual acceleration vector — the deviation from steady state, not raw g.
Threshold plus time window, not threshold alone. A pothole, a speed bump, a slammed door, a subwoofer, or a badly corrugated road surface can each produce a residual spike of several g for a few milliseconds. Triggering on a single sample would lock a clip every few minutes in a city. Practical implementations therefore require the residual to exceed the threshold for a minimum duration, or integrate the residual over a window, and add both a debounce interval after a trigger and a cooldown (commonly one to five minutes) before another lock is permitted. Menu “sensitivity” levels are mappings onto that threshold-versus-window trade-off.
Pre-event buffering is what makes the clip usable. Evidence rarely begins at the moment of impact. The camera keeps a rolling buffer — either in RAM as an encoder ring of 5–15 seconds, or by retaining the previous completed segment — so the locked clip includes the approach and the causal manoeuvre, not just the aftermath. Ten seconds at 8 Mbps costs about 10 MB of RAM, which is a real constraint on a low-cost SoC and a legitimate question to ask a supplier.
Mark, rename, or copy — and why it matters for wear. When a trigger fires, the firmware can either (a) move or re-flag the file in the directory table, an O(1) metadata operation with no additional data writes, or (b) physically copy the current and previous segments into the event partition, which doubles the write volume for that clip. Both produce identical playback behaviour. In a fleet generating dozens of events per truck per day, the copy model quietly adds gigabytes of write amplification per vehicle per week. Ask which one the firmware uses; it never appears in a spec sheet.
Post-event extension. After the trigger, recording continues for a configurable period (usually 10–30 seconds) and the segment is closed rather than truncated mid-GOP, so the locked clip is a valid, independently decodable file. A design that locks the file while it is still open risks the same unindexed-container problem described in the loss risk table below.
The honest limitation. Acceleration thresholds miss soft damage. A low-speed scrape along a barrier, a mirror-to-mirror contact, or a cyclist clipping a panel can produce lateral residuals well under any threshold that survives normal city driving — while a pothole at 40 km/h easily clears it. The G-sensor is a good proxy for “something sudden happened,” not a reliable detector of “the vehicle was damaged.” Fleets that need the latter pair the accelerometer with driver-triggered manual locks or platform-side event review.
What “Locked” Actually Guarantees
“Locked,” “protected,” and “emergency” all describe the same thing: an entry on the exemption list. It is a logical state managed by firmware, not a physical property of the card, and its guarantees are exactly as wide as the code that checks it.
| Action | Does a locked clip survive? |
|---|---|
| Loop overwrite by the camera | Yes, by design — the housekeeping routine skips the protected partition |
| In-camera “format card” | No — formatting rebuilds the filesystem |
| Factory reset or firmware update that migrates the layout | Usually no — depends on whether the migration preserves the event partition |
| Deletion from a PC, phone app, or platform | Yes, unless someone explicitly selects and deletes the folder |
| Card removal during a write | Depends on the file — an open container may be unreadable regardless of lock state |
| Catastrophic card failure (wear-out, controller lock) | No — the lock does not replicate |
| Low-space purge on a full event partition | Depends on firmware policy — some cameras reserve the right to delete the oldest event |
That last row is the one to interrogate. When the event partition reaches its cap, firmware behaviour varies across three common policies: overwrite the oldest event, refuse new locks and keep recording unprotected, or stop recording events silently while continuing the loop. Only the first is predictable, and only if the cap and the policy are both documented. On a fleet this is a configuration and monitoring question, not a hardware one — the platform should report event-partition utilisation and alert well before the cap.
Two adjacent mechanisms are sometimes confused with locking. Encryption (camera writes an encrypted container, readable only through the vendor’s tool) protects against a card being pulled and read by someone else; it does nothing about deletion, and it makes a corrupted card harder to salvage. Cloud upload on a connected 4G camera is the only mechanism that survives card loss or vehicle loss, and it is worth treating as a separate capability rather than a stronger form of lock.
Retention Budget: Sizing the Loop and Event Partitions
Retention is a two-part budget, and the parts compete. Loop hours are what an investigator can search; event capacity is what survives the search window. Sizing one without the other is how a fleet ends up with fourteen hours of history and a full event folder.
Loop hours follow directly from the bitrate arithmetic:
Loop hours = (capacity × 0.92 × (1 − event reserve)) ÷ (0.45 × average bitrate in Mbps)
The 0.92 accounts for filesystem and metadata overhead; the event reserve is the fraction carved out for the protected partition. Applied across common configurations:
| Card | Loop pool (20% event reserve) | 8 Mbps | 12 Mbps | 16 Mbps |
|---|---|---|---|---|
| 64 GB | 47 GB | 13.1 h | 8.7 h | 6.5 h |
| 128 GB | 94 GB | 26.2 h | 17.4 h | 13.1 h |
| 256 GB | 188 GB | 52.3 h | 34.9 h | 26.2 h |
| 512 GB | 377 GB | 105 h | 70 h | 52 h |
Three things in that table deserve emphasis. First, the multi-channel penalty is severe: adding a rear and an interior channel can halve history without changing the card. Second, average bitrate is not the nominal figure in the spec sheet — variable bitrate pushes real files higher on complex, high-motion footage, which is exactly the footage that matters. Measure bytes ÷ seconds on actual clips. Third, a 24/7 parking mode draws from the same pool, so a vehicle that records overnight may arrive at the yard with less than one shift of driving history.
Event capacity runs on a different clock, because events are episodic:
Clip count = (capacity × event reserve) ÷ clip size, where a 30-second locked clip at 8 Mbps is roughly 30 MB. On a 128 GB card with a 20% reserve, that is about 850 clips — months for a car, days for a truck generating thirty triggers a day on rough roads. Set the reserve from measured event frequency, not from a default, and revisit it once the first month of real data is in.
The tuning lever that is almost always available and almost never used is bitrate. Dropping a 2K stream from 12 to 8 Mbps with a better encoder buys 50% more retention and cuts annualised writes by a third, at the cost of some margin on plate legibility in poor light. That trade is worth measuring on real footage rather than assuming either direction.
Specifying a 2K Fleet Dash Cam: What to Verify
The mechanisms above translate into a short list of questions that separate a camera with a working ring buffer from one that merely has a loop-recording checkbox. None of them are visible in a resolution or frame-rate headline.
Segment architecture. Fixed-length MP4 or MOV segments, each independently decodable, each closed on a keyframe boundary. Ask for a raw card image from a sample unit and confirm that any single file plays standalone in a standard player.
Deletion ordering. Oldest-first by firmware-generated sequence number, with documented behaviour after an RTC reset. Ask what happens if the coin cell dies — a supplier that has not tested this has not designed for it.
Power-loss behaviour. Supercapacitor sizing or a documented shutdown sequence that closes the open container. The test is simple: kill power mid-segment repeatedly and check that every clip is playable and the ring continues.
Accelerometer specification. Range, sample rate, threshold granularity, debounce and cooldown, pre-event buffer depth, and whether locking marks or copies. The mark-versus-copy answer correlates strongly with how much write amplification the unit inflicts on its card.
Retention arithmetic at real bitrate. Measured average bitrate on representative footage, converted to hours per gigabyte, applied to the pool that remains after overhead and reserves. This is the number a procurement decision should be built on, because it is the number operations will actually experience.
Card qualification. Sustained write at peak bitrate near full capacity, across the full temperature range, at the endurance rating that matches the annualised write volume in the table above. A card that is not qualified for the workload is a scheduled outage with a date on it.
For a 2K platform, the second half of that list is where most of the engineering value sits. Resolution sets the evidentiary ceiling; the ring, the lock, and the card set how much of that evidence is still there when someone needs it. The GreatWill 2K dash cam range is built around that split — 2560×1440 capture with the loop, event, and storage layers specified as one system rather than three separate features, and low-power standby that keeps a 24/7 parked vehicle within its retention and endurance budget.
FAQ
Does loop recording always delete the oldest video first?
Not always, and the exceptions are the problem. The correct implementation deletes by firmware-generated sequence number, which is immune to clock problems. Cameras that sort by file timestamp will invert the order after an RTC reset and start deleting the newest footage — with no error message and no visible symptom other than missing recent files.
Do locked or emergency videos get deleted by loop recording?
A locked clip is exempt from the camera’s own housekeeping routine, so the ring will not overwrite it. It is not immune to a format command, a factory reset, some firmware updates, or a low-space purge on a full event partition. Locking protects evidence from the recording loop, not from every possible deletion path.
How many hours does a 128 GB card hold at 2K?
At 8 Mbps, roughly 26 hours of loop recording after filesystem overhead and a 20% event reserve. At 12 Mbps it drops to about 17 hours, and at 16 Mbps with three channels it is closer to 13. A 256 GB card approximately doubles each figure. The variable that moves this most is average bitrate, not capacity.
Why is the final clip of a trip sometimes unreadable or 0 bytes?
Because the container’s index is normally written when the file closes, and cutting power mid-segment leaves the video data on the card without the table that maps playback time to byte offsets. Cameras designed for fleet use close the file using a supercapacitor or a delayed shutdown, or write an index periodically so a truncated segment is still partially recoverable.
Can the G-sensor fail to lock a real impact?
Yes. A soft scrape, a low-speed contact, or a cyclist clipping a panel can stay below any threshold that tolerates normal city driving — potholes and speed bumps routinely produce larger accelerations than cosmetic damage. The accelerometer is reliable for sudden events, not for all damage; fleets that need full coverage pair it with driver-triggered manual locks or platform-side review.
Does loop recording wear out an SD card faster than ordinary use?
Substantially faster, because it never idles. A 2K stream at 8 Mbps writes about 86 GB per day in 24/7 operation, roughly 31 TB per year — a volume that ordinary consumer cards are not rated for. High-endurance or industrial cards rated for sustained recording, sized with the capacity to spread wear, are the difference between a multi-year service life and a replacement cycle measured in months.
Loop recording is a capacity policy, emergency locking is an exemption to it, and the SD card is where both are physically enforced. Evaluate all three together, and the footage you need will still be there.