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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 79df6d10a5c79f1ab480e7d668910139716d0deb369bf23cb866c9a4182bb171
MD5 7fb76b6a0977dbfac3482739f3fd1929
BLAKE2b-256 03231ebb5fa69603e26e7d7426582ec7bb248b535401a3706fb0dc027e5400b6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e52d889b511dcc9a6b6503fc9136008aa66a0a3a04f479e2509c4bee237ab9f1
MD5 ca2051b106803cd3e91b7197b3e0abd7
BLAKE2b-256 d2b67b7d538c62004f6ee983771d82e046dfc3a1f5caaa5454b7152047bfd709

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