# Public Video Frame Extractor (`fetch_cat/public-video-frame-extractor`) Actor

Extract timestamped frames from public video files, clear HLS and embedded videos. Get image links, scene scores and contact sheets for visual indexing.

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

## Pricing

from $0.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

**Extract frames from video** URLs to build a timestamped visual index. Public Video Frame Extractor returns one row per saved frame, with an image link, its actual presentation time and source attribution. Use interval sampling, scene changes, a fixed count, requested timestamps, encoded keyframes or an automatic storyboard.

Start with a direct video URL or a page with an ordinary displayed video. Clear, completed HLS streams are also supported. Social-platform pages are attempted anonymously and can be blocked. No login, cookies or challenge solving is available.

### Quick start

1. Paste a public video URL that you have permission to process.
2. Choose a sampling mode and a small frame limit.
3. Run the Actor. Open the **Frames** output for image links and the **Run summary** for source outcomes and any contact sheet.

For a short visual index, use:

```json
{
  "videoUrls": [
    "https://media.w3.org/2010/05/sintel/trailer.mp4"
  ],
  "mode": "interval",
  "intervalSeconds": 10,
  "maxFramesPerVideo": 20,
  "createContactSheet": true
}
```

Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.

https://youtu.be/1OW8gOqlZbY?t=25

### What you get

- **Index a timeline.** Select regular intervals, evenly spaced positions or specific moments. Returned times belong to real decoded frames, not invented copies.
- **Find visual transitions.** Scene mode returns qualifying cuts and their scores. Auto mode combines cuts with evenly spaced frames.
- **Use the images elsewhere.** Each row links to a JPEG, PNG or WebP image in the run's key-value store. Optional contact sheets label up to 100 delivered frames.
- **Keep source context.** Rows include the original URL, duration, dimensions, codecs and available title/author metadata. Video outcomes are separate from the frame-only dataset.

### Who is it for?

- **Multimedia indexing teams** building searchable visual timelines from videos they are authorized to process.
- **Dataset curators** collecting bounded image sequences with source attribution and presentation timestamps.
- **AI workflow developers** passing selected images to a vision model for their own tagging, description or retrieval pipeline. The Actor extracts frames. It does not perform those downstream analyses.

### Input settings

| Setting | What to choose |
| --- | --- |
| Public videos — `videoUrls` | Up to 20 HTTP(S) single-video URLs. Repeated URLs are processed once. |
| Sampling — `mode` | `interval`, `scenes`, `count`, `timestamps`, `keyframes` or `auto`. Default: interval. |
| Spacing — `intervalSeconds` | Interval mode only. Default: 10 seconds. |
| Count — `frameCount` | Count/auto only. Default: 12. Must not exceed the frame cap. |
| Moments — `timestamps` | Required in timestamps mode. Array of seconds or timecodes, such as `[0, 1.5, "00:00:04.250"]`. |
| Cut sensitivity — `sceneThreshold` | Scenes/auto only. Default: 0.3. Higher values select fewer cuts. |
| Window — `startTime`, `endTime` | Text seconds or timecodes. Start is inclusive, end exclusive. Blank end uses source duration. |
| Images — `imageFormat`, `imageQuality`, `maxWidth` | Default: JPEG, quality 85, width at most 1280. PNG is lossless and ignores quality. Maximum width: 1920. |
| Blank filtering — `skipBlankFrames` | Off by default. Skip near-uniform candidates without replacing them. Does not discard explicit timestamp selections. |
| Contact sheet — `createContactSheet` | Off by default. Add a labelled sheet alongside individual images. |
| Connection — `connectionMode` | Automatic starts direct and can try managed datacenter access for YouTube. Direct forbids that fallback. No residential access or challenge solving. |
| Frame cap — `maxFramesPerVideo` | Default: 50 candidates per video, maximum 1000. Filtering can reduce delivered rows. |
| Source bounds — `maxDownloadMb`, `maxDurationSeconds` | Default: 100 MiB and 900 seconds per video. Maximum: 512 MiB and 3600 seconds. A short window does not waive whole-source limits. |
| Stop controls — `deadlineSeconds`, `maxChargeUsd` | Optional processing deadline and Actor-event allowance. Saved results survive a customer-requested stop. See Pricing and Limits below. |

Unknown input setting names are rejected rather than silently ignored. Use the exact names above.

**A few exact moments:** set `mode` to `timestamps` and provide `timestamps`. A returned frame is the first existing frame at or after a requested position. Nearby requests can map to one frame and appear together in `requestedTimestamps`.

