split_video_files_by_view

lightning_pose.utils.io.split_video_files_by_view(video_paths: list[Path], view_names: list[str]) list[list[Path]][source]

For a list of videos from different sessions and views, split them up and return a list of lists like [[sess0_view0.mp4, sess0_view1.mp4, …], [sess1_view0.mp4, sess1_view1.mp4, …], …]

Parameters:
  • video_paths – List of paths to video files to split

  • view_names – List of view names to find videos for

Returns:

List for each session, each containing a sub-list with videos for each view for that session