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 pathoutput_video_path: Output video file pathtarget_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcpcn_video_aspect_ratio_mcp-0.1.6.tar.gz.
File metadata
- Download URL: mcpcn_video_aspect_ratio_mcp-0.1.6.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6f14f89ee18e5d3c1069ff07cb1424531a8cb63b6da53d6e76d498c21f2e863
|
|
| MD5 |
367ca2b5fa1575460bdd3bf4a1978038
|
|
| BLAKE2b-256 |
c4b49a8ae18082cdbd5514b74dbb6064e3c7c9a78dbfdff8bfe6158cec84cc71
|
File details
Details for the file mcpcn_video_aspect_ratio_mcp-0.1.6-py3-none-any.whl.
File metadata
- Download URL: mcpcn_video_aspect_ratio_mcp-0.1.6-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8749b4c72d03a81484046a1eea660342d15ac7e0e38d4ebe97049a75054b0929
|
|
| MD5 |
b2ac7290722a82893eaa649bd5cd50c9
|
|
| BLAKE2b-256 |
d10a549c0d7a70e7414b71dce1e01404319f80a07fd2862efcf57701046cd293
|