name: extract-video-frames description: Extracts frames and timestamped audio segments from video files (GIF, MP4, MOV) at configurable intervals and stores them in a directory with a manifest file. Use when analyzing video content, preparing frames for visual review, extracting audio for transcription, or creating frame+audio sequences for another agent to process. argument-hint: [video-path] [interval-seconds] [output-dir]
# Extract 1 frame + audio segment per second (default)
~/.claude/skills/extract-video-frames/scripts/extract-frames.sh input.mp4
# Extract 1 frame + audio segment every 2 seconds
~/.claude/skills/extract-video-frames/scripts/extract-frames.sh input.mp4 2
# Specify custom output directory
~/.claude/skills/extract-video-frames/scripts/extract-frames.sh input.mp4 1 ./my-frames
The script creates:
frames/directory with PNG files namedframe_001.png,frame_002.png, etc.frames/audio_001.aac,audio_002.aac, etc. (when audio exists, aligned 1:1 with frames)frames/full_audio.aac(complete audio track, when audio exists)frames/manifest.jsonwith frame and audio metadata for the reviewing agent
Run extraction script
~/.claude/skills/extract-video-frames/scripts/extract-frames.sh <video-path> [interval-seconds] [output-dir]video-path: Path to GIF, MP4, or MOV file (required)interval-seconds: Extract one frame every N seconds (default: 1)output-dir: Where to store frames and audio (default:./frames)
Review manifest The manifest.json contains:
{ "source": "recording.mp4", "source_path": "/path/to/recording.mp4", "interval_seconds": 5, "total_frames": 12, "has_audio": true, "audio_codec": "aac", "total_audio_segments": 12, "full_audio_path": "full_audio.aac", "output_directory": "./frames", "frames": [ { "index": 1, "timestamp": "00:00:00", "timestamp_seconds": 0, "path": "frame_001.png", "audio_path": "audio_001.aac" }, { "index": 2, "timestamp": "00:00:05", "timestamp_seconds": 5, "path": "frame_002.png", "audio_path": "audio_002.aac" } ] }Hand off to reviewing agent Pass the output directory path to the reviewing agent. The agent can read
manifest.jsonto understand the frame sequence with audio alignment and use the Read tool to analyze individual frames.
Codec strategy:
- If the source audio is already AAC, segments are stream-copied (no re-encoding) for speed and quality preservation.
- If the source audio is any other codec (e.g., PCM, MP3, Opus), segments are re-encoded to AAC at 128kbps.
Alignment semantics: Each audio_NNN.aac segment covers the same time window as its corresponding frame_NNN.png. For a 5-second interval, audio_001.aac covers 0:00-0:05, audio_002.aac covers 0:05-0:10, etc.
No-audio handling: When the source has no audio stream (GIFs, silent videos), has_audio is false, no audio files are created, and all audio_path fields in the manifest are null. The frame extraction works identically regardless.
Full audio track: full_audio.aac contains the entire audio from the source file as a single continuous track, useful for full transcription or background listening.
- Output directory path: Where frames and audio are stored
- Manifest location:
{output-dir}/manifest.json - Context: What the reviewing agent should look for
Example prompt for reviewing agent:
Analyze the frames and audio extracted from the screen recording at ./frames.
The manifest at ./frames/manifest.json lists all frames with timestamps and paired audio segments.
The full audio track is at ./frames/full_audio.aac for continuous listening or transcription.
Look for: [specific things to identify or analyze]
Example prompt for audio-focused agent:
Transcribe the audio segments from the recording at ./frames.
Read ./frames/manifest.json to get the list of audio files with timestamps.
For each audio_NNN.aac segment, provide a timestamped transcript.
The full continuous audio is also available at ./frames/full_audio.aac.