# Video Frame Extractor: MP4 URLs to Images, Slides and Text (`fulox/video-frame-extractor`) Actor

Turn a talk or webinar video link into one image per unique slide, with repeats and transitions removed, the seconds each stayed on screen and its on-screen text read by OCR. Also frames every N seconds, at scene changes or exact times. No API key. Pay per delivered frame.

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

## Pricing

from $1.50 / 1,000 frames extracted

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/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: MP4 URLs to Images, Slides and Text

Paste direct video links and get still images with their timestamps: evenly spaced, every N seconds, at scene changes, at exact times, or one per unique slide of a talk or webinar, with the on-screen text read by OCR if you want it.

### What you get

- Slides mode: one image per unique slide of a talk or webinar, with repeats and transitions removed.
- On-screen text of every frame read by OCR, included in the frame price, with no API key. Switch on `ocr` in the input; it reads English text.
- $1.50 per 1,000 delivered frames; a failed video or a failed frame adds nothing to the bill. The only other charge is Apify's start fee: $0.0001 per run at the default memory.
- One required field (`videoUrls`) and small typed rows an AI agent can use without reading a manual.
- Every slide and scene comes with the seconds it stayed on screen (`shownFromSeconds`, `shownToSeconds`).
- Slides mode also returns the whole talk as one Markdown outline: image, time and text of each slide, in order.

Works with mp4, mov, m4v, webm and mkv links. Images are saved in the run's key-value store, and every row links to its image.

### Example output

One frame row (field names and types are exact; the values are illustrative):

```json
{
  "type": "frame",
  "videoUrl": "https://example.com/talk.mp4",
  "videoIndex": 1,
  "frameIndex": 3,
  "timestampSeconds": 184.2,
  "imageUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/v001-frame-0003.jpg",
  "imageKey": "v001-frame-0003.jpg",
  "width": 1280,
  "height": 720,
  "format": "jpg",
  "sceneScore": null,
  "isNewSlide": true,
  "shownFromSeconds": 182,
  "shownToSeconds": 240,
  "text": "Q3 revenue by region",
  "status": "ok"
}
```

After the frames of each video comes one video row (`type: "video"`) with its `status`, `durationSeconds`, `resolution`, `framesExtracted`, `framesFailed`, `truncated` and, in slides mode, `outlineUrl`. `text` is `null` when OCR was off, skipped or failed, and `""` when it read the frame and found nothing.

### How to use it

1. Paste one or more direct video links into **Video links** and pick a mode.
2. Click **Start**.
3. Open the **Frames** view, or download the rows as JSON, CSV or Excel, or connect the Actor to Make, Zapier or n8n.

### Input

| Field | What it does | Default |
|---|---|---|
| `videoUrls` (required) | Direct links to video files, up to 200 | a 26 s sample clip |
| `mode` | `count` (evenly spaced), `interval`, `scene`, `timestamps`, `slides` | `count` |
| `frameCount` | Frames per video in `count` mode (1-300) | 12 |
| `intervalSeconds` | Seconds between frames in `interval` mode | 10 |
| `timestamps` | Moments for `timestamps` mode: `90`, `90.5`, `1:30`, `0:01:30` | none |
| `maxFramesPerVideo` | No video delivers more frames than this | 60 |
| `maxTotalFrames` | The whole run stops delivering after this many frames | 200 |
| `format` | `jpg` or `png` | `jpg` |
| `maxWidth` | Images are scaled down to this width, never up | 1280 |
| `ocr` | Read English text on each frame | off |
| `startSeconds`, `endSeconds` | Only look at this part of the video | whole video |

### Pricing

Each delivered frame costs $0.0015 ($1.50 per 1,000), OCR text included. Videos that fail, frames that fail, and the summary rows are not charged. Apify adds its own start fee to every run, also to one that delivers nothing: $0.00005 per GB of memory, $0.0001 at the default 2 GB.

A default run (12 frames) costs 12 x $0.0015 + $0.0001 = $0.0181. Set a maximum cost per run to stay in control; the Actor never delivers more frames than that cost allows.

