AgentSkillsCN

analyze-clip

分析视频片段,排查质量缺陷、时序问题以及对话准确性。适用于检查生成的视频、验证片段内容、查找黑帧、卡帧,或定位音频同步问题。

SKILL.md
--- frontmatter
name: analyze-clip
description: Analyze video clips for quality issues, timing problems, and dialogue accuracy. Use when checking generated videos, validating clips, finding black frames, freeze frames, or audio sync issues.
allowed-tools: Read, mcp__video-generator__*
context: fork
agent: general-purpose

Analyze Clip

Comprehensive video clip analysis using the MCP tools.

Quick Start

Use the analyze_clip_unified tool:

code
Tool: analyze_clip_unified
Args: { "videoPath": "data/video/clip.mp4" }

What It Detects

SignalSourcePurpose
Scene changesffmpeg scene detectionVisual discontinuities
Black framesffmpeg blackdetectFades, dead regions
Freeze framesffmpeg freezedetectStatic frames, AI artifacts
Speech segmentsWhisperAudio activity
Dialogue matchComparisonValidate generated speech

With Dialogue Context

code
Tool: analyze_clip_unified
Args: {
  "videoPath": "data/video/clip.mp4",
  "context": {
    "dialogue": [
      {"speaker": "marcus", "text": "Hello there"}
    ]
  }
}

Available Analysis Tools

ToolPurpose
analyze_clip_unifiedFull analysis (scenes, black, freeze, audio)
transcribeWhisper transcription only
analyze_audio_timelineSpeech/silence detection
analyze_dialogue_clipCompare expected vs actual dialogue

Interpreting Results

  • recommended_action: 'use_as_is', 'trim', 'review', or 'regenerate'
  • trim_recommendation: Suggested start/end times
  • anomalies: Issues found (with severity)

See .claude/rules/agents.md for full response schema.