Skip to main content
Glama

crop_video

Crop videos to specific dimensions and positions using FFmpeg. Specify width, height, and offset coordinates to extract desired portions from video files.

Instructions

Crop a video using ffmpeg-python.

Params: input_video_path: Path to input video (required) safe_crop: If True, allows exact cropping (ignores mod-2 restrictions). Default: False height: Output height (default: 480) width: Output width (default: 640) x_offset: Top-left X coordinate of crop (default: 0) y_offset: Top-left Y coordinate of crop (default: 0)

Returns: str: Path to the cropped video.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
input_video_pathYes
safe_cropNo
heightNo
widthNo
x_offsetNo
y_offsetNo

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/yubraaj11/ffmpeg-mcp'

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