# Video Scene Detection: Shot Cuts with Timecodes and Keyframes

**Use case:** 

Find every shot change in a video: the start, end and length of each scene, frame-accurate, with a keyframe JPEG per scene and a CSV shot list. MP4, MOV, WebM and MKV links, Google Drive and Dropbox files. Built on PySceneDetect. Pay per minute of video.

## Input

```json
{
  "videoUrls": [
    "https://api.apify.com/v2/key-value-stores/T5HtoeQYut1ufwkKC/records/short-cuts.mp4"
  ],
  "chapters": "visual",
  "minChapterSeconds": 10,
  "maxChapters": 12,
  "chapterLanguage": "",
  "sensitivity": 3,
  "minSceneSeconds": 0.6,
  "maxKeyframes": 60,
  "contactSheet": true,
  "maxMinutesPerVideo": 120
}
```

## Output

```json
{
  "fileName": {
    "label": "File",
    "format": "string"
  },
  "durationSeconds": {
    "label": "Length (s)",
    "format": "number"
  },
  "sceneCount": {
    "label": "Scenes",
    "format": "integer"
  },
  "chapterMode": {
    "label": "Chapters",
    "format": "string"
  },
  "youtubeChapters": {
    "label": "YouTube chapters",
    "format": "string"
  },
  "contactSheetUrl": {
    "label": "Contact sheet",
    "format": "string"
  },
  "billedMinutes": {
    "label": "Minutes",
    "format": "integer"
  },
  "error": {
    "label": "Error",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Video Scene Detection & Chapter Generator: Cuts, Keyframes Actor is ready to run with the inputs already set for "Video Scene Detection: Shot Cuts with Timecodes and Keyframes". [Sign up or log in](https://console.apify.com/create-task-from-example/n0TOBvDdogKyUkJ2h) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Video Scene Detection: Shot Cuts with Timecodes and Keyframes" task

The Video Scene Detection & Chapter Generator: Cuts, Keyframes Actor will start running based on the input automatically. You can also change all the input fields, like video links, chapters, and more, to match your specific use case.

### 3. Receive the "Video Scene Detection: Shot Cuts with Timecodes and Keyframes" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as file, length (s), scenes, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Video Scene Detection: Shot Cuts with Timecodes and Keyframes" task via API](https://apify.com/bossless/video-scene-chapters.md).

## About this Actor

This example demonstrates how to use [Video Scene Detection & Chapter Generator: Cuts, Keyframes](https://apify.com/bossless/video-scene-chapters.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/bossless/video-scene-chapters.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/bossless/video-scene-chapters.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