### Limitations

- YouTube, TikTok, Instagram, Facebook and X links are refused (`blocked_host`). Give a direct link to the file.
- HLS (`.m3u8`) playlists and other containers are not supported (`unsupported_format`).
- Files over 1 GB, videos over 4K (3840x2160) and files with no video track are not processed and not charged.
- A run in which every link fails delivers nothing and costs only Apify's start fee ($0.0001 at 2 GB, $0.0002 at 4 GB).
- OCR reads English only. A frame with no readable text gets `""`, a failed or skipped read gets `null`; the frame is delivered and charged either way.
- Slides mode samples a keyframe every 2 seconds: a slide shown for under 4 seconds, or one that appears between two keyframes, may be missed.
- Scene and slide scans of very long videos can be cut short to protect the run's cost limit; the video row then says `truncated` with `scan_cut`.
- Image links work as long as the run's storage exists (Apify's data retention applies).
- You are responsible for the rights to the videos you process and for any personal data in the frames or the text read from them.

### FAQ

**Does it download from YouTube?** No. It needs a direct link to a video file.

**Which output do I use for a talk?** `slides` mode with `ocr` on: one image per slide, its text, and a Markdown outline of the whole talk (`outlineUrl` in the video row).

**What if my cap is smaller than the frames I asked for?** The video is cut at the cap, delivered, and its row says `partial` with `truncatedReason: "user_budget"`.

**Is there an API key to set?** No. Nothing in this Actor uses an AI model or a paid API.

### Changelog

- 2026-11-23: first version.

# Actor input Schema

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

Direct links to video files (mp4, mov, m4v, webm, mkv), up to 200, files up to 1 GB. Duplicates are dropped. YouTube, TikTok, Instagram, Facebook and X pages and HLS (.m3u8) playlists are not supported.

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

count: evenly spaced frames. interval: one frame every N seconds. scene: one frame at each scene change. timestamps: frames at exact times. slides: one frame per unique slide, repeats and transitions removed.

## `frameCount` (type: `integer`):

How many evenly spaced frames to take in count mode.

## `intervalSeconds` (type: `integer`):

One frame every this many seconds in interval mode.

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

Moments to capture, for example 90, 90.5, 1:30 or 0:01:30. Up to 300. Times past the end of a video are dropped.

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

No video delivers more frames than this.

## `maxTotalFrames` (type: `integer`):

The whole run stops delivering after this many frames.

## `format` (type: `string`):

JPG is smaller and faster; PNG is lossless.

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

Images are scaled down to this width; small videos are never enlarged.

## `ocr` (type: `boolean`):

Reads English text on each frame into the text field. No extra charge.

## `startSeconds` (type: `integer`):

Ignore the video before this second.

## `endSeconds` (type: `integer`):

Ignore the video after this second. Empty means the end of the video.

## Actor input object example

```json
{
  "videoUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/1/15/Add_Statement_with_Monolingual_Text.webm"
  ],
  "mode": "count",
  "frameCount": 12,
  "intervalSeconds": 10,
  "maxFramesPerVideo": 60,
  "maxTotalFrames": 200,
  "format": "jpg",
  "maxWidth": 1280,
  "ocr": false,
  "startSeconds": 0
}
```

# Actor output Schema

## `frames` (type: `string`):

One row per delivered frame with its image link, time and text, then one free row per video with its status.

## `summary` (type: `string`):

Counts for the run: videos by status, frames charged, OCR counts, work seconds, estimated compute cost, stop reason.

# 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://upload.wikimedia.org/wikipedia/commons/1/15/Add_Statement_with_Monolingual_Text.webm"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fulox/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://upload.wikimedia.org/wikipedia/commons/1/15/Add_Statement_with_Monolingual_Text.webm"] }

# Run the Actor and wait for it to finish
run = client.actor("fulox/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://upload.wikimedia.org/wikipedia/commons/1/15/Add_Statement_with_Monolingual_Text.webm"
  ]
}' |
apify call fulox/video-frame-extractor --silent --output-dataset

```

## MCP server setup

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