跳到正文
所有工具

video_blur_region

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

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

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

macOS

用途

对视频上的一个或多个矩形进行像素化/模糊处理——用于在发布屏幕录制之前遮盖个人身份信息(邮件窗格、姓名)的工具。矩形使用源像素,原点在左上角:[{x,y,w,h, start_ms?, end_ms?}]——省略时间则覆盖整个片段。与标记时间线的 `bounds` 搭配很好用。返回输出路径。首次调用返回预览;confirm: true 才会写入文件。

必填输入

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

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — macOS
{
  "properties": {
    "confirm": {
      "description": "Must be true to write the output. Without it the call returns a preview and writes nothing.",
      "type": "boolean"
    },
    "input": {
      "description": "Path to the source video file.",
      "type": "string"
    },
    "output": {
      "description": "Default: <input>_blurred.mov. Missing parent folders are created.",
      "type": "string"
    },
    "overwrite": {
      "description": "Replace an existing file at output. Without it an existing output is refused. The input is never overwritten.",
      "type": "boolean"
    },
    "regions": {
      "description": "[{x,y,w,h, start_ms?, end_ms?}] in source pixels (top-left).",
      "items": {
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "input",
    "regions"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "input": "/Users/demo/Documents/meeting.mov",
  "regions": [
    {
      "end_ms": 5000,
      "h": 180,
      "start_ms": 0,
      "w": 320,
      "x": 0,
      "y": 0
    }
  ]
}

Windows

用途

对视频上的一个或多个矩形进行像素化/模糊处理——用于在发布屏幕录制之前遮盖个人身份信息(邮件窗格、姓名)的工具。矩形使用源像素,原点在左上角:[{x,y,w,h, start_ms?, end_ms?}]——省略时间则覆盖整个片段。与标记时间线的 `bounds` 搭配很好用。返回输出路径。首次调用返回预览,不写入任何内容;confirm=true 才会导出。

必填输入

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

权限与确认

架构声明了明确的确认参数。请检查预览,并按此平台的契约授权实际操作。

英文规范技术架构 — Windows
{
  "properties": {
    "confirm": {
      "description": "Must be true to export. Without it, returns a preview.",
      "type": "boolean"
    },
    "input": {
      "description": "Path to the source video.",
      "type": "string"
    },
    "output": {
      "description": "Output path (default: <input>_blurred.mov).",
      "type": "string"
    },
    "regions": {
      "description": "[{x,y,w,h, start_ms?, end_ms?}] in source pixels (top-left).",
      "items": {
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "input",
    "regions"
  ],
  "type": "object"
}

文档示例

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

{
  "confirm": false,
  "input": "C:\\Users\\demo\\Documents\\meeting.mov",
  "regions": [
    {
      "end_ms": 5000,
      "h": 180,
      "start_ms": 0,
      "w": 320,
      "x": 0,
      "y": 0
    }
  ]
}