Skip to main content

Module util

Module util 

Source

Structs§

ProbeInfo
Subset of media properties extracted via ffprobe.

Functions§

check_media_binaries
Fail fast at startup if the configured ffmpeg/ffprobe binaries aren’t runnable. They are required for recording, clip/snapshot export, sampling, and indexing; a missing binary otherwise surfaces only later as silent per-camera failures (cameras stuck “connecting”, empty timelines).
ffprobe_file
Probe a media file for duration and video stream properties.
ffprobe_stream
Probe a live stream URL (RTSP-aware) to confirm reachability and read codec/dimensions.
parse_rfc3339
Parse an RFC3339 / ISO-8601 timestamp (accepts a trailing Z) into UTC.
parse_segment_time
Parse a UTC segment start time from a filename like 20260613_120500.mp4.
slugify
Turn an arbitrary string into a safe lowercase slug for camera ids / path segments.