**Scene-only index:** set `mode` to `scenes` and adjust `sceneThreshold`. A video without qualifying cuts correctly returns no frame rows. Encoded keyframes are different: they are compression reference frames, not detected scene boundaries.

### Output data

The default dataset contains **frames only**. Source errors and empty selections do not create image rows.

| Fields | Meaning |
| --- | --- |
| `imageUrl`, `imageKey` | Saved image link and key in this run's key-value store. |
| `timestampSeconds`, `timecode` | Actual source-start-normalized presentation time, with a readable millisecond timecode. |
| `sourcePts`, `timeBase`, `isKeyframe` | Presentation-tick provenance and the decoded source keyframe flag. |
| `width`, `height`, `bytes`, `imageFormat` | Delivered image dimensions, byte length and format. Rotation and pixel aspect are normalized. |
| `sourceUrl`, `platform`, `videoIndex`, `frameIndex` | Original attribution and zero-based video/candidate indexes. Filtering can leave index gaps. |
| `sceneScore`, `requestedTimestamps` | Mode-specific cut score or requested moments represented by this frame. |
| `title`, `author`, `uploadDate`, `videoId` | Public source metadata when available. Missing values are null. |
| `durationSeconds`, `sourceWidth`, `sourceHeight`, `fps`, codec/container fields | Metadata of the downloaded video stream. Average fps does not replace real frame timestamps. |

Excerpt from an extracted public HLS frame. The store identifier in the image URL is sanitized, not a working sample download:

```json
{
  "recordType": "frame",
  "sourceUrl": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/hls.m3u8",
  "platform": "hls",
  "frameIndex": 1,
  "timestampSeconds": 10,
  "timecode": "00:00:10.000",
  "sourcePts": 128000,
  "timeBase": "1/12800",
  "isKeyframe": false,
  "width": 320,
  "height": 240,
  "imageFormat": "jpg",
  "imageKey": "v000-frame-000001.jpg",
  "imageUrl": "https://api.apify.com/v2/key-value-stores/YOUR_RUN_STORE/records/v000-frame-000001.jpg"
}
```

Open `RUN_SUMMARY` for per-video outcomes, delivered/charged frame and video counts, skipped moments, truncation and customer-limit reasons. Each entry in `outcomes` contains that video's metadata and optional contact-sheet link. These summaries are stored together, separately from the frame-only dataset, without duplicate per-video JSON records.

Exporting the dataset exports links and metadata, not embedded image binaries. Download image URLs separately if your indexing system needs the bytes. Links depend on the run store's access and retention settings.

#### Download your results

Open your run's dataset, choose **Export** and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.

