Video-Watch
by @kartinw
Analyze video content by extracting frames at regular intervals. Use when you need to understand what's in a video file, review video content, analyze scenes, or describe video without being able to play it directly. Supports MP4, MOV, AVI, MKV, and other common video formats.
clawhub install video-watcherπ About This Skill
name: video-analyzer description: Analyze video content by extracting frames at regular intervals. Use when you need to understand what's in a video file, review video content, analyze scenes, or describe video without being able to play it directly. Supports MP4, MOV, AVI, MKV, and other common video formats.
Video Analyzer
Analyze video files by extracting frames at 1-second intervals using ffmpeg, then examining the frames to understand the video content.
Prerequisites
Requires ffmpeg installed on the system. Install if missing:
# Ubuntu/Debian
sudo apt-get install -y ffmpegmacOS
brew install ffmpeg
Usage
Extract frames from video
scripts/extract_frames.sh [output_dir] [fps]
Arguments:
video_path (required): Path to the video fileoutput_dir (optional): Directory for extracted frames. Default: creates frames_ in current directoryfps (optional): Frames per second to extract. Default: 1 (one frame per second)Example:
scripts/extract_frames.sh /path/to/video.mp4
scripts/extract_frames.sh /path/to/video.mp4 ./my_frames
scripts/extract_frames.sh /path/to/video.mp4 ./my_frames 2 # 2 frames per second
Output:
frame_001.jpg, frame_002.jpg, etc.Workflow
1. Run extract_frames.sh on the video file
2. Read key frames using the read tool to view images
3. For comprehensive analysis, sample frames at regular intervals (e.g., every 5th frame)
4. Describe what you see in each frame to build understanding of the video
Tips
π‘ Examples
Extract frames from video
scripts/extract_frames.sh [output_dir] [fps]
Arguments:
video_path (required): Path to the video fileoutput_dir (optional): Directory for extracted frames. Default: creates frames_ in current directoryfps (optional): Frames per second to extract. Default: 1 (one frame per second)Example:
scripts/extract_frames.sh /path/to/video.mp4
scripts/extract_frames.sh /path/to/video.mp4 ./my_frames
scripts/extract_frames.sh /path/to/video.mp4 ./my_frames 2 # 2 frames per second
Output:
frame_001.jpg, frame_002.jpg, etc.βοΈ Configuration
Requires ffmpeg installed on the system. Install if missing:
# Ubuntu/Debian
sudo apt-get install -y ffmpegmacOS
brew install ffmpeg