poseinterface.clips.extract_clips#

poseinterface.clips.extract_clips(video_path, duration, start_frames)[source]#

Extract multiple clips from a video.

Parameters:
  • video_path (Path) – Path to the input .mp4 video. See extract_clip() for naming conventions.

  • duration (int) – Number of frames per clip, common to all clips.

  • start_frames (list[int]) – Start frame indices (0-based) for each clip.

Returns:

One (clip_path, clip_json) tuple per extracted clip, in the same order as start_frames. clip_json is None when no sibling *_videolabels.json file exists.

Return type:

list[tuple[Path, Path | None]]