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.5.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.5-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.5.tar.gz.

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f3c2a439ab8d6465be063abc39919320076bd18c09694f1f42e11b3eeed77b7f
MD5 c482140aa42732202899925ac733002c
BLAKE2b-256 2bad5470b550c065f119237e03f6f423f4fdf8f6b351df48afa64f8762a08d65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mcpcn_video_aspect_ratio_mcp-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2475a1e910bcc7a6eb7c884f8dc4bef3821df79dadcacdaa17fa65a52281d9bf
MD5 f87866498a11a132ed93fe04b51998cb
BLAKE2b-256 7b49a2bc12764c0a48fb1183758a154a1e62bfa57727d85bb6c561e14b43c92c

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