feat: v0.5.0–v0.7.0 — smart zoom, short metadata, frame descriptions#2
Closed
feat: v0.5.0–v0.7.0 — smart zoom, short metadata, frame descriptions#2
Conversation
… player context v0.5.0: Smart zoom target detection via OpenAI vision API — per-frame analysis with fallback, ZoomPath written to shared context. v0.6.0: POST_RENDER short metadata generation — LLM-powered title and description for short uploads. Frame description generation — analyze all extracted frames in a single vision call for play-by-play summary, cached on plugin instance for POST_RENDER consumption. v0.7.0: Player name, assists, event type, and team level passed as context to short metadata prompts for richer AI-generated titles. Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
Author
|
Superseded — splitting into per-version commits |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
zoom.py): Per-frame OpenAI vision analysis for dynamic crop panning, with fallback to center on failure. WritesZoomPathtocontext.shared["smart_zoom"].short_metadata.py,frames.py): LLM-generated title/description for short uploads viaPOST_RENDERhook. Frame description sends all extracted frames in a single vision call, caches play-by-play summary on plugin instance, and feeds{{frame_summary}}into short metadata prompts.POST_RENDERhook data passed as{{player}},{{assists}},{{event}},{{team_level}}template variables for richer AI-generated metadata.New modules
zoom.py—analyze_frame_for_zoom(),_encode_frame()short_metadata.py—generate_short_metadata(),ShortMetadataframes.py—describe_frames(),FrameDescriptionsNew config fields
smart_zoom_enabled,smart_zoom_modelshort_metadata_enabledframe_description_enabled,frame_description_modelNew prompt templates
smart_zoom_detect,short_title,short_description,frame_describeStats
Test plan
make checkpasses (lint, mypy strict, 100% coverage)frame_description_enabled: true{{frame_summary}},{{player}},{{event}}v0.7.0tag🤖 Generated with Claude Code