SessionSourceStats
class optris_sdk.session.SessionSourceStats
What one source's writing did, while the session runs.
Behind while running, deliberately: a frame is accepted on the
camera's thread and accounted for by the thread that writes it, so
these can be a whole queue behind. Read them after
RecordingSession.stop when the numbers have to be exact.
- Attribute
frames_written— frames the session has taken into the file for this source. A frame counts here once the container has accepted it, which is a moment before its bytes are necessarily on the disk. Stopping the session is what makes the file complete. - Attribute
frames_dimension_mismatch— frames refused for not being the size the source was declared with. Every one is a frame missing from the file. - Attribute
frames_write_error— frames lost to a write or encode failure. - Attribute
frames_dropped_backlog— frames refused because the queue was full, underSESSION_BACKLOG_DROP_NEWEST. Never zero silently -- a dropped frame is always counted here. - Attribute
frames_pts_repaired— frames whose session stamp did not advance past the previous one's. Each is written at the millisecond after the previous frame's, because a recording keeps whole milliseconds; a frame that advanced by less than a millisecond is moved the same way and is not counted. A large count means the clock has resolution the session cannot use. - Attribute
frames_from_own_stamp— frames that really took their time from the frame rather than from the hand-over. Always zero underSESSION_STAMP_HANDOVER; underSESSION_STAMP_FRAMEa zero here means every frame fell back, which is how a silent fallback is distinguished from the feature working. - Attribute
first_frame_s— session time of this source's first frame, orNonebefore it has delivered one. - Attribute
last_frame_s— session time of its most recent frame, orNone. - Attribute
max_gap_s— the largest hole between two of its frames, whatever caused it. - Attribute
outages— how many times somebody reported this camera gone, whether or not it came back. - Attribute
outage_total_s— how long it was reported gone, in total. Not the same asmax_gap_s, which is the largest hole for any reason; this is only time somebody said the camera was away. An outage still open when the session stopped counts up to the moment it stopped. - Attribute
last_error— the most recent write failure, or''.
SessionSourceStats — properties
frames_lost
Every frame that did not reach the file, however it was lost.
The number worth asserting on: the three counters behind it have different causes and the same consequence.