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

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 7dfcd53c779f4af285d97e01d860c845a82525cffc3de68566131850c59ae53c
MD5 0e69145f6c441c05ebb91ef86b1155ae
BLAKE2b-256 15ad327612f8f6e4b37967b91c294c72cb87de03bcdfc19f14b1472e84bc5a43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07553dbd502157267959d4f2327ffb4a89dfff660f83c75f8c45ace61b5a9719
MD5 ebc08dd281085a3d6a135af5a6e7f4e3
BLAKE2b-256 1a78c672ba51603f06a66a8b8650b9829bcb7e6df6c416d9f6b151c0daff5111

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