Skip to content
scene-detector logo

Scene Detector

scene-detector

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.

SKILL.md

Full skill instructions

Scene Detector

This skill enables AI agents to detect scene changes and shot boundaries in videos using PySceneDetect.

When to Use

  • User wants to find scene changes in a video
  • Need natural cut points for video editing
  • Want to segment long video into scenes
  • Detecting transitions for autocut workflow

Available Scripts

scripts/​detect_scenes.py

Detect 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/

Detection Methods

Adaptive Detection (Default)

Adapts to video content, works well for:

  • Fast cuts (music videos, action)
  • Gradual fades (narrative content)
  • Mixed content

Threshold-Based Detection

Fixed threshold comparison:

  • --threshold 0.1: Very sensitive (many scenes)
  • --threshold 0.3: Balanced (default)
  • --threshold 0.5: Less sensitive (fewer scenes)

Output Format

JSON Output

{
  "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"
    }
  ]
}

Split Clips

When --split is used, creates:

clips/
  scene_001.mp4
  scene_002.mp4
  scene_003.mp4
  ...

Integration with Other Skills

After scene detection, you can use these skills:

  • video-trimmer: Trim specific scenes
  • highlight-scanner: Use scene changes as cut points
  • autocut-shorts: Full workflow for creating short clips

Common Workflow

  1. User provides video file
  2. Detect scenes using this skill
  3. Identify interesting scenes based on timing
  4. Create short clips from selected scenes

Tips

  • Lower threshold = more scenes detected
  • Use --min-scene-len to filter out very short scenes
  • Scene boundaries are excellent cut points for short-form content
  • Consider scene changes when creating clips (15-60s each)

References

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View