Skip to content

Fix latent bugs and misleading errors in create_videos - #3468

Merged
deruyter92 merged 4 commits into
devfrom
jaap/fix-create-video
Sep 8, 2026
Merged

deruyter92 merged 4 commits into
devfrom
jaap/fix-create-video

Conversation

@deruyter92

Copy link
Copy Markdown
Collaborator

Recent testing of the dev branch before 3.1 release undisclosed a few minor bugs or misleading error messages. These are fixed in the current PR:

  • The error log did not show correctly which videos were failed to create (the actual create video call uses collect_videos(videos) and not the logged videos, which in some cases may have a different order or count).
  • collect_videos emits a warning for unsupported video file formats, but we use the function internally for .h5 files as well. This PR introduces a silencing flag to not warn in these cases.
  • a latent bug caused analyze_videos_converth5_to_csv to only work for .mp4 videos this is now changed to all supported video types.

@deruyter92 deruyter92 added this to the v3.1.0 milestone Aug 28, 2026
@deruyter92 deruyter92 added the 3.1 label Aug 28, 2026
@C-Achard
C-Achard deleted the branch dev August 31, 2026 07:33
@C-Achard C-Achard closed this Aug 31, 2026
@deruyter92 deruyter92 reopened this Aug 31, 2026
@deruyter92
deruyter92 changed the base branch from dev/tst-3.1-release to backup/dev-tst-3.1-release August 31, 2026 08:57
`create_labeled_video` returns one result per collected video, in the order `collect_video_paths` resolves them - not one per path passed in. This commit aligns the error log for failed videos now
`collect_video_paths` is not only used for videos: some helpers call it with
extensions=".h5" to enumerate analysis outputs. This commits adds and wires a flag to suppress the misleading warning that ".h5" is not a supported video format.
@deruyter92
deruyter92 force-pushed the jaap/fix-create-video branch from a67c577 to a18ede6 Compare August 31, 2026 09:06
@deruyter92
deruyter92 changed the base branch from backup/dev-tst-3.1-release to dev August 31, 2026 09:06
@deruyter92
deruyter92 marked this pull request as ready for review September 7, 2026 07:07
@deruyter92
deruyter92 requested a review from C-Achard September 7, 2026 07:07
overwrite=self.overwrite_videos.isChecked(),
)
if all(videos_created):
analyzed_videos = collect_video_paths(videos)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this filter by extension in case the folder has more than one supported video type?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

videos comes from the GUI file picker and is an explicit file list rather than a directory path.

So here collect_video_paths(videos) just normalizes the selected files in the same way that the create_labeled_videos() backend does. (Both use the default SUPPORTED_VIDEO_EXTENSIONS) So I don’t think extra filtering is helpful here. Unless I'm overlooking something or didn't understand your comment correctly.

@deruyter92
deruyter92 merged commit fe1a73f into dev Sep 8, 2026
4 of 5 checks passed
@deruyter92
deruyter92 deleted the jaap/fix-create-video branch September 8, 2026 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants