Skip to content

Archive & Recording Overview ​

The archiving subsystem in RUSEON Core is an enterprise-grade recording engine designed to continuously store hundreds of high-bitrate IP camera streams without degrading system responsiveness, exhausting RAM, or losing media integrity during sudden hardware crashes.

Operating as a zero-copy consumer of the Ring Buffer, the recorder transmuxes incoming H.264/H.265 NAL units directly into standard Fragmented MP4 (fMP4) containers without CPU-heavy transcoding.


Core Archival Capabilities ​

SubsystemArchitecture & ImplementationPrimary Technical Benefit
fMP4 RecordingSegmented ISO Base Media File Format (moov + repeating moof/mdat pairs)Instant crash resilience; each fragment is self-contained and playable immediately
Linux Kernel I/Osync_file_range + FADV_DONTNEED in pkg/storage/localfsEliminates Page Cache thrashing, prevents kernel OOM killer on heavy 4K camera writes
Hierarchical File LayoutYear / Month / Day / Hour subdirectories partitioned by camera IDRapid directory scans, zero inode contention, filesystem-agnostic compatibility
Retention & LifecycleScheduled background cleaner tracking retention days and max disk usage percentageAutomated disk quota enforcement and pruning of oldest segment folders
Crash RecoveryAtom-level box parser (ValidateFMP4File) repairing interrupted trailing boxesZero video loss up to the last flushed keyframe upon unexpected power outage
Archive PlaybackOn-demand fMP4 transmuxing to HLS with frame-accurate timeline seekingSeamless seeking across multi-day recordings in web and mobile players

Subsections in this Guide ​


Released under the MIT License.