# 動画から等間隔のサムネイル画像を切り出す

**Use case:** 

動画ファイルから、指定した枚数のフレームを等間隔で切り出し、WebP・JPEG・PNG の画像として保存します。各フレームの正確な時刻と、全部を一覧にしたコンタクトシートも作ります。動画は直接のリンク、Apify の保管場所、アップロードのどれでも渡せます。そのまま実行すると、同梱の6秒の試験用の動画で無料で試せます。

## Input

```json
{
  "mode": "count",
  "frameCount": 10,
  "intervalSec": 10,
  "sceneThreshold": 0.3,
  "maxFramesPerVideo": 50,
  "format": "jpeg",
  "maxWidth": 1280,
  "quality": 80,
  "contactSheet": true
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "video": {
    "label": "Video",
    "format": "string"
  },
  "frameIndex": {
    "label": "Frame",
    "format": "integer"
  },
  "timecode": {
    "label": "Timecode",
    "format": "string"
  },
  "timestampSec": {
    "label": "Time (s)",
    "format": "number"
  },
  "imageUrl": {
    "label": "Image",
    "format": "string"
  },
  "width": {
    "label": "Width",
    "format": "integer"
  },
  "height": {
    "label": "Height",
    "format": "integer"
  },
  "format": {
    "label": "Format",
    "format": "string"
  },
  "bytes": {
    "label": "Size (bytes)",
    "format": "integer"
  },
  "sceneScore": {
    "label": "Scene score",
    "format": "number"
  },
  "chargedEvents": {
    "label": "Charged events",
    "format": "integer"
  },
  "errorCode": {
    "label": "Error code",
    "format": "string"
  },
  "errorMessage": {
    "label": "Error message",
    "format": "string"
  }
}
```

## How it works

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

The Video Frame Extractor - Thumbnails, Scenes & Contact Sheet Actor is ready to run with the inputs already set for "動画から等間隔のサムネイル画像を切り出す". [Sign up or log in](https://console.apify.com/create-task-from-example/ZegiZzdsbinljkFdb) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "動画から等間隔のサムネイル画像を切り出す" task

The Video Frame Extractor - Thumbnails, Scenes & Contact Sheet Actor will start running based on the input automatically. You can also change all the input fields, like which frames, number of frames (count mode), and more, to match your specific use case.

### 3. Receive the "動画から等間隔のサムネイル画像を切り出す" 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 status, video, frame, 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 "動画から等間隔のサムネイル画像を切り出す" task via API](https://apify.com/quietworkslab/video-frame-extractor.md).

## FAQ

### どんな動画を使えますか？

Video Frame Extractor は MP4・MOV・WebM・MKV・AVI の動画を、直接のリンク・Apify の保管場所・アップロードから読みます。使う権利のある動画だけを指定してください。

### 料金はいくらですか？

Video Frame Extractor は保存したフレーム1枚ごとに $0.0015 です。長いデコードとデータ（リンクは 64MB、保管場所は 16MB ごと）は追加のイベントに数えます。同梱の見本は無料です。

## About this Actor

This example demonstrates how to use [Video Frame Extractor - Thumbnails, Scenes & Contact Sheet](https://apify.com/quietworkslab/video-frame-extractor.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/quietworkslab/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/quietworkslab/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`).
