Skip to main content
Glama
AbyAbyss

ffmpeg-mcp-video-editor

by AbyAbyss

Reframe following a face

track_and_crop

Reframe video to any aspect ratio while following a face across the timeline, with smooth cropping to keep the subject in frame.

Instructions

Reframe a clip to a new aspect ratio, following a face across the timeline.

The classic use is turning a horizontal interview into a vertical clip that keeps the speaker in frame. The crop path is smoothed before rendering — a crop that snaps frame to frame looks worse than a slightly imperfect one that glides — and clamped so it never runs off the edge of the source.

Call detect_faces first if you want to choose which person to follow, then pass its track_id. With no face found, this falls back to a centre crop unless fallback is 'fail'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
encodeNo
fallbackNoWhat to do when no face is found: 'center' crops centrally, 'fail' errors.center
track_idNoFollow a specific track from detect_faces. Defaults to the main subject.
smoothingNoHow steadily the crop follows the face. 0 tracks exactly and looks jittery; 1 barely moves. The default glides.
input_pathYesPath to the source media file.
max_framesNo
sample_fpsNo
output_pathNoDestination file. If omitted, the output is written into the job's workspace directory and its path is returned by job_result.
aspect_ratioNoTarget shape, e.g. '9:16' for vertical, '1:1' square, '16:9' wide.9:16
output_widthNoScale the reframed result to this width. Height follows the aspect ratio.
min_confidenceNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
toolYes
job_idYes
statusNoqueued
messageNoJob queued. Poll job_status for progress, then job_result.
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only state readOnly=false and destructive=false, so the description adds valuable behavioral context: crop paths are smoothed to avoid snapping, clamped to source edges, and fallback to center crop or fail. This goes beyond the sparse annotations without contradicting them.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise, well-structured, and front-loaded. The first sentence states the purpose, the second paragraph explains key behavior and rationale, and the third provides the workflow. Every sentence earns its place with no redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's 11 parameters and the existence of an output schema, the description covers the core workflow—reframing, face tracking, smoothing, clamping, fallback, and detect_faces integration—well enough for an agent to invoke it correctly. It omits details on some advanced parameters, but the schema partially covers those and the overall picture is clear.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 64%, and the description adds useful meaning for track_id by explaining it comes from detect_faces. However, it does not compensate for undocumented parameters like sample_fps, max_frames, and min_confidence, which are left without explanation in both the schema and the description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource: 'Reframe a clip to a new aspect ratio, following a face across the timeline.' This clearly distinguishes it from siblings like detect_faces, blur_faces, transform, and resize_video by combining reframing with face tracking.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives clear context for when to use the tool ('turning a horizontal interview into a vertical clip') and provides a concrete workflow: call detect_faces first if you want to choose a person, then pass its track_id. It does not explicitly name when-not-to-use alternatives, but the classic-use case and prerequisite are strong guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/AbyAbyss/ffmpeg-mcp-video-editor'

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