Video Frame Extractor: Thumbnails, Keyframes, Scene Changes avatar

Video Frame Extractor: Thumbnails, Keyframes, Scene Changes

Pricing

from $0.80 / 1,000 frames

Go to Apify Store
Video Frame Extractor: Thumbnails, Keyframes, Scene Changes

Video Frame Extractor: Thumbnails, Keyframes, Scene Changes

Extract still frames from your video files (MP4, MOV, WebM, MKV): exact timestamps, every N seconds, N evenly spaced thumbnails, keyframes or scene changes, as JPEG, PNG or WebP with timecodes. Direct file links only, no YouTube or social media pages. Broken links and non-video files are free.

Pricing

from $0.80 / 1,000 frames

Rating

0.0

(0)

Developer

Greenrun

Greenrun

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 hours ago

Last modified

Categories

Features

Limited permissions

Share

Extract still frames from your video files (MP4, MOV, WebM, MKV): exact timestamps, every N seconds, N evenly spaced thumbnails, keyframes or scene changes, as JPEG, PNG or WebP with timecodes. Direct file links only, no YouTube or social media pages. Broken links and non-video files are free.

Give the Actor links to video files, a dataset field with links (for example the output of another Actor) or records of a key-value store, and choose which frames you want. You get one dataset row per video with every frame's image link, exact timecode, size and keyframe flag, and the images in the run's key-value store. It suits AI pipelines that need frames for vision models, thumbnails for catalogs and video QA. You pay only for results: links that are not found, blocked, pages of video platforms and files that are not videos are free.

What it does

  • Reads video files from direct links, a dataset field or a key-value store: MP4, MOV, WebM, MKV, AVI, MPEG-TS, 3GP, OGV and other formats ffmpeg reads, with H.264, HEVC, VP8, VP9, AV1, ProRes and more.
  • Picks the frames you ask for: N evenly spaced, one every N seconds, exact timestamps, keyframes, or one per scene change (fast on keyframes, or accurate on every frame).
  • Returns JPEG, PNG or WebP images with the exact time of each frame, as stored in the video, and the time you asked for.
  • Fixes what makes frames look wrong: rotation of phone videos, non-square pixels, interlacing, HDR (tone-mapped to normal colours).
  • Makes an optional contact sheet per video: one JPEG grid with all frames and their timecodes, free.
  • Explains every free result: not found, blocked by robots.txt, a web page instead of a file, audio only, a streaming playlist, a video platform page.

Why use it

  • No fee per video. $0.0008 per frame, so ten thumbnails of a video cost $0.008.
  • Pay only for results. Inputs that are not found, blocked by the site or are not videos are saved for free with the reason.
  • Fast where it can be. Evenly spaced thumbnails move to a keyframe close to the right moment, which decodes as one frame instead of a whole group of frames; scene detection on keyframes needs no full decoding.
  • Exact when you need it. Exact timestamps and accurate scene detection decode every frame, charged per scanned minute only when that work is needed.
  • Respectful. robots.txt is always respected. No proxies, no CAPTCHA solving, no login, no downloads from video platforms.
  • Built for AI agents. Clear status messages, a predictable price per result, and limited permissions.

How to use

In Apify Console

  1. Paste links to video files into Video file URLs, one per line (or pick a dataset or a key-value store).
  2. Choose Which frames: count, interval, timestamps, keyframes or scenes, and the setting for that mode.
  3. Pick the image format and the maximum width (1280 px by default; 0 keeps the original size).
  4. Press Start. The Output tab shows one row per video; the frame images are in the run's key-value store.

From an AI agent (MCP)

Connect any MCP client to the Apify MCP server with only this Actor as a tool:

https://mcp.apify.com?tools=greenrun/video-frame-extractor

Through the API