See [Apify's download and export guide](https://docs.apify.com/storage/dataset#apify-console) for the available formats and field options.

### Pricing

When pay-per-event pricing is active, `frame-extracted` is charged for each delivered image/frame row. A separate tiered `video-processed` fee applies once per deduplicated source that delivers at least one frame. Unavailable, empty and zero-output sources have no video-processing fee. A later failure does not undo already delivered frames or the processing that produced them. Notices, skipped candidates, failed frames, metadata and contact sheets are not additional frame results.

The platform-generated `apify-actor-start` charge is unchanged and separate: one unit per GB of allocated memory, rounded up with a minimum of one. The default allocation is 512 MiB, with 1024 MiB available for larger sources. Both incur one startup unit. There is no additional manual start fee.

Use frame caps, source bounds and a processing deadline to limit work. `maxChargeUsd` limits effective Actor-event charges, including startup and the positive-output video fee. The runtime reserves that video's fee plus frame capacity before acquiring a new source, then bills the video fee only after frames are delivered. It is not an all-in cap on separate platform, storage, transfer or managed-proxy charges.

See the [live Pricing tab](https://apify.com/fetch_cat/public-video-frame-extractor/pricing) for current rates and discounts.

### Tips for best results

- **Start with one short video.** Check image links and the source outcome before a larger batch.
- **Choose the mode for the job.** Intervals create a timeline. Scenes find transitions. Count/auto make a bounded overview.
- **Use smaller images when possible.** This reduces image size and downstream vision-model work. It does not promise partial source downloads.
- **Inspect the summary, not just row count.** An empty scene selection, an unavailable source and an extraction failure mean different things.

### Limits and caveats

- **Public authorized sources only.** No credentials, private-network addresses, cookies, DRM, interactive challenges, playlists, channels or live streams. Only standard HTTP(S) ports are accepted.
- **Platform access varies.** Anonymous YouTube, TikTok, Instagram, Facebook and X routes may fail. Their presence in a resolver is not a guarantee that a particular URL is accessible. Ordinary pages need a supported displayed video source.
- **HLS is clear completed VOD.** Byte-range, encrypted, discontinuous, gap-containing and changing-initialization playlists are unsupported. Separate audio and subtitle renditions are not collected.
- **Fewer rows can be correct.** Source limits, filtering, duplicate requested moments, end-of-video gaps or the frame cap can reduce output. A contact sheet is optional and can be omitted at a customer deadline.
- **Failures remain visible.** Blocking, network errors and extraction/storage/billing failures are not successful empty matches. Already saved rows remain available if a later source fails.
- **Work is bounded.** Supported source codecs are H.264, HEVC, VP8, VP9 and AV1 with 8-bit or 10-bit 4:2:0 pixels. At the default 512 MiB allocation, sources are limited to 1920 per axis and 1920×1080 pixels. Select 1024 MiB in the run settings for up to 4096 per axis and 4096×2160 pixels. Sources outside these bounds receive a source-limit outcome without frame charges. A source has a 180-second operation limit, with a 600-second overall processing ceiling. Images above 8 MiB are rejected. Restart with a fresh run rather than resurrecting a completed/interrupted one.

### Automation and integrations

#### Save your settings for next time

Once you have an input that works for you, [save it as an Apify task](https://docs.apify.com/actors/running/tasks). This keeps your settings together so you can use them again without filling in the form from scratch.

#### Run on a schedule

Need fresh results regularly? You can [schedule the Actor or a saved task](https://docs.apify.com/actors/running/schedules) to run at a time that suits you.

Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.

#### Send results to your other tools

Use **n8n, Make or Zapier** to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the [Apify integration guides](https://docs.apify.com/integrations) for your chosen tool.

For a custom connection, an [Apify webhook](https://docs.apify.com/integrations/webhooks) can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.

### API usage

Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.

The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its `defaultDatasetId` to fetch the results.

For setup instructions, see Apify's [JavaScript client guide](https://docs.apify.com/api/client/js), [Python client guide](https://docs.apify.com/api/client/python) and [Actor runs API reference](https://docs.apify.com/api/v2/acts-runs-post).

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/fetch_cat~public-video-frame-extractor/runs?maxTotalChargeUsd=0.50" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"videoUrls":["https://media.w3.org/2010/05/sintel/trailer.mp4"],"mode":"interval","intervalSeconds":10,"maxFramesPerVideo":20,"deadlineSeconds":120}'
```

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('fetch_cat/public-video-frame-extractor').call({
  videoUrls: ['https://media.w3.org/2010/05/sintel/trailer.mp4'],
  mode: 'interval', intervalSeconds: 10, maxFramesPerVideo: 20,
  maxChargeUsd: 0.5, deadlineSeconds: 120,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('RUN_SUMMARY');
console.log(summary?.value);
```

#### Python

```python
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ['APIFY_TOKEN'])
run = client.actor('fetch_cat/public-video-frame-extractor').call(run_input={
    'videoUrls': ['https://media.w3.org/2010/05/sintel/trailer.mp4'],
    'mode': 'interval', 'intervalSeconds': 10, 'maxFramesPerVideo': 20,
    'maxChargeUsd': 0.5, 'deadlineSeconds': 120,
})
for frame in client.dataset(run['defaultDatasetId']).iterate_items():
    print(frame['timestampSeconds'], frame['imageUrl'])
```

### MCP and AI agents

You can ask your AI assistant to collect frame images and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.

Once the Actor is available to your account and eligible for discovery, connect your assistant through the [Apify MCP server](https://mcp.apify.com/). MCP gives your assistant a way to find this scraper, run it and read the results. Follow the [official setup and sign-in guide](https://docs.apify.com/mcp) for your app.

#### Easier setup with an Apify plugin

If you use a supported coding assistant, the [official Apify plugin](https://docs.apify.com/agents/plugins) can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.

#### Use Apify AI in Console

Prefer to keep everything in Apify? Open [Apify AI in Console](https://docs.apify.com/account/apify-ai) and ask it to find Fetch Cat's **Public Video Frame Extractor**. You can describe the data you want and ask questions about the results.

Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.

#### Choose your assistant

- **Claude and Claude Code (Anthropic):** [Apify setup guide](https://docs.apify.com/integrations/claude).
- **ChatGPT and Codex (OpenAI):** [Apify setup guides](https://docs.apify.com/integrations/openai).
- **Grok Bot (xAI):** [Apify plugin guide](https://docs.apify.com/integrations/grok-bot).
- **Gemini CLI (Google):** [MCP server setup guide](https://geminicli.com/docs/tools/mcp-server/). Use the server URL below with the HTTP configuration supported by Gemini CLI.

#### Connect just this scraper

To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=fetch_cat/public-video-frame-extractor"
    }
  }
}
```

Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.

#### Use Apify's general server

Already connected to the general Apify MCP server at `https://mcp.apify.com`? You can use it to find this scraper without adding another server. Ask your assistant to use the identifier `fetch_cat/public-video-frame-extractor`.

Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.

#### Example requests

- “Extract an image every ten seconds from this public trailer and give me a timestamped list of image links.”
- “Find scene changes in this authorized public video, then use the returned images to draft a visual index.”
- “Get images at five, fifteen and thirty seconds from this public video and put their actual timestamps and links into a table.”

Normal Apify charges apply. Check the [live Pricing tab](https://apify.com/fetch_cat/public-video-frame-extractor/pricing) before asking your assistant to run a larger batch.

### Pay with x402

If your AI agent has a funded wallet, it can pay for Apify usage through [x402](https://docs.apify.com/integrations/x402). This experimental option lets an agent use Apify without a conventional account.

[Apify AGI](https://agi.apify.com/) provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.

Public availability and limited-permission eligibility must be checked before using a prepaid token with this Actor. Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.

Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.

#### Other ways for agents to pay

Apify also supports **MPP** for prepaid access through AGI and **Skyfire** for eligible Actors. If your agent already uses one of these, see the [agentic payment guide](https://docs.apify.com/agents/payments) to choose the right setup.

### FAQ

**Can I use a webpage instead of a direct video file?**
Yes, for supported displayed video sources and public video metadata. A page containing only a player iframe or requiring scripts/login may not expose usable media.

**Can I convert video to images without downloading the full source?**
No. Source acquisition currently downloads the selected video before extraction. A short window or a few timestamps can reduce decoding, but does not guarantee lower source transfer.

**Why is there no frame at exactly my requested fraction of a second?**
Video frames occupy discrete presentation times. The output reports the real decoded position. Several nearby requests may share one frame, and positions beyond the last usable frame are explained in the video outcome.

**Can the Actor identify people or understand the video?**
No. It does not perform face recognition, biometric scoring, semantic tagging or summarization. Your own authorized downstream tools can analyze the extracted images.

**Can I use MCP or agentic payments immediately?**
This Actor is not yet publicly discoverable. The setup above applies after it is available to your account and supported by the current Apify service. Private access does not imply public MCP discovery or prepaid-token eligibility.

### Related Actors

- [Video Transcript Scraper](https://apify.com/fetch_cat/video-transcript-scraper) — retrieve transcript text and segments from supported public video URLs instead of images.
- [YouTube Transcript Scraper](https://apify.com/fetch_cat/youtube-transcript-scraper) — collect public captions and timestamped text for a YouTube-focused workflow.
- [YouTube Channel Videos Scraper](https://apify.com/fetch_cat/youtube-channel-videos-scraper) — collect recent public video URLs and metadata from channels before selecting authorized sources.
- [YouTube Search Results Scraper](https://apify.com/fetch_cat/youtube-search-results-scraper) — discover public video results by keyword for a separate source-selection step.
- [YouTube Video Details & Metadata Scraper](https://apify.com/fetch_cat/youtube-video-details-scraper) — retrieve public video metadata and availability without frame extraction.

### Support and feedback

For custom additions or integrations, email <hello@fetchcat.dev>.

Found an error or have a feature request? [Open an issue](https://apify.com/fetch_cat/public-video-frame-extractor/issues) with the run URL, a non-sensitive input example and what you expected.

Need help sharing it? See [Apify’s guide to sharing a run when reporting an issue](https://docs.apify.com/account/collaboration/general-resource-access#automatically-sharing-runs-via-actor-issues). Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.

Tried this scraper? We'd love to hear how it worked for you. [Leave a review](https://apify.com/fetch_cat/public-video-frame-extractor/reviews) to help others choose the right tool and help us improve it. Your feedback means a lot to us.

Made with care for curious people, AI agents and the possibilities in data. ♥

# Changelog

This Actor's version history is a separate document: https://apify.com/fetch_cat/public-video-frame-extractor/changelog.md

# Actor input Schema

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

1–20 public HTTP(S) single-video URLs. Direct media, clear completed HLS VOD and ordinary embedded video pages are supported. HLS byte ranges, discontinuities, live streams and encrypted variants are not supported. Public platform pages are attempted anonymously and may be unavailable or blocked. No channel, playlist or login URLs. Duplicate URLs are processed once.

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

Interval/count/timestamps select real source frames at or after planned times without duplicating a source frame. Scenes select cuts above the threshold. Keyframes use encoded I-frames, not scene recognition. Auto analyzes cuts and fills a bounded storyboard with evenly spaced frames.

## `intervalSeconds` (type: `number`):

Used by interval mode, starting at the sampling window start.

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

Used by count and auto modes. Cannot exceed maxFramesPerVideo. Very short/sparse videos or blank filtering can yield fewer distinct frames.

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

Required and nonempty in timestamps mode. JSON array of nonnegative seconds or timecode strings, e.g. \[0, 1.5, "00:00:04.250"]. Sorted, deduplicated and clipped to the window and frame cap. Several requested positions can resolve to one actual source frame.

## `sceneThreshold` (type: `number`):

Scenes/auto only. Higher values select fewer, stronger cuts. No qualifying cuts is a genuine empty result, not a download failure.

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

Nonnegative seconds or HH:MM:SS(.sss), as text. Inclusive, on the source presentation timeline.

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

Exclusive seconds or HH:MM:SS(.sss), as text. Blank means video duration. Must exceed startTime; the source-duration and download caps still apply to the whole video.

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

Saved frame format. PNG is lossless and usually larger; imageQuality does not affect PNG.

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

JPEG/WebP quality setting; not a promise of identical compression across codecs.

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

Even-width images, no enlargement beyond the source's displayed width. Display rotation and pixel aspect ratio are normalized to square pixels. A single image is limited to 8 MiB.

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

Except in timestamps mode, discard frames with very low variation in every decoded color plane. Explicit timestamp selections are kept. This is a heuristic, not semantic blank/duplicate detection. Discarded candidates are not replaced or charged; the frame cap counts candidates before filtering.

## `createContactSheet` (type: `boolean`):

Save a timestamp-labelled JPEG for up to the first 100 delivered frames per video. Individual images and rows are still saved. The sheet link is in the per-video KVS summary; it is not another frame result.

## `connectionMode` (type: `string`):

Direct forbids managed proxy use. Automatic is direct-first, with up to three distinct Apify datacenter sessions only for YouTube metadata transport refusals. The selected session also downloads its media. No residential traffic, login, cookies or challenge solving. Datacenter traffic can incur platform costs; availability is conditional.

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

Hard candidate cap before blank filtering. Count/auto frameCount must not exceed this cap.

## `maxDownloadMb` (type: `integer`):

Per-video binary download ceiling. Exceeding it is an unavailable/failed source, not a successful empty extraction.

## `maxDurationSeconds` (type: `integer`):

Reject a source longer than this even if a shorter window was requested. Maximum decoded dimensions are 4096 per axis and 4096×2160 pixels. One source has a 180-second operation deadline; the whole run has a 600-second hard ceiling.

## `deadlineSeconds` (type: `number`):

Optional customer-requested processing deadline, including initialization. Zero or insufficient useful-work time stops successfully without extraction. Already delivered images/rows are preserved with a truthful limit outcome.

## `maxChargeUsd` (type: `number`):

Optional extra limit on effective Actor event charges, including Apify's synthetic startup event. Zero permits no frame work. Also obeys the platform max total charge. Not a cap on separate platform, storage, transfer or proxy charges; see README.

## Actor input object example

```json
{
  "videoUrls": [
    "https://media.w3.org/2010/05/sintel/trailer.mp4"
  ],
  "mode": "interval",
  "intervalSeconds": 10,
  "frameCount": 12,
  "timestamps": [],
  "sceneThreshold": 0.3,
  "startTime": "0",
  "endTime": "",
  "imageFormat": "jpg",
  "imageQuality": 85,
  "maxWidth": 1280,
  "skipBlankFrames": false,
  "createContactSheet": false,
  "connectionMode": "Automatic",
  "maxFramesPerVideo": 50,
  "maxDownloadMb": 100,
  "maxDurationSeconds": 900
}
```

# Actor output Schema

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

JSON export: one row per delivered image, including its KVS URL. Empty or failed video inputs do not create fake frame rows.

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

RUN_SUMMARY includes delivered/charged counts, unavailable or failed inputs, source metadata, truncation, customer-limit reasons and contact-sheet links when created.

## `artifacts` (type: `string`):

List KVS keys beginning with v. Frame and sheet bytes are in the same run store; datasets export image links, not embedded image binaries. Follow pagination for long key lists.

# 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://media.w3.org/2010/05/sintel/trailer.mp4"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fetch_cat/public-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://media.w3.org/2010/05/sintel/trailer.mp4"] }

# Run the Actor and wait for it to finish
run = client.actor("fetch_cat/public-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://media.w3.org/2010/05/sintel/trailer.mp4"
  ]
}' |
apify call fetch_cat/public-video-frame-extractor --silent --output-dataset

```

## MCP server setup

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