# Video Frame Extractor - MP4, Google Drive & Dropbox to JPG/PNG (`neverempty/video-frame-extractor`) Actor

Turn any video link into still images: evenly spaced frames, one every N seconds, every scene change or exact times. Works with direct MP4/MOV/WEBM links and Google Drive or Dropbox share links. Each frame is a JPG, PNG or WebP with a ready-to-open link, its timestamp and size.

- **URL**: https://apify.com/neverempty/video-frame-extractor.md
- **Developed by:** [NeverEmpty](https://apify.com/neverempty) (community)
- **Categories:** Videos, AI, 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.52 / 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 - MP4, Google Drive & Dropbox to JPG/PNG

Turn a video link into still images. Paste a direct video link (MP4, MOV, WEBM, MKV and more) or a Google Drive or Dropbox share link, and get frames as JPG, PNG or WebP: evenly spaced, one every N seconds, one at every scene change, or at the exact times you list.

Every frame is one row with a link that opens the image directly (no login, no headers), the time it was taken from, and its width and height. You pay only for the frames you get back: **$1.90 per 1,000 frames**, with no start fee and no extra charge per video, per minute or per megabyte.

### What people use it for

- **Thumbnails and cover images**: pick the best still from a product video, a webinar or a vlog.
- **Storyboards and shot lists**: one frame per scene change gives you every shot of an edit, with its timecode.
- **Images for AI and vision models**: send frames to an image model to describe, tag or check a video, or build an image dataset from your own footage.
- **Video review and QA**: grab a frame every 10 seconds to check a long recording without watching it.
- **Docs, slides and social posts**: screenshots at exact times (for example 1:30 and 4:05) from a screen recording or a demo.

### Why use this one

- **Google Drive and Dropbox links work as they are.** Share the file as "Anyone with the link" and paste the share link; there is nothing to convert.
- **Four ways to pick frames** in one tool: evenly spaced, every N seconds, scene changes (with a change score per frame), or exact times written as `90`, `90.5`, `1:30` or `00:01:30.5`.
- **Blank frames are skipped and not charged.** Black fades, white flashes and flat title gaps are left out; in the timed modes a frame up to 2 seconds later is used instead, so you still get a useful image near the time you asked for.
- **Start and End time** limit the work to the part of the video you care about.
- **Size and quality you choose**: scale frames down to a maximum width (1280 px by default, or keep the original size), set JPG/WebP quality, or use lossless PNG.
- **Clear free rows instead of silent gaps.** A link that cannot be read gets one row that says why (not shared publicly, not a video, too large, too long and so on), and is not charged.
- **Many videos per run.** Put one link per line; frames from each video are numbered and named `video-001-frame-0001.jpg`, `video-001-frame-0002.jpg` and so on.

### How to use

1. Paste one or more video links into **Video links** (leave it empty to try the example: a short public-domain NASA video).
2. Choose **How to pick frames** and fill in the matching field (number of frames, seconds between frames, sensitivity, or the list of times).
3. Optionally set Start time, End time, image format and maximum width.
4. Run. Open the **Output** tab: each row shows the frame as an image with its timecode. Download all rows as JSON, CSV or Excel, or open each `imageUrl`.

#### Input examples

Evenly spaced: 10 frames over the whole video.

```json
{
    "videoUrls": ["https://example.com/video.mp4"],
    "mode": "count",
    "frameCount": 10
}
```

One frame every 30 seconds, between 1:00 and 10:00, as WebP at 640 px wide.

```json
{
    "videoUrls": ["https://www.dropbox.com/scl/fi/abc123/demo.mp4?rlkey=xyz&dl=0"],
    "mode": "interval",
    "intervalSeconds": 30,
    "startTime": "1:00",
    "endTime": "10:00",
    "imageFormat": "webp",
    "maxWidth": 640
}
```

Every scene change, up to 50 frames.

```json
{
    "videoUrls": ["https://drive.google.com/file/d/FILE_ID/view?usp=sharing"],
    "mode": "scenes",
    "sceneThreshold": "0.3",
    "maxFramesPerVideo": 50
}
```

Frames at exact times.

```json
{
    "videoUrls": ["https://example.com/screen-recording.mov"],
    "mode": "timestamps",
    "timestamps": ["0:05", "1:30", "00:04:05.5"],
    "imageFormat": "png"
}
```

### Output

One row per frame. This is the second of 10 evenly spaced frames from the example video:

```json
{
    "status": "ok",
    "videoUrl": "https://images-assets.nasa.gov/video/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117~medium.mp4",
    "fileName": "jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117~medium.mp4",
    "frameIndex": 2,
    "timestampSeconds": 36.352,
    "timecode": "00:00:36.352",
    "sceneScore": null,
    "imageUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/video-001-frame-0002.jpg?signature=...",
    "imageKey": "video-001-frame-0002.jpg",
    "imageFormat": "jpg",
    "width": 1280,
    "height": 720,
    "bytes": 16381,
    "videoDurationSeconds": 242.347,
    "videoWidth": 1280,
    "videoHeight": 720,
    "fps": 30,
    "videoCodec": "h264",
    "sourceType": "direct",
    "mode": "count",
    "note": null
}
```

- `imageUrl` opens the image directly in a browser or from your code. The images are also in the run's key-value store under `imageKey`.
- `timestampSeconds` and `timecode` are the time in the video the frame was taken from.
- `sceneScore` (scene changes mode) is how different the frame is from the one before it, from 0 to 1. The first frame of the video has 0.
- `width` and `height` are the size of the saved image; `videoWidth`, `videoHeight`, `fps`, `videoCodec` and `videoDurationSeconds` describe the source video.
- `sourceType` is `direct`, `google-drive` or `dropbox`.

#### Free rows (not charged)

When a link cannot be processed, you get one row for it with `status` and a `note` that says why. These rows are free.

| status | What it means |
|---|---|
| `invalid-input` | A setting or a link could not be read (for example a time written as "later"). The note says which one. |
| `unsupported-source` | A link to a video platform (YouTube, TikTok, Instagram, Vimeo pages and similar). Use a direct link to the video file instead. |
| `not-public` | A Google Drive or Dropbox file that is not shared as "Anyone with the link". |
| `unreachable` | The server did not answer, refused the request, or the file does not exist. |
| `not-a-video` | The link opens a web page, an image or an audio file, or a file that is not a readable video. |
| `too-large` | The file is larger than "Max video size (MB)". |
| `too-long` | The video is longer than "Max video length (minutes)". |
| `no-frames` | No frame matched the settings (for example every frame was blank, or Start time is after the end). |
| `failed` | The video could not be decoded. |
| `budget-reached` | The run reached the maximum cost you set for it before this video. |
| `time-limit` | The run was close to its timeout before this video. Raise the timeout or run the rest again. |

### Pricing

- **$1.90 per 1,000 frames** ($0.0019 per frame returned).
- No start fee and no charge per video, per minute of video or per megabyte downloaded.
- Blank frames that are skipped and the free rows above are not charged.
- Set a **maximum cost per run** in the run options and the run returns only as many frames as fit.
- Hundreds of full-size PNG frames come back faster with more memory in the run options (for example 4096 MB). The price per frame stays the same.

Example: 10 frames from each of 100 videos = 1,000 frames = $1.90.

### Limits

- Links to video platforms (YouTube, TikTok, Instagram, Facebook, Vimeo pages, Twitch and similar) are not downloaded; each gets a free `unsupported-source` row. Use a link to the video file itself.
- Google Drive and Dropbox files must be shared as "Anyone with the link". Folder links are not supported; link each file.
- Videos up to 2,000 MB and 600 minutes per link (set lower defaults with "Max video size (MB)" and "Max video length (minutes)").
- Scene change detection reads the whole video (or the part between Start time and End time), so it takes longer than the other modes on long videos.
- Image links stay available as long as the run's storage is kept (see your Apify data retention settings). Download the images you want to keep.

### More tools for files and media from the same developer

- [Speech to Text from Links: MP3, MP4, Google Drive, Podcast RSS](https://apify.com/neverempty/speech-to-text-from-links) - turn the audio of the same video links into a transcript
- [Download Files from URLs - Images, PDFs, Videos & ZIP](https://apify.com/neverempty/download-files-from-urls) - save files from a list of links into storage
- [Image Compressor - Convert to WebP & AVIF, Resize, Strip GPS](https://apify.com/neverempty/image-compressor-webp-avif) - shrink and convert the frames you extracted

### Thanks for using this Actor

We build these tools for people who run them every day, and we improve them from what users tell us.

- **Need another output or setting?** Tell us in the **Issues** tab. We add the most requested ones in the next version.
- **Found a bug or a wrong value?** Post the run ID in the **Issues** tab. Wrong data is the thing we fix first.

If this Actor saved you time, a short review helps other people find it.

# Actor input Schema

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

Public links to video files: direct links (MP4, MOV, WEBM, MKV, AVI, M4V and more), or Google Drive and Dropbox share links set to "Anyone with the link". One link per line. Empty = a short public-domain NASA video as an example. Links to YouTube, TikTok, Instagram and other video platforms are not downloaded.

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

"Evenly spaced" spreads a fixed number of frames over the whole video. "Every N seconds" takes one frame at a fixed interval. "Scene changes" takes the first frame of every new shot. "At exact times" takes frames at the times you list.

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

Used with "Evenly spaced": how many frames to take from each video. They are spread evenly between Start time and End time.

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

Used with "Every N seconds": one frame every this many seconds, starting at Start time.

## `sceneThreshold` (type: `string`):

Used with "Scene changes": how different a frame must be from the one before it to count as a new scene. Lower values catch softer cuts and return more frames.

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

Used with "At exact times": one time per line, in seconds (90 or 90.5) or as a time (1:30 or 00:01:30.5).

## `startTime` (type: `string`):

Optional. Ignore the video before this time. Seconds (30) or a time (0:30).

## `endTime` (type: `string`):

Optional. Ignore the video after this time. Seconds (300) or a time (5:00).

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

A cap on the frames returned (and charged) for each video, in every mode.

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

Black, white or flat single-color frames (fades, title gaps) are not returned and not charged. In the evenly spaced, interval and exact-time modes, a frame up to 2 seconds later is tried first.

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

JPG is small and works everywhere. PNG is lossless (larger files). WebP is the smallest at the same look.

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

Frames wider than this are scaled down, keeping the aspect ratio. Smaller frames are never enlarged. 0 = keep the original size.

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

30 to 100. Higher looks better and makes larger files. PNG is always lossless.

## `maxVideoSizeMb` (type: `integer`):

Videos larger than this are skipped with a free row that says so.

## `maxDurationMinutes` (type: `integer`):

Videos longer than this are skipped with a free row that says so.

## Actor input object example

```json
{
  "videoUrls": [
    "https://images-assets.nasa.gov/video/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117~medium.mp4"
  ],
  "mode": "count",
  "frameCount": 10,
  "intervalSeconds": 10,
  "sceneThreshold": "0.3",
  "maxFramesPerVideo": 100,
  "skipBlankFrames": true,
  "imageFormat": "jpg",
  "maxWidth": 1280,
  "imageQuality": 85,
  "maxVideoSizeMb": 1000,
  "maxDurationMinutes": 240
}
```

# Actor output Schema

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

One row per extracted frame: a public link to the image, its timestamp in seconds and as a timecode, frame number, scene-change score, image width, height, format and file size, plus the video's length, size, frame rate and codec. Links that could not be processed come back as their own free rows that say why.

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

The key-value store that holds every frame image.

# 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://images-assets.nasa.gov/video/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117~medium.mp4"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("neverempty/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://images-assets.nasa.gov/video/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117~medium.mp4"] }

# Run the Actor and wait for it to finish
run = client.actor("neverempty/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://images-assets.nasa.gov/video/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117/jsc2022m000270_Orion_First_Imagery_Timelapse_and_Original_221117~medium.mp4"
  ]
}' |
apify call neverempty/video-frame-extractor --silent --output-dataset

```

## MCP server setup

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