Video Frame Extractor: Thumbnails, Scenes & Keyframes
Pricing
from $3.12 / 1,000 frames extracted
Video Frame Extractor: Thumbnails, Scenes & Keyframes
Extract frames from MP4, MOV or WebM files: a thumbnail, N evenly spaced frames, one frame per scene change, keyframes, exact timestamps or every N seconds. JPG, PNG or WebP image links with timecodes, ready for AI vision.
Pricing
from $3.12 / 1,000 frames extracted
Rating
0.0
(0)
Developer
Automation Lab
Maintained by CommunityActor stats
0
Bookmarked
107
Total users
18
Monthly active users
a day ago
Last modified
Categories
Features
Share
Generate a video thumbnail, evenly spaced storyboard frames, scene-change frames, keyframes, or frames at exact timestamps from video files (MP4, MOV, WebM, MKV and other FFmpeg formats). Supply anonymously reachable direct video URLs, upload one file, or read private files from an Apify key-value store. The Actor stores ready-to-download JPEG, PNG, or WebP images and returns the timestamp, dimensions, format, file size, codec, and source metadata for every successful frame.
This is a file-processing Actor. It does not scrape a webpage or resolve a YouTube, Vimeo, TikTok, or other platform page into a video URL.
What can Video Thumbnail & Frame Extractor do?
- Create one representative thumbnail near the beginning of each video.
- Spread N frames evenly over a video, for example a 6-frame storyboard (
mode: "count"). - Detect scene changes (cuts) and return one frame per scene, with its scene score (
mode: "scenes"). - Return the video's encoded keyframes (I-frames), evenly thinned to your cap (
mode: "keyframes"). - Extract frames at exact timestamps such as 5, 15, and 30 seconds.
- Sample a video every N seconds for moderation or visual analysis.
- Limit any sampling mode to a part of the video with
startSecondsandendSeconds. - Resize images into a maximum bounding box while preserving aspect ratio.
- Produce JPEG, PNG, or WebP files with structured dataset metadata.
- Process public direct files, one uploaded file, or private KVS records.
- Continue past a bad source and skip out-of-range exact timestamps while returning explicit failure records.
Who is this video frame extractor for?
Catalog teams can create consistent preview images for product, property, course, or media catalogs. Publishers can generate several candidate cover frames for an editor. Trust and safety teams can sample videos before sending images to a vision model or human queue. Developers and automation teams can turn new videos into predictable image assets in scheduled Apify Tasks, Make, Zapier, n8n, or custom pipelines.
Why use this Actor?
The output is more than a screenshot. Each charged result is a successfully extracted image stored in the run's key-value store, paired with typed metadata in the default dataset. Exact timestamps and interval sampling use the same output contract, which makes downstream processing simple. Downloads are bounded by redirects, timeouts, file size, and duration. Private and local-network URLs are rejected to reduce server-side request forgery risk.
Quick start
- Open the Actor input.
- Add a direct video file URL under Direct video URLs, or upload one video.
- Pick a Frame selection mode: one thumbnail, N evenly spaced frames, scene changes, keyframes, exact timestamps, or every N seconds.
- Fill the field the mode uses (Number of evenly spaced frames, Exact timestamps or Sampling interval). With Auto, the filled field picks the mode.
- Choose JPEG, PNG, or WebP and set maximum dimensions.
- Run the Actor.
- Open Frame metadata for records and Frame image files to download images.
A working starter input is:
{"videoUrls": [{ "url": "https://media.w3.org/2010/05/sintel/trailer.mp4" }],"timestampSeconds": [5, 15, 30],"outputFormat": "webp","quality": 80,"maxWidth": 960,"maxHeight": 540,"maxFrames": 3,"maxFileSizeMb": 50,"maxDurationMinutes": 5}
Diagnostic privacy
Failed operations send sanitized diagnostic input, exceptions, and Actor/build/run IDs to our private GlitchTip service for repair. Secret fields, private source-store identifiers, and URL query strings are removed. Reports are retained for 30 days. Phase and failure-category diagnostics do not include source contents or codec/server response bodies.
Input parameters
| Field | Type | Default | Purpose |
|---|---|---|---|
videoUrls | array | [] | Direct, anonymously reachable HTTP(S) video files. |
uploadedVideo | string | — | One file selected with Apify's upload editor. |
sourceKeyValueStoreId | string | default store | Store containing private source videos. |
sourceKeys | string[] | [] | Binary video record keys in that store. |
mode | enum | auto | auto, thumbnail, timestamps, interval, count, scenes or keyframes. auto picks the mode from the field you fill, or one thumbnail. |
timestampSeconds | number[] | [] | Exact non-negative timestamps for every video. |
intervalSeconds | number | — | One frame every N seconds, from startSeconds (default 0). |
frameCount | integer | 10 in count mode | Number of evenly spaced frames, 1 to 100. |
sceneThreshold | number | 0.3 | Scenes mode: cut sensitivity from 0.05 (more cuts) to 0.9 (only hard cuts). |
startSeconds / endSeconds | number | whole video | Window for interval, count, scenes and keyframes modes. |
maxFrames | integer | 20 | Per-video cap for every mode, from 1 to 100. |
outputFormat | enum | jpeg | jpeg, png, or webp. |
quality | integer | 85 | JPEG/WebP encoder quality from 1 to 100. |
maxWidth | integer | 1280 | Maximum image width. |
maxHeight | integer | 720 | Maximum image height. |
maxFileSizeMb | integer | 250 | Per-video download/storage limit, up to 500 MB. |
maxDurationMinutes | integer | 60 | Per-video duration limit, up to 180 minutes. |
Provide at least one source. You may combine URL, upload, and KVS sources in one run, up to 20 videos. With mode: "auto", fill only one of timestampSeconds, intervalSeconds and frameCount; with an explicit mode, only that mode's field is used.
How the modes pick frames. count takes the midpoint of N equal segments, so a 60-second video with frameCount: 3 gives frames at 10, 30 and 50 seconds and never a black first frame. scenes always returns the opening frame, then a frame at each cut whose scene score is above sceneThreshold; when there are more cuts than maxFrames, the strongest cuts are kept. Scene detection checks every frame of short videos (up to about 90 seconds of 1080p, 7 minutes of 480p, or the same amount of a startSeconds–endSeconds window). Longer videos are scanned by comparing keyframes, which encoders place at most cuts, so even hour-long videos take seconds; there a cut is reported at the next keyframe and a few cuts may be missed. Use a window to get every cut of a long video's key part. keyframes returns the encoded I-frames; if there are more than maxFrames, they are evenly thinned. Duplicate exact timestamps are removed. Exact timestamps at or beyond a video's duration produce uncharged diagnostic records; valid timestamps for the same video are still extracted. When a file's audio track runs longer than its picture, a timestamp after the last picture frame returns that last frame, which is what a player shows at that moment.
Extracted frame data
| Field group | Fields |
|---|---|
| Source | sourceType, source, sourceKey |
| Status | status, error, processedAt |
| Frame identity | frameNumber, timestampSeconds, timestamp, selectionMode, sceneScore |
| Source media | durationSeconds, sourceWidth, sourceHeight, sourceVideoCodec |
| Generated image | outputFileName, outputFormat, outputMimeType, outputWidth, outputHeight, outputBytes |
| Storage | storedFileKey, storedFileUrl |
A failed source produces one uncharged dataset record with status: "failed", a concise error, and null frame/file fields. An out-of-range exact timestamp also produces an uncharged failed record, with the rejected value in timestampSeconds and timestamp; other valid timestamps for that source continue normally.
Successful frames have status: "succeeded" and trigger the configured frame event. A run succeeds when it stores at least one frame; if every requested timestamp is invalid and no other source succeeds, the run fails after writing the diagnostic records. The run's status message says how many frames were delivered from how many videos, and names the first error when a video failed.
Output example
{"sourceType": "url","source": "https://media.w3.org/2010/05/sintel/trailer.mp4","sourceKey": null,"status": "succeeded","error": null,"frameNumber": 1,"timestampSeconds": 5,"timestamp": "00:00:05.000","selectionMode": "timestamps","sceneScore": null,"durationSeconds": 52.208333,"sourceWidth": 854,"sourceHeight": 480,"sourceVideoCodec": "h264","outputFileName": "video-001-frame-001-5.000s.webp","outputFormat": "webp","outputMimeType": "image/webp","outputWidth": 854,"outputHeight": 480,"outputBytes": 4162,"storedFileKey": "frame-81f4a3719a-video-001-frame-001-5.000s.webp","storedFileUrl": "https://api.apify.com/v2/key-value-stores/STORE_ID/records/frame-81f4a3719a-video-001-frame-001-5.000s.webp","processedAt": "2026-01-15T12:00:00.000Z"}
The local runtime may report storedFileUrl as null when no cloud store ID exists. Cloud runs return the API record URL.
How much does it cost to extract video frames?
Pay-per-event pricing has a $0.005 start fee plus one frame event for each successfully extracted and stored image. The start fee is charged with the first delivered frame, so a run that delivers nothing (bad input or only failed videos) costs nothing. Failed source records are not charged.
| Plan | Price per frame |
|---|---|
| Free | $0.0059846 |
| Bronze | $0.005204 |
| Silver | $0.0040591 |
| Gold / Platinum / Diamond | $0.0031224 |
On Bronze, one generated frame costs about $0.010204 including the start fee, 10 frames cost about $0.05704, and 100 frames cost about $0.5254. Apify compute and platform pricing are represented through the Actor's active pay-per-event configuration; check the live pricing panel for the plan applied to your account.
From 2026-12-15 the price will be lower for frames: a $0.004 start fee and $0.0014 per frame on Free and Bronze ($0.00126 Silver, $0.00112 Gold / Platinum / Diamond). Scenes and keyframes modes, which read the whole video, will also charge a scan-minute event per started minute of each scanned video: $0.0015 on Free and Bronze ($0.00135 Silver, $0.0012 Gold / Platinum / Diamond), once per video with its first delivered frame. Other modes never charge it. On Bronze, 10 frames will cost about $0.018 including the start fee, and a keyframe scan of a 10-minute video returning 10 frames about $0.033.
Thumbnail selection tips
For a simple catalog thumbnail, use the thumbnail mode (or leave all frame fields empty). The Actor chooses a frame near the beginning while avoiding the exact first instant where a video may be black. For cover candidates or a storyboard, use count with 4 to 8 frames. For a summary of an edited video, or input to an AI vision model, use scenes: one frame per shot, without near-duplicates. For editorial options, request a small list of meaningful timestamps. For moderation, use an interval and a realistic maxFrames cap.
JPEG is usually smallest for photographic scenes. WebP can reduce transfer size while preserving quality. PNG is lossless but often much larger. Smaller maximum dimensions reduce processing time, storage, and downstream vision-model cost.
Batch and private-file workflows
For private batches, put binary video records in an Apify key-value store and pass its ID in sourceKeyValueStoreId with record names in sourceKeys. The run's API token must already have read access to that store; knowing a store ID does not grant access. Leave the ID empty to read from the run's default store. A denied source store produces uncharged failure records for its keys, while valid URL or uploaded-video sources continue. The Actor does not elevate permissions or attach its API token to direct video URLs. An Apify record URL used in videoUrls must be anonymously reachable, just like any other direct URL. Do not place secret-bearing signed URLs in public task examples, source control, or logs.
Each output image is stored under a stable frame- key containing a digest of the source reference, source position, frame position, and timestamp. Use storedFileKey when another Actor works in the same store, or storedFileUrl to download the image over the API.
API: cURL
Start a run and wait for its dataset items:
curl -X POST \"https://api.apify.com/v2/acts/automation-lab~video-thumbnail-frame-extractor/run-sync-get-dataset-items?token=$APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"videoUrls": [{"url":"https://media.w3.org/2010/05/sintel/trailer.mp4"}],"timestampSeconds": [5, 15],"outputFormat": "jpeg","maxFrames": 2}'
For larger videos or many frames, use the asynchronous /runs endpoint, poll the run, then read the dataset and key-value store.
API: JavaScript
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('automation-lab/video-thumbnail-frame-extractor').call({videoUrls: [{ url: 'https://media.w3.org/2010/05/sintel/trailer.mp4' }],mode: 'scenes',maxFrames: 12,outputFormat: 'webp',});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items.map(({ timestampSeconds, storedFileUrl }) => ({ timestampSeconds, storedFileUrl })));
API: Python
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ["APIFY_TOKEN"])run = client.actor("automation-lab/video-thumbnail-frame-extractor").call(run_input={"videoUrls": [{"url": "https://media.w3.org/2010/05/sintel/trailer.mp4"}],"timestampSeconds": [5, 15, 30],"outputFormat": "png","maxFrames": 3,})items = client.dataset(run["defaultDatasetId"]).list_items().itemsprint([(item["timestampSeconds"], item["storedFileKey"]) for item in items])
Use with Apify MCP
Add this Actor to Claude Code:
claude mcp add --transport http apify \"https://mcp.apify.com?tools=automation-lab/video-thumbnail-frame-extractor"
Claude Desktop, Cursor, and VS Code can use the same HTTP MCP server configuration in their MCP settings:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=automation-lab/video-thumbnail-frame-extractor"}}}
Example prompts:
- "Extract JPEG frames at 5, 15, and 30 seconds from this direct video file and return the image URLs."
- "Sample this uploaded video every 20 seconds, capped at 12 WebP frames."
- "Give me one frame per scene from this MP4 so you can describe what happens in it."
- "Create one 1280×720-bounded catalog thumbnail for each supplied direct MP4 URL."
Automation patterns
- Catalog ingestion: trigger the Actor after a new media file lands, then write
storedFileUrlto the catalog record. - AI video understanding: use scene mode to get one frame per shot, then send the image URLs to a vision model.
- Moderation: sample frames at an interval, send only successful image URLs to a vision classifier, and retain timestamps for review.
- Publishing: request several exact moments, let an editor choose a cover image, then copy the chosen KVS record to permanent storage.
- Quality control: compare returned dimensions and byte sizes with publishing requirements before accepting an asset.
Data handling and dependencies
The Actor uses FFmpeg and FFprobe inside its Apify container; it does not call an AI model or external processing API. For direct URLs, the selected video host receives the download request. Source videos and intermediate images are processed in temporary container storage and deleted before exit. Generated images, dataset records, and logs remain in Apify storage according to your account retention settings and can be deleted with Apify's storage controls. Operational logs identify sources only by type and position; source URLs and KVS keys are not logged.
Limits and failure behavior
The Actor accepts direct files, not ordinary video webpages. URLs must be anonymously reachable and must not require cookies, DRM, login, or custom request headers. Private, loopback, link-local, and local-network targets are rejected. Redirects are limited to five. Network errors, HTTP 429, and temporary server errors receive bounded retries; stable client errors do not.
A download may take as long as it needs while data keeps arriving; it fails only when the server sends nothing for 60 seconds (retried twice) or the transfer passes 15 minutes. A few frames from a large file are read with HTTP range requests, without downloading the whole file. When the server does not answer range requests (or sends no file size), thumbnail, timestamps, interval and count modes download the whole file only up to 32 MB plus 16 MB per requested frame (48 MB for one thumbnail); a larger file fails with a clear, uncharged error. Scenes and keyframes modes are not capped this way. A source may fail because the URL is a webpage, the response exceeds maxFileSizeMb or that whole-file allowance, FFprobe finds no video stream, or duration exceeds the configured limit. An exact timestamp outside the video is skipped with its own diagnostic while valid timestamps for that video continue. If no source produces a frame, the run ends with a non-zero status after writing diagnostic records.
Legality and responsible use
Process videos you own or are authorized to use. A publicly reachable URL does not automatically grant copyright or redistribution rights. Follow the source host's terms, access controls, privacy requirements, and applicable law. Do not use the Actor to bypass DRM, authentication, technical restrictions, or private networks. Review retention and access settings for generated frames that may contain people or sensitive material.
FAQ
Can it extract a thumbnail from a YouTube page URL?
No. Supply an actual direct video file URL or use a separate authorized downloader/resolver first. This Actor intentionally does not claim platform-page resolution.
Why did my run say the source has no video stream?
The URL likely returned HTML, an access-denied response, audio, or another non-video object. Open the URL without login and confirm it downloads the video file itself.
Why is an exact timestamp rejected?
Every timestamp must be non-negative and strictly less than the probed duration. The rejected timestamp remains visible in an uncharged failed dataset record, while any valid timestamps in the same request are still extracted. Reduce the timestamp or remove it and use default thumbnail selection if no valid frames remain.
Can I create a contact sheet?
Not as one image yet. The Actor returns separate image files and metadata. Use the count or scenes mode, then combine the output files in your downstream image workflow.
Are failed videos charged per frame?
No. A frame event is charged only for an image that was extracted and stored, right before its dataset item is saved. A run that delivers no frame is not charged at all, not even the start fee. When the run reaches your "Maximum charge per run", it stops and keeps the frames already paid for.
Related automation-lab Actors
- Video to Text Transcriber converts direct video files into timestamped transcripts.
- Bulk Image Format Converter converts generated or source images among JPEG, PNG, WebP, and AVIF.
- Bulk Image Compressor reduces image file size for publishing pipelines.
Support checklist
When reporting a problem, include the run URL, whether the source was a direct URL/upload/KVS key, the configured timestamp or interval, and the failure record's error. Do not include private signed URLs or credentials in public messages.