# binquery

> Local CLI for splitting long videos and querying footage folders using OpenCLIP visual intent.

binquery is a free AI agent skill on Agensi by Harry Xu, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Harry Xu](https://www.agensi.io/creators/harry-xu)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-10
- Security: scan passed (2026-10-10); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/binquery
- Tags: api, python, video-editing, ffmpeg, clip, cli

## About this skill

Searching through hours of raw footage for a specific shot or breaking a long recording into manageable chunks is a manual bottleneck for editors. binquery automates the local clip management workflow by providing a CLI-based shortlist generator that ranks footage based on your visual intent.

### What it does
- **Time-grid splitting** breaks one long local video file into segments using ffmpeg.
- **Local indexing** generates CLIP vectors for a folder of videos without using cloud APIs.
- **Intent-based querying** ranks 8–15 clips based on a single descriptive sentence.
- **Health monitoring** verifies index integrity with a doctor command to prevent failed queries.
- **Multi-modal scoring** provides results with a path, score, gate type, and logic-based reasons.

### How it works
1. **split**: Run the command on a long recording to generate a folder of segments based on a time grid.
2. **index**: Process the clip folder to create local vector embeddings and metadata.
3. **doctor**: Verify the generated index files to ensure the query engine has the required data.
4. **query**: Input a visual description to receive a ranked shortlist of local video paths.

### Frameworks & tools
This tool requires Python 3.10+, ffmpeg, and ffprobe on the system PATH. It uses OpenCLIP (ViT-B-32) for local embedding generation.

### Why this beats prompting it yourself
Writing a custom script to bridge ffmpeg and OpenCLIP requires significant boilerplate for frame extraction and vector management. This skill provides a structured CLI that handles the grid-splitting, local caching, and scoring logic out of the box.

### Use cases
- Generate a shortlist of potential reaction shots from a streamer's VOD.
- Find specific visual scenes within a large folder of dailies or rushes.
- Break down a long master file into a grid for faster manual review.
- Organize scene-sequence visual intents during a complex edit.

### Known limitations
Does not perform highlight detection, silence cutting, or automatic timeline assembly. Requires local disk space for the index and an initial download for CLIP weights.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the binquery skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does binquery help speed up my video editing workflow?

binquery is a local CLI tool that automates the tedious process of chopping long video files into segments and using OpenCLIP to search through those clips using natural language descriptions.

### What are the technical requirements for running binquery locally?

The skill requires Python 3.10+, ffmpeg, and ffprobe installed on your system; all processing, indexing, and querying occur locally on your machine without needing cloud-based AI subscriptions.

### Can I use this skill with an AI agent or is it only a standalone tool?

While binquery can be run manually via CLI, it is designed to integrate with AI agents that support local shell execution, allowing you to ask an agent to "find all shots of a sunset in this folder."

### Does this tool require an internet connection or cloud API keys to search my footage?

No, binquery uses the OpenCLIP ViT-B-32 model to generate local vector embeddings, ensuring your footage remains private and no data is sent to external servers during the search process.

### What exactly is included in the purchase of this skill?

You will receive the full Python-based CLI package, the logic for grid-based ffmpeg splitting, and the indexing engine; please note that initial setup will trigger a one-time download of the CLIP weights.

### Can binquery automatically detect highlights or edit a timeline for me?

This tool identifies visual intent based on your descriptions (e.g., "person laughing"), but it does not perform automated highlight detection based on audio levels or automatic sequence assembly for NLEs.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
