Install
openclaw skills install auto-video-analyzer自动分析视频内容,提取关键帧进行AI视觉分析。支持 Windows、macOS 和 Linux。首次使用自动从GitHub下载对应平台的工具脚本。
openclaw skills install auto-video-analyzer自动分析视频内容,提取关键帧进行AI视觉分析。
当用户消息包含以下模式时自动调用:
| 模式 | 关键词 | 示例 |
|---|---|---|
| Scan | "分析视频", "看一下视频", "说说视频内容" | "分析视频 C:\video.mp4" |
| Full | "详细分析视频", "深度分析视频" | "详细分析视频 D:\demo.mp4" |
| Debug | "Debug视频", "排查视频", "视频问题" | "Debug视频,为什么角色不动" |
安装 FFmpeg (必需):
Windows:
winget install Gyan.FFmpeg
macOS:
brew install ffmpeg
Linux (Ubuntu/Debian):
sudo apt update && sudo apt install ffmpeg
Linux (CentOS/RHEL):
sudo yum install ffmpeg
当用户说:
"分析一下 /Users/xxx/Videos/demo.mp4"
AI 自动执行:
auto-analyze-video.ps1auto-analyze-video.sh脚本托管于 GitHub:
包含:
auto-analyze-video.ps1 - Windows PowerShell 版本auto-analyze-video.sh - macOS/Linux Bash 版本首次使用时 AI 会自动检测平台并下载对应版本。
AI 助手首次使用时执行以下逻辑:
# 展开路径
$toolsDir = $executionContext.InvokeCommand.ExpandString("$env:USERPROFILE/.openclaw/workspace/tools")
# 检测平台
$isWindows = $IsWindows -or ($env:OS -eq "Windows_NT") -or ($PSVersionTable.Platform -eq "Win32NT")
if ($isWindows) {
$scriptName = "auto-analyze-video.ps1"
$scriptPath = Join-Path $toolsDir $scriptName
} else {
$scriptName = "auto-analyze-video.sh"
$scriptPath = Join-Path $toolsDir $scriptName
}
$scriptUrl = "https://raw.githubusercontent.com/shishenbaiye/auto-video-analyzer/main/tools/$scriptName"
# 检查并下载
if (-not (Test-Path $scriptPath)) {
New-Item -ItemType Directory -Force -Path $toolsDir | Out-Null
Invoke-WebRequest -Uri $scriptUrl -OutFile $scriptPath -UseBasicParsing
# Linux/macOS 需要添加执行权限
if (-not $isWindows) {
chmod +x $scriptPath
}
Write-Host "✅ 工具已下载: $scriptPath"
}
# 从 ClawHub 安装
clawhub install auto-video-analyzer
# 或从 GitHub 直接安装
clawhub install shishenbaiye/auto-video-analyzer