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
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Path to a directory containing video files | |
| instruction | No | What to analyze in each video | Provide a comprehensive analysis of this video. |
| glob_pattern | No | Glob pattern to filter files within the directory | * |
| output_schema | No | Optional JSON Schema for each video's response | |
| thinking_level | No | high | |
| max_files | No | Maximum files to process |