所有工具

video_export_gif

屏幕、窗口与界面 · macOS · Windows

效果: 写入. 状态: 受限可用.

“受限可用”表示工具可能取决于版本、平台、权限、账户或配置,并不表示它在所有安装中都已启用。

macOS

用途

将视频(或其中的 [start_ms,end_ms] 片段)导出为针对循环播放优化的 GIF,适用于 README/社交媒体。fps(默认 12)和 width(默认 640,高度自动)控制大小。返回输出路径、帧数和文件大小。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构macOS
{
  "properties": {
    "end_ms": {
      "description": "Slice end (default: end of video).",
      "type": "integer"
    },
    "fps": {
      "description": "Frames per second in the GIF (default 12).",
      "type": "integer"
    },
    "input": {
      "description": "Path to the source video.",
      "type": "string"
    },
    "output": {
      "description": "Output path (default: <input>.gif). Missing parent folders are created.",
      "type": "string"
    },
    "start_ms": {
      "description": "Slice start (default 0).",
      "type": "integer"
    },
    "width": {
      "description": "Output width in px, height scales to keep aspect (default 640).",
      "type": "integer"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

文档示例

video_export_gif 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "input": "/Users/demo/Documents/meeting.mov"
}

Windows

用途

将视频(或其中的 [start_ms,end_ms] 片段)导出为针对循环播放优化的 GIF,适用于 README/社交媒体。fps(默认 12)和 width(默认 640,高度自动)控制大小。返回输出路径、帧数和文件大小。

必填输入

输入名称会严格保持工具要求的形式。下方可展开的架构中保留英文规范技术定义。

权限与确认

架构未声明明确的确认参数。这并不代表可以未经许可操作;请检查效果并取得授权。

英文规范技术架构Windows
{
  "properties": {
    "end_ms": {
      "description": "Slice end in ms (default: end of video).",
      "type": "integer"
    },
    "fps": {
      "description": "GIF frame rate 1-30 (default 12).",
      "type": "integer"
    },
    "input": {
      "description": "Path to the source video.",
      "type": "string"
    },
    "output": {
      "description": "Output path (default: <input>_clip.gif).",
      "type": "string"
    },
    "start_ms": {
      "description": "Slice start in ms (default 0).",
      "type": "integer"
    },
    "width": {
      "description": "Output width in px, height scales to keep aspect (default 640).",
      "type": "integer"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

文档示例

video_export_gif 的文档示例。请勿执行此示例。所示参数属于虚构数据集;在实际调用前,请解析真实标识符并获得授权。

{
  "input": "C:\\Users\\demo\\Documents\\meeting.mov"
}