ContinuousOptions
class optris_sdk.continuous.ContinuousOptions
Everything a rolling history is opened with.
At least one retention bound has to be set. Starting with
none raises optris_sdk.errors.InvalidArgumentError:
keeping everything is what fills a volume, and doing it because
nobody set a field is an accident rather than a decision.
The two durations are carried as whole seconds, rounded, and never down to zero from a positive value -- zero is a sentinel on both.
- Parameter
directory— where the segments go. Created if it is not there. 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. - Parameter
name_pattern— filename stem for this run's segments.Nonemeanshistory_{timestamp}, and the timestamp matters -- without one a second run restarts the numbering and overwrites the first run's history. - Parameter
segment_duration_s— close the current segment and open the next after this much recorded time. 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.Nonekeeps the SDK's default. - Parameter
max_segment_bytes— roll over before a segment would pass this size.Noneleaves it tosegment_duration_salone. - Parameter
max_duration_s— keep at most this much history, oldest frame to newest.Nonemeans 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. - Parameter
max_bytes— keep at most this many bytes of segment files.Nonemeans 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. - Parameter
min_free_bytes— never let the volume's free space fall below this.Nonemeans it is not watched, which is only reasonable on a drive nothing else writes to. - Parameter
on_disk_full—DISK_FULL_PRUNE_BELOW_RETENTIONorDISK_FULL_STOP_RECORDING.Nonekeeps the SDK's default. - Parameter
all_intra—Truewrites every frame as a seek anchor, so a clip can be cut at any frame. On by default here -- a continuous recording exists to be cut. - Parameter
write_preview—Truewrites 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.