dLazy AIdLazy AI
模型参考图像模型

video-frame

视频抽帧工具:按指定模式(首帧、尾帧或指定时间)从视频中提取一帧图像并返回上传后的图片 URL。

视频抽帧工具:按指定模式(首帧、尾帧或指定时间)从视频中提取一帧图像并返回上传后的图片 URL。

概览

字段
Model IDvideo-frame
CLIdlazy video-frame
MCPvideo-frame(在 Claude Code 中显示为 mcp__dlazy__video-frame
类型image
执行同步返回
批量支持 --batch <n> 并行扇出

参数

参数类型必填说明
fileurlYes文件URL;video(接受 URL、本地路径或 data: URL)
mode"first" | "last" | "current"Yes模式
timestringNo时间点(秒)

--input @file.json--input '{...}' 也可一次性提供所有参数;命令行 flag 优先级更高。

CLI 示例

dlazy video-frame --help
dlazy video-frame --file "https://example.com/source.mp4" --mode "first"
dlazy video-frame --file "./local-video.mp4" --mode "first"
dlazy video-frame --file "https://example.com/source.mp4" --mode "first" --dry-run
dlazy video-frame --file "https://example.com/source.mp4" --mode "first" --batch 4

与管道组合

dlazy seedance-2.0-fast --prompt "参考视频" \
  | dlazy video-frame --file -

MCP

MCP 由 AI 客户端调用,无需手写示例。把 dLazy 注册成 MCP server 后,工具会自动出现在客户端的工具列表里——Claude Code 中名字是 mcp__dlazy__video-frame,OpenClaw 等通用客户端按裸 video-frame 调用。

添加 MCP server 见 MCP 集成

输出

{
  "outputs": [
    { "type": "json", "id": "o_...", "value": { /* tool-specific payload */ } }
  ]
}

结构化结果以 json output 返回,具体字段取决于该工具。

On this page