optris_sdk_continuous_config
Everything an always-on recording is opened with.
Call optris_sdk_continuous_config_init() first, which fills in the defaults.
Public attributes
struct_size
uint32_t struct_size
Set to sizeof(optris_sdk_continuous_config).
segment_duration_s
uint32_t segment_duration_s
Close the current segment and open the next one after this much recorded time, in seconds. The granularity of everything: pruning deletes a segment whole, a crash can lose only the open one, and a clip can only be cut from segments that have closed.
directory
char directory[OPTRIS_SDK_MAX_PATH]
Where the segments go, UTF-8. Created if it does not exist.
The directory is the timeline: segments an earlier run left are adopted rather than deleted, count against the retention policy, and can still be cut from.
name_pattern
char name_pattern[OPTRIS_SDK_MAX_PATH]
Filename stem for this run's segments, UTF-8. Empty means history_{timestamp}, and the timestamp matters: without one a second run restarts the numbering and overwrites the first run's history.
max_segment_bytes
uint64_t max_segment_bytes
Roll over before a segment would pass this size, in bytes. Zero leaves it to segment_duration_s alone.
A ceiling for the finished segment, trailer included; see: :optris_sdk_recording_options::max_segment_bytes. The room this recorder reserves for one segment before it starts assumes that ceiling.
max_duration_s
uint64_t max_duration_s
Keep at most this much history, in seconds, oldest frame to newest. Zero means time does not bound it.
This is the bound an operator thinks in, and the only one of the three that can be promised to a user.
max_bytes
uint64_t max_bytes
Keep at most this many bytes of segment files. Zero means size does not bound it.
Needed beside the time bound because the same camera writes 3.1 GB/h on a calm scene and 7.4 GB/h on a hot noisy one -- a factor of 2.4 on content nobody controls -- so a drive sized for eight hours of one holds three of the other.
min_free_bytes
uint64_t min_free_bytes
Never let the volume's free space fall below this. Zero means it is not watched, which is only reasonable on a drive nothing else writes to.
This is the bound that fires when something else fills the disk, and it is worth setting even when the other two are generous: a history allowed to fill the volume takes the application's logs and the operating system's ability to write a file down with it.
on_disk_full
optris_sdk_disk_full_action on_disk_full
What to do when the volume is short anyway. See optris_sdk_disk_full_action.
all_intra
int32_t all_intra
Non-zero writes every frame as a seek anchor, so a clip can be cut at any frame. On by default here, where it is off for an ordinary recording, because a continuous recording exists to be cut. See optris_sdk_recording_options::all_intra for the cost.
write_preview
int32_t write_preview
Non-zero writes a cover image into every segment. Off by default here: a cover costs one JPEG per file, and this opens a file a minute for as long as the camera runs. A clip gets its own.
reserved0
int32_t reserved0
Padding. Set to zero.