Documentation
¶
Overview ¶
Package videoio samples frames from a local video file (via ffmpeg) into data:image/...;base64 URIs for the multimodal vision path. It NEVER fetches a remote URL — only local files. Frames, not weights, are the 8GB VRAM pressure, so callers cap maxFrames.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SampleFrames ¶
func SampleFrames(videoPath, ffmpegPath string, fps float64, maxFrames, width, maxBytesPerFrame int) ([]string, error)
SampleFrames extracts up to maxFrames frames from videoPath at fps, each scaled to width px wide, and returns them as data:image/jpeg;base64 URIs (in order). ffmpegPath is the ffmpeg executable ("" => "ffmpeg"). A frame exceeding maxBytesPerFrame is rejected (guards the activation budget). The temp frame dir is always cleaned up.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.