videoio

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL