# Video Frame Extractor — TikTok, Reels, YouTube & MP4 to Images (`memo23/video-frame-extractor`) Actor

Turn TikTok, Instagram Reel, YouTube, Facebook, X and Vimeo videos or any MP4 link into still images: one frame per scene change, evenly spaced frames, one every N seconds or exact timestamps, plus a contact sheet. Image links ready for AI vision, thumbnails and datasets.

- **URL**: https://apify.com/memo23/video-frame-extractor.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Videos, AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 frames

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## Video Frame Extractor — TikTok, Reels, YouTube & MP4 to Images

Paste **TikTok, Instagram Reel, YouTube, Facebook, X or Vimeo** links, or a direct link to any video file, and get still frames back as images with public links: **one frame per scene change**, **evenly spaced frames**, **one every N seconds** or **the exact moments you list**, plus a **contact sheet** of the whole video. Built for AI vision models, thumbnails, storyboards, ad research and image datasets. No login, no software to install.

| Input | What you get |
|---|---|
| A fast-cut Instagram Reel | One frame per scene change, so every shot is there once |
| A 10-minute YouTube tutorial | One frame every 30 seconds, or 16 evenly spaced frames for an AI model |
| An MP4 link from your storage | The frames at 0:12, 1:05 and 3:40, exactly |
| A batch of TikTok ads | A contact sheet per ad to compare openings at a glance |

### Why use Video Frame Extractor?

- **Scene changes found in the video itself.** Cuts are detected frame by frame, and Auto mode takes the first frame of every shot, then fills in evenly when a video has few cuts. A talking-head video still gets frames from start to end.
- **Five ways to pick frames.** Auto, scene changes only, evenly spaced, every N seconds, or exact timestamps in seconds or `1:30` clock time.
- **Social links and files in one list.** TikTok (share links work), Instagram reels and video posts, YouTube videos and Shorts, Facebook videos and reels, X posts, Vimeo, and `.mp4`, `.mov`, `.webm`, `.m3u8` files on any host.
- **No black frames.** A frame that lands on a fade or an empty intro is moved forward to the first frame with something in it.
- **Image links ready for AI.** Every frame is saved as JPEG, PNG or WEBP with a public link, its timecode and its size. Hand the links to GPT, Claude or Gemini, or download them.
- **A contact sheet per video.** One grid image with up to 48 frames and their timecodes, at no charge.
- **Pay for what you get.** Links that cannot be read, private videos and videos over your length cap cost nothing.

### How it works

1. Paste video links or file URLs, one per line.
2. Choose how frames are picked and how many.
3. Each video is read, its scene changes are found when the mode needs them, and the frames are saved as images.
4. You get one row per video with its frames, or one row per frame, plus the images in the run's storage.

### Input

| Field | Notes |
|---|---|
| `videoUrls` | **Required.** One link per line. Profiles, playlists and photo posts are skipped with a reason. |
| `frameMode` | `auto` (default), `scenes`, `evenly`, `interval` or `timestamps`. |
| `framesPerVideo` | Frames for Auto and Evenly spaced. Default `12`. |
| `secondsBetweenFrames` | For Every N seconds. Default `5`. |
| `timestamps` | For Exact timestamps: `90`, `12.5`, `1:30` or `00:01:30.500`. |
| `sceneSensitivity` | `low` (hard cuts only), `medium` (default), `high` (softer changes too). |
| `maxFramesPerVideo` | Upper limit per video in every mode. Default `60`, up to `500`. |
| `fromTime` / `toTime` | Optional window, e.g. skip an intro. |
| `skipBlankFrames` | Move frames off black or flat-colour moments. Default `true`. |
| `imageFormat` | `jpg` (default), `png` or `webp`. |
| `maxWidth` | Frames wider than this are scaled down. Default `1280`; `0` keeps full resolution (up to 1080p). |
| `contactSheet` | One grid image per video. Default `true`. |
| `oneRowPerFrame` | One row per frame instead of a frames list. Default `false`. |
| `maxVideoMinutes` | Longer videos are skipped and not charged. Default `20`. |

```json
{
    "videoUrls": [
        "https://www.instagram.com/reel/Dabg9j1xNHM/",
        "https://www.youtube.com/shorts/HKs9NvVRi5s"
    ],
    "frameMode": "auto",
    "framesPerVideo": 12
}
```

### Output sample

A real row from the Instagram reel above, frames list cut short:

```json
{
  "type": "video",
  "url": "https://www.instagram.com/reel/Dabg9j1xNHM/",
  "platform": "instagram",
  "videoId": "Dabg9j1xNHM",
  "author": "nasaadmin",
  "uploadedAt": "2026-07-05T23:40:02.000Z",
  "durationSec": 57.71,
  "videoWidth": 720,
  "videoHeight": 1280,
  "fps": 24,
  "frameMode": "auto",
  "sceneChanges": 14,
  "framesExtracted": 12,
  "blankFramesSkipped": 0,
  "contactSheetUrl": "https://api.apify.com/v2/key-value-stores/…/records/instagram-Dabg9j1xNHM_contact-sheet.jpg",
  "frames": [
    { "index": 1, "timeSec": 0.65, "timecode": "00:00:00.650", "reason": "first", "imageUrl": "https://api.apify.com/v2/key-value-stores/…/records/instagram-Dabg9j1xNHM_f001_650ms.jpg", "width": 720, "height": 1280 },
    { "index": 2, "timeSec": 18.317, "timecode": "00:00:18.317", "reason": "scene", "imageUrl": "https://api.apify.com/v2/key-value-stores/…/records/instagram-Dabg9j1xNHM_f002_18317ms.jpg", "width": 720, "height": 1280 }
  ]
}
```

The first frame sits at 0.65 s because the reel opens on black and the frame was moved to the first moment with a picture. With `oneRowPerFrame` on, each frame is its own row (`type: "frame"`) after its video's row.

A link that cannot be read returns a row with `error` and `message` instead (`unsupported_url`, `not_a_video`, `video_too_long`, `video_unavailable`, `download_failed`, `extraction_failed`, `no_frames`, `cost_limit`). Those rows are never charged.

### Key output fields

| Field | Description |
|---|---|
| `frames[].imageUrl` | Public link to the image |
| `frames[].timeSec` / `timecode` | Where in the video the frame was taken |
| `frames[].reason` | `first`, `scene`, `even`, `interval` or `timestamp` |
| `frames[].width` / `height` | Image size in pixels |
| `contactSheetUrl` | Grid image of the video's frames with timecodes |
| `sceneChanges` | Scene changes found (Auto and Scene changes modes) |
| `durationSec` / `videoWidth` / `videoHeight` / `fps` | The video's own properties |
| `title` / `author` / `uploadedAt` | The post's details, where the platform shows them |
| `timestampsSkipped` | Listed timestamps that fall past the video's end |

### Pricing

Pay per event.

| Event | Price | When |
|---|---|---|
| Video | $0.005 | Once per video whose frames are delivered, covering its first 3 minutes |
| Frame | $0.0015 | Each frame delivered |
| Extra video minute | $0.002 | Each started minute after the first 3 |
| Actor start | $0.001 | Once per run, per GB of memory |

12 frames from a 1-minute Reel cost $0.005 + 12 × $0.0015 = $0.023. 30 frames from a 10-minute YouTube video cost $0.005 + 30 × $0.0015 + 7 × $0.002 = $0.064. Skipped, private and failed videos are free, and so are blank frames that are dropped and the contact sheet. The free Apify plan takes 3 videos and 20 frames per video per run.

### FAQ

**Which links work?**
Single videos: TikTok (including share links), Instagram reels and video posts, YouTube videos and Shorts, Facebook videos and reels, X posts with a video, Vimeo, and direct links to video files. Profiles, channels, playlists and photo posts are skipped with a reason.

**Which mode should I use?**
Auto for social videos and ads. Evenly spaced when you send frames to an AI model and want the same count from every video. Every N seconds for lectures, screen recordings and long takes. Exact timestamps when you already know the moments, for example from a transcript.

**How long do the image links work?**
They point to the run's storage and follow your Apify data retention. Download the images or copy them to your own storage if you need them longer.

**What resolution are the frames?**
Up to 1280 px wide by default, never sharper than the video itself. Set `maxWidth` to `0` for full resolution, up to 1080p.

**Why did a video fail?**
Private, removed and age-restricted videos cannot be read. Now and then a platform refuses a request; each video is tried 3 times before it is reported, and it is never charged.

**Do I need an account on these platforms?**
No. Nothing here logs in.

### Use cases

- **AI video understanding**: send 8 to 16 frames per video to a vision model to summarize, tag or moderate it.
- **Thumbnails**: pick a still from every scene and choose the best one.
- **Storyboards**: review a video's shots on one contact sheet.
- **Ad and creative research**: break competitor ads into their scenes to compare hooks and pacing.
- **Dataset building**: sample frames from footage to train or test computer-vision models.

### 🤖 For AI Agents & LLM Apps

One required field (`videoUrls`) and one row per video make this an easy tool call. Each row lists its frames with `imageUrl`, `timeSec` and `reason`, ready to pass to a vision model, and `oneRowPerFrame` gives a flat table for spreadsheets and workflow tools. Available over the Apify API and MCP.

### Support

A video that should work and doesn't, or an option you need? Open an issue on the actor's Issues tab with the link.

### Explore more scrapers

