mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2421] [CLOSED] Video: the encoder reads the clip itself (ENCV - mtmd samples its frames at video_fps and merges them) #4035
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4035
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2421
Author: @miaomiaozii
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:video-native📝 Commits (6)
636ec11Video: cut a clip into its frames (ffmpeg) for the vision path0d954a5Video: read the clip in the encoder (ENCV - mtmd samples its frames at video_fps and merges them; one media place per clip)c4fd8bdVideo: the encoder reads the clip itself (docstring in the frontend's part list)44c90f6test_server: the #2228 Keyed fake keeps the encoder's keep parameter, as the real Vision.encode doesc8e0c83Responses: the video parts ride the same path as the imagescaaa8d3Video: consume the template's video pad placeholder in prepare()📊 Changes
8 files changed (+575 additions, -74 deletions)
View changed files
📝
docs/DETAILS.md(+17 -1)📝
serve/frontend.py(+47 -9)📝
serve/responses.py(+8 -2)📝
serve/server.py(+110 -24)📝
serve/test_responses.py(+22 -0)📝
serve/test_server.py(+12 -8)➕
serve/test_video.py(+283 -0)📝
tools/vision/strata_vision.cpp(+76 -30)📄 Description
The serve reads video
video_urlparts (OpenAI chat-completions) natively: the vision encoder samples the clip's frames itself (mtmd atvideo_fps, capped bymax_video_frames) and encodes them merged the model's way, so the clip takes one media place in the prompt - its start marker plus the image tokens its frames expand to.Commits:
Notes:
296b59d2); conflicts in prepare() resolved keeping the upstreamembeddings.keys/_vision_up()/last_image_atplumbing around the ENCV loop🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.