msight_core.data.video
msight_core.data.video
Video container and metadata helpers.
This module defines :class:VideoData, a container for encoded video
payloads produced by aggregating image frames. The class extends
:class:~msight_core.data.SensorData so it inherits common sensor fields
(sensor name, timestamps, frame id, etc.).
Notes
- The
videofield is intended to hold encoded video bytes (for example, MP4 or H.264 elementary stream). - The optional
detection_resultsfield may contain detection results associated with the contained video frames (for example, aggregated detection outputs or a summary object). frame_idsis an optional ordered list of frame identifiers that maps the encoded video back to the original frame sequence.
Examples
Create a VideoData instance::
from msight_core.data import VideoData
vd = VideoData(sensor_name="front_cam", video=b"