Skip to main content

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

mcpcn_video_extract_frames_mcp-0.1.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file mcpcn_video_extract_frames_mcp-0.1.2.tar.gz.

File metadata

File hashes

Hashes for mcpcn_video_extract_frames_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 2d3215263d6390ab6127bf5afc9efa848be0b3ffea70013eb77d5f29d3884e45
MD5 07ec84ae77eef7e447320dcf5429c3d5
BLAKE2b-256 2b9429577a92d2a1190d4d92f0b1d2b1d2c21ea6aba05d57a3a6729cd578b0cc

See more details on using hashes here.

File details

Details for the file mcpcn_video_extract_frames_mcp-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mcpcn_video_extract_frames_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d76f3bf899b76dadd940755c2eddc3dc826ce408d91ac91404fb9fb18d83b4d3
MD5 566113e8507509b8ec1684d0634972e0
BLAKE2b-256 7f69f684a91d109d8e612ed019be946f0ee35b8de35b53627637fff8a8f2494a

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