- [AI Video Breakdown](https://apify.com/memo23/ai-video-breakdown): hook, shot list, pacing and script for TikTok, Reels and YouTube
- [YouTube Video Downloader](https://apify.com/memo23/youtube-video-downloader): download YouTube videos and audio
- [Instagram Reels Transcript API](https://apify.com/memo23/instagram-reel-transcript-scraper): Reels to text with timestamps and SRT

### ⚠️ Disclaimer

This actor reads only publicly available videos and video files you can access. It does not log in, bypass authentication or access private content. You are responsible for how you use the frames, including copyright in the videos and any platform terms that apply.

### SEO Keywords

video frame extractor, extract frames from video, video to images, video to jpg, youtube frame extractor, tiktok frame extractor, instagram reel frames, video screenshots, video thumbnail generator, scene detection, scene change detection, keyframe extraction, contact sheet, storyboard from video, frames for ai vision, video frames for gpt, mp4 to images, frame grabber, video stills, extract images from video online

# Actor input Schema

## `videoUrls` (type: `array`):

One per line: a TikTok video (share links work), an Instagram reel or video post, a YouTube video or Short, a Facebook video or reel, an X post with a video, a Vimeo video, or a direct link to a video file (.mp4, .mov, .webm, .m3u8 …) on any host. Profiles, playlists and photo posts are skipped with a reason and are not charged.

## `frameMode` (type: `string`):

Auto: the first frame and every scene change, filled up with evenly spaced frames when the video has few cuts (good default for ads, reels and trailers). Scene changes only: one frame per cut. Evenly spaced: Frames per video spread over the whole video, ideal for an AI vision model. Every N seconds: lectures, screen recordings, long takes. Exact timestamps: the moments you list.

## `framesPerVideo` (type: `integer`):

How many frames Auto and Evenly spaced take from each video. 8 to 16 is enough for an AI model to follow a short video.

## `secondsBetweenFrames` (type: `number`):

Used by Every N seconds: one frame at the start, then one every this many seconds. 0.5 works for fast cuts, 10 or more for long recordings.

## `timestamps` (type: `array`):

Used by Exact timestamps: one moment per line, in seconds (90, 12.5) or as a clock time (1:30, 00:01:30.500). The same list is used for every video; times past a video's end are listed in timestampsSkipped and not charged.

## `sceneSensitivity` (type: `string`):

High also counts softer changes such as a quick zoom or a new angle on the same scene; Low counts only hard cuts.

## `maxFramesPerVideo` (type: `integer`):

Upper limit per video in every mode, so a long video or a fast-cut one cannot return thousands of frames. When there are more scene changes than this, they are thinned evenly.

## `fromTime` (type: `string`):

Optional. Take frames from this point on, in seconds (30) or a clock time (0:30). Leave empty to start at the beginning.

## `toTime` (type: `string`):

Optional. Take frames up to this point. Leave empty to go to the end.

## `skipBlankFrames` (type: `boolean`):

A frame that is black, white or one flat colour (a fade, an empty intro) is moved forward by up to 2 seconds to the first frame with something in it, and dropped if there is none. Dropped frames are not charged. Exact timestamps are always kept as asked.

## `imageFormat` (type: `string`):

File type of every frame.

## `maxWidth` (type: `integer`):

Frames wider than this are scaled down, keeping the aspect ratio. 1280 suits AI vision models and previews; 0 keeps the video's full resolution (up to 1080p).

## `imageQuality` (type: `integer`):

1 to 100. Higher is sharper and larger.

## `contactSheet` (type: `boolean`):

Also save one grid image per video with up to 48 of its frames and their timecodes, for a quick look at the whole video. Not charged.

## `oneRowPerFrame` (type: `boolean`):

Off: one row per video with a frames list. On: one video row followed by one row per frame, easier to use in a spreadsheet, Make, Zapier or n8n. Same frames, same price.

## `maxVideoMinutes` (type: `integer`):

Longer videos are skipped and not charged. The first 3 minutes of each video are in the video price; every started minute after that adds an Extra video minute charge.

## `maxConcurrency` (type: `integer`):

How many videos are worked on at once.

## Actor input object example

```json
{
  "videoUrls": [
    "https://www.youtube.com/shorts/HKs9NvVRi5s",
    "https://www.tiktok.com/@okc.dad/video/7682492258666515726"
  ],
  "frameMode": "auto",
  "framesPerVideo": 12,
  "secondsBetweenFrames": 5,
  "timestamps": [],
  "sceneSensitivity": "medium",
  "maxFramesPerVideo": 60,
  "skipBlankFrames": true,
  "imageFormat": "jpg",
  "maxWidth": 1280,
  "imageQuality": 85,
  "contactSheet": true,
  "oneRowPerFrame": false,
  "maxVideoMinutes": 20,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `images` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "videoUrls": [
        "https://www.youtube.com/shorts/HKs9NvVRi5s",
        "https://www.tiktok.com/@okc.dad/video/7682492258666515726"
    ],
    "timestamps": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/video-frame-extractor").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "videoUrls": [
        "https://www.youtube.com/shorts/HKs9NvVRi5s",
        "https://www.tiktok.com/@okc.dad/video/7682492258666515726",
    ],
    "timestamps": [],
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/video-frame-extractor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "videoUrls": [
    "https://www.youtube.com/shorts/HKs9NvVRi5s",
    "https://www.tiktok.com/@okc.dad/video/7682492258666515726"
  ],
  "timestamps": []
}' |
apify call memo23/video-frame-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/video-frame-extractor"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/KYo6vmmowHfRzI3Ta/builds/DPyQ2TxiWFJfR9XeB/openapi.json
