Skip to content

fix: select varied video frames for thumbnails - #24

Merged
aspizu merged 1 commit into
mainfrom
apz/video-thumbnail-frame-selection
Sep 14, 2026
Merged

aspizu merged 1 commit into
mainfrom
apz/video-thumbnail-frame-selection

Conversation

@aspizu

@aspizu aspizu commented Sep 14, 2026

Copy link
Copy Markdown
Owner

Video thumbnails previously used the first decoded frame, which could be blank or nearly uniform. Sample up to 10 random frames and stop when mean per-channel RGB variance reaches 400 on a 64×64 sample. If no frame qualifies, use the most varied sampled frame.

Retain the decoded frame as a fallback when duration is unavailable, and clear the seek handler during cleanup. The existing 30-second timeout still applies.

Validation: client typecheck, lint, formatting, and diff whitespace checks passed. A simulated video/canvas harness covered early acceptance, the 10-frame best-frame fallback, solid-color rejection, unknown-duration fallback, and decode-error cleanup. Real-browser video decoding has not been verified.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-14T20:24:15.406623Z 925afe6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@aspizu
aspizu merged commit a354d68 into main Sep 14, 2026
5 checks passed
@aspizu
aspizu deleted the apz/video-thumbnail-frame-selection branch September 14, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant