Skip to content

feat(embed): add support for video inputs - #185

Draft
Nina-mvH wants to merge 3 commits into
support-embedding-audiofrom
support-embedding-video
Draft

feat(embed): add support for video inputs#185
Nina-mvH wants to merge 3 commits into
support-embedding-audiofrom
support-embedding-video

Conversation

@Nina-mvH

@Nina-mvH Nina-mvH commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Adds support for embedding videos on a frame-by-frame level. Instead of embedding the whole video using specialized models, any multimodal that supports image encoding can be used to embed individual frames from the input video. This appears to be a common practice, though misses temporal feature extraction.

Ideally, it would be nice to also have support for models especially designed for video processing, though it seems the implementation details vary depending on the model. It could be possible though to have some logic similar to that in the translate task, and support specific model families.

Tested with sentence-transformers/clip-ViT-B-32 on mp4

Closes #245

@Nina-mvH

Nina-mvH commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Loading large videos would likely cause OOM errors (like #186 )

@Nina-mvH Nina-mvH added the feature New feature or request label Jul 10, 2026
Prevnets OOM for long videos. No longer warns when empty/one video frame
@Nina-mvH Nina-mvH changed the title Support embedding video feat(embed): add support for video inputs Jul 24, 2026
@Nina-mvH
Nina-mvH requested a review from cswaney August 20, 2026 19:27
@Nina-mvH
Nina-mvH marked this pull request as ready for review August 20, 2026 19:28
@Nina-mvH
Nina-mvH marked this pull request as draft August 20, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

embed: support video inputs

1 participant