skills/scene-detector/SKILL.md
Detect scene changes and shot boundaries in videos. Use when you need to identify where scenes change, find natural cut points, or segment video into scenes. Supports adaptive detection for both fast cuts and gradual fades.
npx skillsauth add akrindev/trimer-clip scene-detectorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill enables AI agents to detect scene changes and shot boundaries in videos using PySceneDetect.
scripts/detect_scenes.pyDetect scene changes in video.
Usage:
python skills/scene-detector/scripts/detect_scenes.py <video_path> [options]
Options:
--threshold: Detection threshold (0.1-0.5) - default: 0.3 (lower = more scenes)--min-scene-len: Minimum scene length in seconds - default: 0.5--output, -o: Output JSON path (default: <video_path>_scenes.json)--split: Split video into clips--output-dir: Directory for split clips (default: ./clips/)Examples:
Detect scenes with default settings:
python skills/scene-detector/scripts/detect_scenes.py video.mp4
Detect with more sensitivity (more scenes):
python skills/scene-detector/scripts/detect_scenes.py video.mp4 --threshold 0.2
Detect and split video into clips:
python skills/scene-detector/scripts/detect_scenes.py video.mp4 --split --output-dir ./scene_clips/
Adapts to video content, works well for:
Fixed threshold comparison:
--threshold 0.1: Very sensitive (many scenes)--threshold 0.3: Balanced (default)--threshold 0.5: Less sensitive (fewer scenes){
"video_path": "video.mp4",
"duration": 123.45,
"total_scenes": 15,
"scenes": [
{
"scene_number": 1,
"start_time": 0.0,
"end_time": 8.5,
"duration": 8.5,
"content_type": "fast_cut"
},
{
"scene_number": 2,
"start_time": 8.5,
"end_time": 23.2,
"duration": 14.7,
"content_type": "fade"
}
]
}
When --split is used, creates:
clips/
scene_001.mp4
scene_002.mp4
scene_003.mp4
...
After scene detection, you can use these skills:
video-trimmer: Trim specific sceneshighlight-scanner: Use scene changes as cut pointsautocut-shorts: Full workflow for creating short clips--min-scene-len to filter out very short scenestesting
Download videos from YouTube URLs. Use when user wants to download a YouTube video for processing, editing, or transcription. Supports different quality options, audio-only extraction, and playlist downloads.
tools
Trim and cut videos by timestamp with precision. Supports both stream copy (fast) and re-encoding (quality) modes. Use when you need to extract specific segments from videos, create clips from highlights, or cut unwanted portions.
development
Transcribe audio from videos using Whisper (local), OpenAI Whisper API, Google Speech-to-Text, or Gemini API (gemini-flash-lite-latest). Use when you need to convert video/audio to text for further processing, subtitle generation, or content analysis. Supports multiple languages, speaker diarization, and timestamp-accurate transcription. Gemini provides additional features like emotion detection and viral segment analysis.
tools
Add burned-in subtitles/captions to video clips. Supports SRT/VTT/ASS subtitle files, customizable styling (font, size, color, position), and platform-specific presets for TikTok, YouTube Shorts, and Instagram Reels.