optimize_large_media_buffer
Downsamples oversized video/audio and large binary files to a memory budget, isolates audio for transcription, extracts keyframes, and enables memory-mapped streaming to prevent agent exhaustion.
Instructions
Solves agent memory/context exhaustion for oversized media (video/audio) and large binary dumps (> 50MB). Auto-downsamples videos to agent budget, isolates audio tracks for transcription, extracts keyframes, and provides mmap streaming.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to media or binary file | |
| target_max_mb | No | Target max MB memory budget (default 50) |