Skip to content

Descrever vídeos por um quadro e descrever status de foto e vídeo - #476

Merged
gabrielhhaber merged 3 commits into
mainfrom
claude/project-thread-tkxl9p
Oct 12, 2026
Merged

gabrielhhaber merged 3 commits into
mainfrom
claude/project-thread-tkxl9p

Conversation

@gabrielhhaber

Copy link
Copy Markdown
Owner

Requested by Gabriel · project thread

Before: a video was sent whole (with its sound) to Gemini only; statuses and a video opened in the separate media viewer had no Describe option.

After: a video is reduced locally to one still frame (only the video stream is decoded, the sound is never read or sent) and described like a photo by any provider that takes pictures. The Describe button and Ctrl+Shift+I now also exist in the media viewer dialog (right after Save as), and photo and video statuses (Alt+5) can be described from the inline player and from the separate viewer.

What it does: core/ai_media/video_frame.py takes a frame about a second in with PyAV (display rotation applied), prepare_media("video") turns it into an image payload, and providers.build_request refuses a raw video. ui/ai_media_launch.py and status_tab/status_ai.py open the existing result window for statuses; MediaViewerDialog gets optional describe callbacks.

How: the consent text for videos now says only one picture goes, without sound (new string ai_video_frame_notice, and ai_metadata_notice no longer mentions videos), translated in every locale; changelog entry added to the unreleased 2.1.0.0 in every locale; docs/reference/ai-media.md updated. Tests: test_ai_media_video_frame.py, test_ai_media_status_and_viewer.py and the adjusted existing AI media tests. wx-dependent tests could not run in the authoring environment (Linux), so CI is the first run of those.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J9HRf3ZNuFFvSWwtU1oeTz


Generated by Claude Code

…uses

A video is now reduced locally to one still frame (the sound is never read
or sent) and described like a photo, by every provider that takes pictures.
The Describe button and Ctrl+Shift+I also work in the media viewer, and
photo and video statuses can be described from the Status tab, in the inline
player and in the separate viewer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J9HRf3ZNuFFvSWwtU1oeTz
@gabrielhhaber gabrielhhaber self-assigned this Oct 12, 2026
@gabrielhhaber
gabrielhhaber marked this pull request as ready for review October 12, 2026 17:12
Catalogue the new Ctrl+Shift+I bindings of the Status tab and the media viewer.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J9HRf3ZNuFFvSWwtU1oeTz
@gabrielhhaber
gabrielhhaber merged commit 71fd242 into main Oct 12, 2026
2 checks passed
@github-actions
github-actions Bot deleted the claude/project-thread-tkxl9p branch October 12, 2026 17:50
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.

2 participants