MCP server for extracting frames from video as images based on scene changes
Project description
Video Extract Frames MCP
从视频中提取帧为图片的 MCP Server,支持按间隔提取和场景变化检测。
功能
- 按固定时间间隔提取帧
- 提取首帧/末帧
- 基于场景变化检测提取关键帧
- 支持多种图片格式:png、jpg、webp、bmp、tiff
安装
uvx video-extract-frames-mcp
或通过 pip 安装:
pip install video-extract-frames-mcp
使用
video-extract-frames-mcp
工具
extract_video_frames
从视频中按间隔或特定位置提取帧为图片。
参数:
video_path: 输入视频路径output_dir: 输出目录image_format: 输出图片格式(默认 'png')interval_seconds: 间隔秒数extract_first: 是否提取首帧extract_last: 是否提取末帧width/height: 可选缩放尺寸
extract_scene_change_frames
基于画面变化检测提取场景切换关键帧。
参数:
video_path: 输入视频路径output_dir: 输出目录image_format: 输出图片格式(默认 'png')scene_threshold: 场景变化阈值(0.0~1.0,默认 0.4)min_scene_gap_seconds: 最小时间间隔max_frames: 最多导出帧数width/height: 可选缩放尺寸
依赖
- Python >=3.12
- FFmpeg(需系统安装)
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_extract_frames_mcp-0.1.0.tar.gz.
File metadata
- Download URL: mcpcn_video_extract_frames_mcp-0.1.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c414af03a36d12abd823459f7984c71f8528df9e4f55efadccea7b7d1364d510
|
|
| MD5 |
da1c468ac234a4a18b5e2783aaa9c73f
|
|
| BLAKE2b-256 |
0dac3d03d1f07ef2bd62424f4b6952a71eeb5fbb5923b754772c9dc22e966b77
|
File details
Details for the file mcpcn_video_extract_frames_mcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mcpcn_video_extract_frames_mcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3d55e3568ebafb9c14fab20989738a4f895e2c55d828b27c6c18076f716a78e
|
|
| MD5 |
5b32aef3062465cabce4d01568413beb
|
|
| BLAKE2b-256 |
d760042ef847820c18d283c88bde28ec2ee268a812379f641a0c0c744180c643
|