Skip to main content

MCP server for adjusting video aspect ratio with padding or cropping

Project description

Video Aspect Ratio MCP

A Model Context Protocol (MCP) server for adjusting video aspect ratio.

Features

  • Aspect Ratio Adjustment: Change video aspect ratios with padding or cropping
  • Support for common ratios: 16:9, 4:3, 1:1, 9:16, etc.
  • Padding mode with customizable colors
  • Crop mode for center cropping

Installation

Install via uvx (recommended):

uvx video-aspect-ratio-mcp

Or install via pip:

pip install video-aspect-ratio-mcp

Usage

Run the MCP server:

video-aspect-ratio-mcp

Requirements

  • Python >=3.12
  • FFmpeg installed on your system

Tool

change_aspect_ratio

Adjust video aspect ratio with options:

  • video_path: Input video file path
  • output_video_path: Output video file path
  • target_aspect_ratio: Target ratio (e.g., '16:9', '4:3', '1:1')
  • resize_mode: 'pad' (scale and add borders) or 'crop' (center crop)
  • padding_color: Border color when using pad mode (e.g., 'black', 'white', '#RRGGBB')

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcpcn_video_aspect_ratio_mcp-0.1.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcpcn_video_aspect_ratio_mcp-0.1.1-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file mcpcn_video_aspect_ratio_mcp-0.1.1.tar.gz.

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7e6fd24a9e4f30d1874424a5c813b9968c1f47b5b7df35d31240094b146240ce
MD5 ed4f5e9630ff1544b71189d910466945
BLAKE2b-256 fe3ea1386aa6e931c02902400b2cb20c0e1e03e6c8bd3b692f79bfb93c46cf58

See more details on using hashes here.

File details

Details for the file mcpcn_video_aspect_ratio_mcp-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21cc4aee8abfbf1c98f1f97e9bc5465ee00b7b3bbf79714cc6f7812a50dd3134
MD5 800acf8215b9a4d0c48c6111467821a7
BLAKE2b-256 a19e0ba8e8621a9312da62956bb22aec3b2137fa511b9075f685b988951e309b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page