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.4.tar.gz (5.7 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.4-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.4.tar.gz
Algorithm Hash digest
SHA256 767ffeda574d3b67aa6602bfbd9203e0e8d607522e68310167fad58c1f39fbd1
MD5 9c559b06ea05d122bfca262c385dcb13
BLAKE2b-256 4d83dd28dffcdd05e5d6edf8f4b970e24313c97ca90184276f37488a29c1a604

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d6dbd8acf237d100ce0adcbd017b3b39bafa7feac916e968fd68969948b03dd8
MD5 8004bf2a9f21a44b272c49250e950486
BLAKE2b-256 cf82dc944e356f5e10ed5a2b3378bae44925895fb8daeaba60c9f3108037a5a5

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