Skip to main content
Glama

get_video_info

Extract detailed video metadata including duration, frame rate, and codec from a specified file path using the FFmpeg-MCP server’s processing capabilities.

Instructions

获取视频信息,包括时长,帧率,codec等

参数:
video_path (str): 输入视频文件路径
返回:
视频详细信息

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
video_pathYes

Implementation Reference

  • The core handler function that runs ffprobe to retrieve video stream information including duration, framerate, codec etc. in JSON format.
    def get_video_info(video_path: str):
        cmd = f" -v error -show_streams -of json -i {video_path}"
        return ffmpeg.run_ffprobe(cmd, timeout=60)
  • Registers the 'get_video_info' tool with the MCP server using @mcp.tool() decorator. Includes input parameter description in docstring and delegates execution to cut_video.get_video_info.
    @mcp.tool()
    def get_video_info(video_path: str):
        """
        获取视频信息,包括时长,帧率,codec等
        
        参数:
        video_path (str): 输入视频文件路径
        返回:
        视频详细信息
        """
        return cut_video.get_video_info(video_path)

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/video-creator/ffmpeg-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server