Skip to main content

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

Metadata

Release files for mcpcn-video-extract-frames-mcp 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcpcn-video-extract-frames-mcp 0.1.5
File Size Uploaded
mcpcn_video_extract_frames_mcp-0.1.5.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mcpcn-video-extract-frames-mcp 0.1.5
File Interpreter ABI Platform
mcpcn_video_extract_frames_mcp-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / mcpcn_video_extract_frames_mcp-0.1.5.tar.gz

Download URL mcpcn_video_extract_frames_mcp-0.1.5.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
277403d50fc6dc841809e2205e4bcb7565d95864b6ed87fe656c6a697c4a0f53
BLAKE2b-256 checksum
How to use checksums
c1e7d5ced843e84555110a93c0f33a227eeb75ccf7fa667be4238aab35945624
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / mcpcn_video_extract_frames_mcp-0.1.5-py3-none-any.whl

Download URL mcpcn_video_extract_frames_mcp-0.1.5-py3-none-any.whl
Size 7.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
06ead7f036e85d73e58bc47f362268f20126f20b60ed5d39fbc426569e52c15d
BLAKE2b-256 checksum
How to use checksums
9cee88045127d9cf03ce1618a86b8664394efcd7d4179f25b6a9b2d9255bc312
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page