# Video Frame Extractor: Frames & Thumbnails from Video URLs (`transparent_meteorite/video-frame-extractor`) Actor

Video frame extractor: pull still frames and thumbnails from video URLs at set intervals, exact timestamps or evenly spaced. Save JPG, PNG or WebP with a direct image link per frame. No login, no API key, no proxy.

- **URL**: https://apify.com/transparent_meteorite/video-frame-extractor.md
- **Developed by:** [Detroit Web Agent - Open Data](https://apify.com/transparent_meteorite) (community)
- **Categories:** Videos, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 frame extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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: Frames & Thumbnails from Video URLs

Video frame extractor for the web: give it links to video files and get still frames back as images, each with a direct download link. Pick evenly spaced thumbnails, one frame every N seconds, or exact timestamps. Save as JPG, PNG or WebP, shrink to a thumbnail width, and read the video's length, size, frame rate and codec on every row. No login, no API key, no proxy to set up.

It runs ffmpeg inside the Actor. For each timestamp it jumps straight to that point in the video over HTTP, so it does not download the whole file to grab ten frames from a long video.

### Run in 30 seconds

1. Open the **Input** tab. The prefilled list holds one short sample video and asks for 25 evenly spaced frames.
2. Click **Start**.
3. Open the **Frames** table in the Output tab. Each row has a `frameUrl` that opens the image.
4. Paste your own direct video links and run again. Export the rows as JSON, CSV or Excel.

### What does this Actor do?

For every video link it reads the video details (length, width, height, frame rate, codec), works out which moments to capture, extracts one still image per moment, stores it in the run's storage and writes one dataset row per frame.

| Group | Fields |
|---|---|
| Frame | `frameUrl`, `frameKey`, `timestamp`, `timestampLabel`, `frameIndex`, `width`, `height`, `format`, `sizeBytes` |
| Source video | `videoUrl`, `videoIndex`, `videoDurationSec`, `videoWidth`, `videoHeight`, `videoFps`, `videoCodec` |
| Run | `status`, `error`, `extractedAt` |

Three ways to choose frames:

- **Evenly spaced**: N frames spread across the whole video, always the same count however long the video is. With 1 frame you get the middle of the video, a good poster image.
- **Every N seconds**: a frame at 0 s, N s, 2N s and so on. Use 0.5 for two frames per second, 60 for one per minute.
- **Exact timestamps**: your own list, in seconds (`12.5`) or clock time (`00:01:30`). Times past the end of the video are skipped and mentioned in the warnings.

### Limits

- The link must open the video file itself (`.mp4`, `.webm`, `.mov`, `.mkv`, `.m3u8` and similar). A web page that merely plays a video, such as a YouTube or Vimeo watch page, is not a video file and cannot be read. Those rows are reported as unreadable and are not charged.
- Videos behind a login, a signed link that already expired, or a server that blocks automated downloads (HTTP 403) cannot be read.
- Live streams have no length, so use the **Exact timestamps** mode for them.
- Frames are the nearest decodable image to the requested time, within a fraction of a second on most files.
- Each run extracts at most 2,000 frames per video, set by **Max frames per video** (default 200) so a long video with a short interval cannot surprise you.
- Frame images live in the run's key-value store, which Apify keeps according to your plan's retention. Download what you need to keep.
- If a run hits its time limit it stops cleanly, keeps everything already saved, and lists unread videos in `notChecked` in the `OUTPUT` record.

### Input

| Field | What it does |
|---|---|
| `videoUrls` | Direct links to video files, one per line. |
| `mode` | `count` (evenly spaced), `interval` (every N seconds) or `timestamps`. |
| `framesPerVideo` | Frames per video in evenly spaced mode. Default 12. |
| `everySeconds` | Gap between frames in interval mode. Default 10. |
| `timestamps` | Times for the timestamps mode, seconds or `hh:mm:ss`. |
| `maxFramesPerVideo` | Safety cap per video. Default 200, maximum 2000. |
| `imageFormat` | `jpg` (default), `png` or `webp`. |
| `maxWidth` | Shrink frames wider than this many pixels. Empty keeps the original size. |
| `quality` | JPG quality from 1 (best) to 31. Default 3. |

### Example input

```json
{
  "videoUrls": ["https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"],
  "mode": "interval",
  "everySeconds": 1,
  "imageFormat": "webp",
  "maxWidth": 320
}
```

### Output sample

```json
{
  "status": "ok",
  "error": null,
  "videoUrl": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4",
  "videoIndex": 1,
  "frameIndex": 2,
  "timestamp": 1,
  "timestampLabel": "00:00:01.00",
  "frameUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/frame_01_00001000.webp",
  "frameKey": "frame_01_00001000.webp",
  "width": 320,
  "height": 180,
  "format": "webp",
  "sizeBytes": 6120,
  "videoDurationSec": 5.055,
  "videoWidth": 960,
  "videoHeight": 540,
  "videoFps": 29.97,
  "videoCodec": "h264",
  "extractedAt": "2026-11-20T14:37:51.715Z"
}
```

The values above are an illustration. Your own run returns the real frames. If no frame can be extracted at all, you get one row with `status` set to `error` and the reason in `error`, and the run still finishes as succeeded with nothing charged.

### Use cases

- Create thumbnails and poster images for a video catalogue, course library or CMS.
- Sample frames from product, real estate or training videos to send to a vision model or a reviewer.
- Build contact sheets and storyboards: one frame every few seconds.
- Capture the exact frame at a timestamp from a transcript, a chapter list or a bug report.
- Check that an uploaded video is not blank or broken by looking at its first, middle and last frames.
- Feed an AI or OCR pipeline with slides pulled from recorded talks and webinars.

### Pricing and cost control

Pay per frame: **$0.0016 per frame on the free plan, $0.001 on the Gold plan** (Bronze $0.0015, Silver $0.00128), plus a $0.00005 start fee per run. That is $1.60 per 1,000 frames. Frames and videos that cannot be decoded are free. Use **Maximum cost per run** or **Max frames per video** to cap spend; the run stops cleanly at the limit.

| Plan | Price per frame | Per 1,000 frames |
|---|---|---|
| Free | $0.0016 | $1.60 |
| Bronze | $0.0015 | $1.50 |
| Silver | $0.00128 | $1.28 |
| Gold, Platinum, Diamond | $0.001 | $1.00 |

### Integrations and scheduling

Run it on a schedule or from a webhook when new videos arrive, then send the rows to Google Sheets, Slack, S3, Make, Zapier or n8n with the Apify integrations, or call it through the REST API and the Python and JavaScript clients.

### Use with the API, n8n, Make, Zapier or AI agents

**API** (one call, returns the rows as JSON):

```bash
curl -X POST "https://api.apify.com/v2/acts/transparent_meteorite~video-frame-extractor/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" -H "Content-Type: application/json" -d '{"videoUrls":["https://example.com/clip.mp4"],"mode":"count","framesPerVideo":5}'
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("transparent_meteorite/video-frame-extractor").call(run_input={
    "videoUrls": ["https://example.com/clip.mp4"],
    "mode": "interval",
    "everySeconds": 5,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["timestampLabel"], row["frameUrl"])
```

- **n8n, Make, Zapier:** use the Apify app's "Run Actor" step with actor `transparent_meteorite/video-frame-extractor`, paste the input JSON, then map `frameUrl` to your next step (an image field, an upload or a vision model).
- **AI agents (MCP):** connect the Apify MCP server at `https://mcp.apify.com?tools=transparent_meteorite/video-frame-extractor` to Claude, Cursor or any MCP client, and your agent can pull frames from a video link on request.

### How it works

Each video is opened with ffmpeg over HTTP. The Actor asks the server for just the parts of the file around each requested time, decodes one image, scales it if you set a maximum width, and saves it. Three frames are extracted at once per video. Frames come back in time order with a running `frameIndex`, so a table sorted by `videoIndex` then `frameIndex` is a ready-made storyboard.

### Fair use and legal

Use the Actor only on videos you own, have a licence for, or that are published for reuse. It does not log in, bypass paywalls or copy protection, and it cannot read DRM-protected streams. Respect the rights of the video owners and the privacy rules that apply to you.

### FAQ

**Do I need an API key or an account on the video site?** No. The Actor needs only a link that opens the video file.

**Can I paste a YouTube link?** No. A watch page is a web page, not a video file. Use a direct file link, for example one from your own storage, CDN, S3 or a public sample.

**How many frames can I get from one video?** Up to 2,000 per video per run. Set the count, interval or timestamps you need.

**Will it download the whole video?** No. It reads only the parts needed for each frame, so a one hour video with ten frames is quick and cheap.

**Why do I get fewer frames than I asked for?** Timestamps past the end of the video are skipped, the cap in **Max frames per video** was reached, or a few frames could not be decoded. The reasons are listed in `warnings` in the `OUTPUT` record.

**Which image format should I choose?** JPG for the smallest files, PNG when you need lossless frames for OCR or analysis, WebP for small files with transparency support.

**What happens with a broken link?** The run still succeeds. You get a row with `status` set to `error`, a clear message, and no charge.

**Are frames private?** They are stored in your run's own storage. The `frameUrl` works for anyone who has the link and the storage id, so treat the links like any shared file link.

### Support

Found a video that reads badly? Open an issue on the Issues tab with the run URL and the video link.

### Related actors

- [YouTube Video Scraper](https://apify.com/transparent_meteorite/youtube-video-scraper) for titles, views and metadata of videos you want to process.
- [YouTube Transcript Extractor](https://apify.com/transparent_meteorite/youtube-transcript-extractor) to pair a transcript with the frames you pull at the same timestamps.
- [Instagram Reels Scraper](https://apify.com/transparent_meteorite/instagram-reels-scraper) to collect reel links and details for your video workflows.

### Changelog

- **0.1**: First private build. Evenly spaced, interval and timestamp modes, JPG, PNG and WebP, width limit, video details on every row.

# Actor input Schema

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

Direct links to video files (mp4, webm, mov, mkv, m3u8), one per line. The link must open the video itself, not a web page such as a YouTube watch page.

## `mode` (type: `string`):

Evenly spaced gives the same number of thumbnails for any video length.

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

Used by Evenly spaced. 1 gives the middle frame, a good poster image.

## `everySeconds` (type: `number`):

Used by Every N seconds. 0.5 means two frames per second.

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

Used by Exact timestamps. Seconds (12.5) or clock time (00:01:30), one per line. Times beyond the end of the video are skipped.

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

Safety cap so a long video with a short interval cannot run up your bill.

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

Format of the saved frame images.

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

Shrink frames wider than this, keeping the aspect ratio. Leave empty for the original size. 320 to 640 suits thumbnails.

## `quality` (type: `integer`):

1 to 5 is visually lossless. Higher numbers give smaller files.

## Actor input object example

```json
{
  "videoUrls": [
    "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
  ],
  "mode": "count",
  "framesPerVideo": 25,
  "everySeconds": 10,
  "maxFramesPerVideo": 200,
  "imageFormat": "jpg",
  "quality": 3
}
```

# Actor output Schema

## `frames` (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://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
    ],
    "mode": "count",
    "framesPerVideo": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("transparent_meteorite/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://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"],
    "mode": "count",
    "framesPerVideo": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("transparent_meteorite/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://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4"
  ],
  "mode": "count",
  "framesPerVideo": 25
}' |
apify call transparent_meteorite/video-frame-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,transparent_meteorite/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/sQTc47qLgVY1tph7X/builds/ehNcYpqfkaehmZ6yH/openapi.json
