# Pull six frames from a sample video clip

**Use case:** 

Saves six evenly spaced frames from a 10 second clip of Big Buck Bunny, plus a best thumbnail and a contact sheet with each frame's timecode. The dataset gives each frame's download link and timestamp, with the video's length, codec and frame rate. Switch to every N seconds, your own timestamps or scene changes. Your files must be WebM, MKV or Ogg with AV1, VP8, VP9 or Theora video.

## Input

```json
{
  "videoUrls": [
    {
      "url": "https://test-videos.co.uk/vids/bigbuckbunny/webm/vp9/360/Big_Buck_Bunny_360_10s_1MB.webm"
    }
  ],
  "mode": "count",
  "frameCount": 6,
  "intervalSeconds": 10,
  "startSeconds": 0,
  "sceneThreshold": "0.3",
  "maxFramesPerVideo": 50,
  "addThumbnail": true,
  "contactSheet": true,
  "contactSheetColumns": 4,
  "imageFormat": "jpeg",
  "quality": 85,
  "maxWidth": 1280,
  "maxHeight": 0,
  "maxVideoSizeMb": 500,
  "timeoutSecondsPerVideo": 900
}
```

## Output

```json
{
  "imageUrl": {
    "label": "Frame",
    "format": "image"
  },
  "kind": {
    "label": "Kind",
    "format": "text"
  },
  "timecode": {
    "label": "Timecode",
    "format": "text"
  },
  "timestampSeconds": {
    "label": "Seconds",
    "format": "number"
  },
  "frameNumber": {
    "label": "Number",
    "format": "number"
  },
  "videoUrl": {
    "label": "Video",
    "format": "link"
  },
  "ok": {
    "label": "Saved",
    "format": "boolean"
  },
  "imageWidth": {
    "label": "Width",
    "format": "number"
  },
  "imageHeight": {
    "label": "Height",
    "format": "number"
  },
  "imageBytes": {
    "label": "Bytes",
    "format": "number"
  },
  "durationSeconds": {
    "label": "Video length (s)",
    "format": "number"
  },
  "videoWidth": {
    "label": "Video width",
    "format": "number"
  },
  "videoHeight": {
    "label": "Video height",
    "format": "number"
  },
  "videoCodec": {
    "label": "Codec",
    "format": "text"
  },
  "frameRate": {
    "label": "FPS",
    "format": "number"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## How it works

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

The Video Frame Extractor: frames, thumbnails and scene changes Actor is ready to run with the inputs already set for "Pull six frames from a sample video clip". [Sign up or log in](https://console.apify.com/create-task-from-example/JbOa4sfqmujnXouaX) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Pull six frames from a sample video clip" task

The Video Frame Extractor: frames, thumbnails and scene changes Actor will start running based on the input automatically. You can also change all the input fields, like video urls, which frames, and more, to match your specific use case.

### 3. Receive the "Pull six frames from a sample video clip" 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 frame, kind, timecode, 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 "Pull six frames from a sample video clip" task via API](https://apify.com/examsens.ai/video-frame-extractor.md).

## About this Actor

This example demonstrates how to use [Video Frame Extractor: frames, thumbnails and scene changes](https://apify.com/examsens.ai/video-frame-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/examsens.ai/video-frame-extractor.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/examsens.ai/video-frame-extractor.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`).