curl -X POST "https://api.apify.com/v2/acts/greenrun~video-frame-extractor/run-sync-get-dataset-items" \
-H "Authorization: Bearer <APIFY_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"videoUrls": ["https://upload.wikimedia.org/wikipedia/commons/e/e3/Koel_at_bird_bath.webm"], "mode": "count", "frameCount": 5}'

Input

FieldDefaultDescription
videoUrlsexample linksDirect http or https links to video files, one per line. Pages of YouTube, TikTok, Instagram and other video platforms are returned free with the reason. Links to records of Apify key-value stores (also signed links and records of a run's store) are read through the Apify API and count like store records.
datasetIdemptyAlso take the video links found in this dataset, for example the output of another Actor.
datasetFieldurlField of each dataset item that holds the link; dot paths and lists work (media.video, videos.url).
keyValueStoreIdemptyRead video files stored as records of this key-value store. Choosing the store gives the Actor read access.
keyValueStoreKeysemptyKeys of the video records; empty reads every record whose key ends with a video extension.
modecountcount, interval, timestamps, keyframes or scenes.
frameCount10Mode count: frames spread evenly over the video or the range.
intervalSeconds10Mode interval: one frame every this many seconds (decimals work).
timestampsemptyMode timestamps: moments in seconds (12.5) or HH:MM:SS.mmm, one per line.
startTime, endTimeemptyOnly frames between these moments, e.g. 30 or 00:01:30.
sceneThreshold0.3Mode scenes: how different two frames must be to count as a new scene (0 to 1).
accurateScenesfalseMode scenes: compare every frame (charged per scanned minute) instead of the keyframes only.
maxFramesPerVideo100Upper limit of frames from one video in any mode.
skipBlankFramesfalseLeave out frames of one flat colour (they still count as frames, because they were decoded).
imageFormatjpgjpg, png or webp.
imageQuality85JPEG and WebP quality from 1 to 100.
maxWidth1280Wider frames are scaled down to this width; 0 keeps the original size.
contactSheetfalseAlso make one JPEG grid per video with all frames and timecodes (free).
contactSheetColumns5Frames per row of the contact sheet.
maxScanMinutes60Most scanned minutes one video may use; a video that needs more is skipped for free. 0: never pay for scanned minutes.
maxVideoSizeMb1000Larger files are skipped for free. A run gets twice its memory as disk.
maxConcurrency2Videos downloaded at the same time.
timeoutSecs900A video whose download and extraction take longer fails for free.

Output

One row per video. A real row from a run on 21.11.2026 (Jellyfish 1080p test clip from test-videos.co.uk, mode count, 10 frames; shortened to the first two frames):

{
"index": 2,
"input": "https://test-videos.co.uk/vids/jellyfish/mp4/h264/1080/Jellyfish_1080_10s_30MB.mp4",
"status": "extracted",
"fileName": "Jellyfish_1080_10s_30MB.mp4",
"sizeBytes": 31458599,
"durationSecs": 10.01,
"width": 1920,
"height": 1080,
"fps": 29.97,
"codec": "h264",
"keyframes": 2,
"keyframeIntervalSecs": 8.34,
"mode": "count",
"method": "pass",
"framesRequested": 10,
"framesExtracted": 10,
"frames": [
{"index": 1, "time": 0.501, "timecode": "00:00:00.501", "requestedTime": 0.499,
"url": "https://api.apify.com/v2/key-value-stores/QVGygT608ZFd1ARhU/records/v0002-0001-00h00m00s501.jpg?signature=...",
"key": "v0002-0001-00h00m00s501.jpg", "width": 1280, "height": 720, "format": "jpg", "sizeBytes": 60562,
"keyframe": false, "blank": false, "frameEvents": 1},
{"index": 2, "time": 1.502, "timecode": "00:00:01.502", "requestedTime": 1.496,
"url": "https://api.apify.com/v2/key-value-stores/QVGygT608ZFd1ARhU/records/v0002-0002-00h00m01s502.jpg?signature=...",
"key": "v0002-0002-00h00m01s502.jpg", "width": 1280, "height": 720, "format": "jpg", "sizeBytes": 65031,
"keyframe": false, "blank": false, "frameEvents": 1}
],
"scanMinutes": 0,
"processingSecs": 6.5,
"error": null,
"billableEvents": {"frame": 10, "scan-minute": 0, "scan-minute-4k": 0}
}

The RUN-REPORT record in the key-value store counts the results, lists every free input with its reason and shows the run's estimated cost.

Pricing

Pay per event, no subscription:

EventPriceWhen
Frame$0.0008One frame stored as JPEG, PNG or WebP. A frame larger than 8.9 MP (2.1 MP in PNG) or 4 MB counts one per started block. A downloaded video file counts at least one frame per started 100 MB (the frames count toward it); a video record of a key-value store one more per started 8 MB.
Scanned minute$0.012One started block of full decoding of a video up to 1080p (about one minute at 30 frames/s and 8 Mbit/s; heavier video counts more): accurate scene detection, or frames far from the keyframes before them.
Scanned minute, above 1080p$0.04The same above 1080p (a block is about one minute of 4K at 30 frames/s and 10 Mbit/s).

Free: links that are not found, blocked by robots.txt or refused by the site, pages of video platforms, streaming playlists, and files whose first bytes are not a video (they stop there). Apify also charges its Actor start event of $0.0045 per run for each GB of memory ($0.009 at the default 2 GB). You can cap the cost of a run with the maximum charge in the run options; the run stops cleanly at that limit and the status message says so.

Charges are made as the work goes: a downloaded video file, finished frames and started scan blocks are charged before the run spends more on them, so a run you abort keeps only what it already did charged, and nothing more is charged after the abort.

Limits

  • Direct video files only: no YouTube, TikTok or other platform pages, no HLS or DASH playlists, no login or cookies.
  • A run never spends more than 80% of what its charges pay for. A download may take the run time that one frame per started 100 MB pays for (about 4.6 s at the default 2 GB of memory, 9 s at 1 GB), plus what the run has already earned: small files download from almost any server, but a large file needs about 22 MB/s at 2 GB. A slower server stops with a clear message, and the part already downloaded counts as one frame per started 100 MB. Cloud storage and most CDNs are fast enough (Wikimedia gave 30-70 MB/s in our tests).
  • Decoding that would cost more than its price (very high bitrates, damaged files) stops early; the frames found until then are returned and charged.
  • Files up to maxVideoSizeMb (1 000 MB by default, at most 10 000) and twice the run's memory as disk.
  • A dataset is read up to 5 000 items, and only as many as the run has paid for at that point; a key-value store is listed up to 10 000 keys the same way. Split larger datasets or name the records in keyValueStoreKeys.
  • Decoding uses about one CPU core per 4 GB of memory: more memory makes long scans faster, not cheaper.

FAQ

Do you keep the data? No. Results stay in your run's dataset and key-value store in your own Apify account, under your data retention settings.

Why was an input not charged? Each free result has its reason in the error field, and the RUN-REPORT record in the key-value store counts them.

Why was a failed video charged one frame? Its file was downloaded (or read from your key-value store) before it failed, and that costs run time: a video file counts one frame per started 100 MB, a key-value store record one per started 8 MB. If decoding had started, its started scan blocks and finished frames count too. The row's note says so.

What if I abort a run? The work done until then is already charged (the downloaded files, finished frames, started scan blocks); nothing more is charged. Finished videos are in the dataset.

Why did a run say it had no paid time left? Rarely, Apify takes long to start a run (loading the Actor on a new server); when the start took more than the Actor start fee covers, the run stops instead of spending more. Run it again: a later start is usually fast.

Which software does it use? FFmpeg (LGPL 2.1 or later; the Debian build includes GPL parts such as x264) for reading and decoding, and Pillow for contact sheets.

Something is wrong with a result? Open an issue on the Actor's Issues tab with the input.