Skip to main content
Glama

video_batch_analyze

Analyze multiple video files simultaneously in a directory using AI to extract insights based on custom instructions, with support for various formats and parallel processing.

Instructions

Analyze all video files in a directory concurrently.

Scans the directory for supported video files (mp4, webm, mov, avi, mkv, mpeg, wmv, 3gpp), then analyzes each with the given instruction using bounded concurrency (3 parallel Gemini calls).

Args: directory: Path to a directory containing video files. instruction: What to analyze in each video. glob_pattern: Glob to filter files (default "*" matches all). output_schema: Optional JSON Schema dict for each result. thinking_level: Gemini thinking depth. max_files: Maximum number of files to process.

Returns: Dict with directory, counts, and per-file results.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
directoryYesPath to a directory containing video files
instructionNoWhat to analyze in each videoProvide a comprehensive analysis of this video.
glob_patternNoGlob pattern to filter files within the directory*
output_schemaNoOptional JSON Schema for each video's response
thinking_levelNohigh
max_filesNoMaximum files to process

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Galbaz1/video-research-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server