Video Frame Extractor - Keyframes, Scenes, Thumbnails avatar

Video Frame Extractor - Keyframes, Scenes, Thumbnails

Pricing

from $0.70 / 1,000 frames

Go to Apify Store
Video Frame Extractor - Keyframes, Scenes, Thumbnails

Video Frame Extractor - Keyframes, Scenes, Thumbnails

Cut still frames from video links or another Actor's dataset: evenly spaced, every N seconds, scene changes, key frames, exact times or the best thumbnails. Sharpness, size and a contact sheet per video. Pay per frame.

Pricing

from $0.70 / 1,000 frames

Rating

0.0

(0)

Developer

Shivam Prajapati

Shivam Prajapati

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

10 days ago

Last modified

Features

Limited permissions

Share

Cut still frames out of videos in bulk. Give it links to video files, or the dataset of another scraper's run, and get the frames you want: evenly spaced, every N seconds, at exact times, the video's key frames, one at every scene change, or the best frames (sharp, well lit, far apart). Every frame is saved as JPEG, PNG or WebP and comes with its real time to the millisecond, size, sharpness, brightness, contrast, main colour, a picture fingerprint for repeats, and the facts of its video (length, resolution, frame rate, codec, audio, rotation). A contact sheet per video shows all frames at a glance. Blank frames and failed videos are free: you pay only for frames you receive. No proxy, no login, no AI.

Actively maintained. Last update: 2026-11-08. Every release passes 100+ automated tests on real videos (the cutting runs ffmpeg in the tests), and Apify test-runs it every day.

What can you use it for?

  • Feed AI and vision pipelines. One clean frame per scene, with a link, instead of whole videos.
  • Thumbnails and previews. The best frames of a video, or evenly spaced stills with a contact sheet.
  • Video moderation and review. A frame every few seconds, with brightness and sharpness to find black or blurry sections.
  • Scrape, then look. Another Actor returns video addresses (TikTok, Instagram and similar scrapers do). Give this Actor that run's dataset and get the frames.
  • Research and archives. Exact timestamps with the real frame time, video length, codec and frame rate in every row.

What data do you get?

One row per frame. Failed videos are not rows: they are in the FAILED_URLS record with the reason.

FieldWhat it is
videoUrl, videoIdThe video address you gave, and a short id of it
frameIndex, timestampSec, timecodeThe frame's number, its real time in seconds, and as HH:MM:SS.mmm
modeThe mode that chose the frame
frameKey, frameUrl, formatThe record key, the link to the image, and jpg, png or webp
width, height, bytesImage size in pixels and bytes
sceneScoreIn scene mode: how strong the change into the frame is (0 to 1)
sharpness, brightness, contrast, dominantColorHow sharp, how bright and how contrasty the frame is, and its average colour
hash, similarToA 16-digit picture fingerprint, and the index of an earlier frame that looks the same
videoDurationSec, videoWidth, videoHeight, videoFpsLength, size as displayed and frame rate of the video
videoCodec, videoBitrateKbps, videoSizeBytesCodec, bitrate and file size
hasAudio, audioCodec, rotationAudio track, its codec, and the rotation stored in the file (frames are already upright)
contactSheetUrlLink to the video's contact sheet
extractedAtWhen the frame was cut (UTC)

Example result

{
"videoUrl": "https://example.com/clips/launch.mp4",
"videoId": "3f9a1c0b7d22",
"frameIndex": 2,
"timestampSec": 12.04,
"timecode": "00:00:12.040",
"mode": "scenes",
"frameKey": "3f9a1c0b7d22-0002-00012040ms.jpg",
"frameUrl": "https://api.apify.com/v2/key-value-stores/xxxx/records/3f9a1c0b7d22-0002-00012040ms.jpg",
"format": "jpg",
"width": 1280,
"height": 720,
"bytes": 84213,
"sceneScore": 0.61,
"sharpness": 412.7,
"brightness": 0.46,
"contrast": 0.21,
"dominantColor": "#6d7f9a",
"hash": "e1c3a7870f3d1b99",
"similarTo": null,
"videoDurationSec": 58.4,
"videoWidth": 1920,
"videoHeight": 1080,
"videoFps": 29.97,
"videoCodec": "h264",
"videoBitrateKbps": 4200,
"hasAudio": true,
"audioCodec": "aac",
"rotation": 0,
"contactSheetUrl": "https://api.apify.com/v2/key-value-stores/xxxx/records/3f9a1c0b7d22-contact-sheet.jpg"
}

Which frames: the modes

modeWhat it does
countframeCount frames, one in the middle of each of N equal parts. A blank frame is replaced by a nearby one from the same part
intervalA frame every intervalSeconds
timestampsFrames at the times you list: seconds, clock times or percentages
keyframesThe key frames the video is built on (fast: only those frames are decoded)
scenesThe first frame and a frame at every scene change; sceneThreshold sets how big a change must be
bestThe frameCount sharpest, best-lit frames, at least a fair distance apart

startTime and endTime limit every mode to a part of the video. timestampSec is the frame's real time: asking for 3.99 s returns the frame at 4.00 s and says 4.0.

How to use it

  1. Paste video links into Video URLs, or give a dataset id.
  2. Pick Which frames, and the number or spacing.
  3. Set Maximum frames and press Start. Frames appear in the key-value store as the videos finish.

Input options

InputWhat it does
videoUrlsDirect links to video files: one by one, pasted (one per line) or from a text file
datasetId, urlFieldsCut every video address in the rows of another Actor's dataset; name the fields or let the Actor find them
modecount, interval, timestamps, keyframes, scenes or best
frameCount, intervalSeconds, timestamps, sceneThresholdThe settings of the modes
maxFramesPerVideoAt most this many frames from one video; more moments are thinned out evenly
startTime, endTimeCut only this part of each video
imageFormat, maxWidth, imageQualityjpg, png or webp; scale frames down to this width (0 keeps the size); JPEG and WebP quality
skipBlankFrames, dropDuplicatesDrop black, white and single-colour frames; drop frames that look like an earlier one
contactSheet, contactSheetColumnsOne picture per video with all frames as tiles, and its columns
maxVideoSizeMbLarger videos are refused before they are downloaded
maxRetries, timeoutSeconds, processingTimeoutSecondsDownload retries, the wait for the server's next bytes, and the longest a video may take to cut
maxPerHost, maxConcurrencyDownloads at once from one site, and videos processed at once
headersExtra request headers, for videos you are allowed to download
keyValueStoreNameSave into a named key-value store that does not expire
onlyNewSkip videos that earlier runs of this same input already returned
maxItemsStop after this many frames in total

How much does it cost?

You pay per frame you receive, nothing else. Failed videos, videos over the size limit, blank frames, dropped repeats and contact sheets are free and do not count toward the maximum. The first Apify plan includes free monthly credit to try it.

PlanPrice per 1,000 frames
Free$1.00
Bronze$0.90
Silver$0.80
Gold$0.70

Use it via API, on a schedule, or with your tools

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("pshivam/video-frame-extractor-scraper").call(run_input={
"datasetId": "<DATASET_ID_OF_ANOTHER_RUN>",
"mode": "scenes",
"maxFramesPerVideo": 12,
"maxItems": 500,
})
for frame in client.dataset(run["defaultDatasetId"]).iterate_items():
print(frame["videoUrl"], frame["timecode"], frame["frameUrl"], frame["sharpness"])

Schedule it in the Apify Console (Schedules) and turn on Only new videos to cut only the videos earlier runs did not. Connect the result to Google Sheets, Make, Zapier, n8n or your own app with Apify's integrations.

Good to know

  • Direct video links only. The Actor downloads the file at the address you give and cuts it. A page link of a video site (a YouTube watch page, a TikTok page) is a web page: it fails with html_instead_of_file or no_video_stream and costs nothing. Video addresses that scrapers return (TikTok and Instagram scrapers return direct links) work.
  • Links expire. Video links from social media often stop working after hours. Run this Actor soon after the scrape.
  • Scenes read the whole video. Scene detection looks at every frame, so long videos take longer. The other modes jump to the moments they need.
  • Frames are cut with ffmpeg in the Actor's own container: no outside service, no account.
  • Downloads are streamed to disk, retried and resumed when the server supports byte ranges. Private and internal network addresses are refused.
  • More memory means more videos at once. The default is 2 GB.
  • Frames are kept as your run's records. Run records expire after your plan's retention time. Use keyValueStoreName for a store that stays.

FAQ

How do I extract frames from a video?

Paste the video link into Video URLs, choose Evenly spaced and a number of frames, and press Start. Each frame is a row in the results and an image in the key-value store.

Can it find the scene changes of a video?

Yes. Choose At every scene change. It returns the first frame and a frame at every cut, with the strength of each change in sceneScore. Lower sceneThreshold to find smaller changes.

Can it give me the best thumbnail of a video?

Yes. Choose The best frames. It samples the video, scores every candidate for sharpness, contrast and brightness, and returns the best ones that are far apart in time.

Can I get frames at exact times?

Yes. Choose At exact times and list seconds, clock times or percentages. The row's timestampSec is the frame's real time.

Can it cut the videos from my TikTok or Instagram scrape?

Yes, with the dataset of that scraper's run. Give the dataset id; fields such as videoUrl, downloadAddr and playUrl are found on their own. Run it soon after the scrape because those links expire.

No. A YouTube page is not a video file. The Actor reads direct links to video files (mp4, mov, webm, mkv and others).

Do I need a proxy or an account?

No. The Actor downloads the address you give and cuts it with its own ffmpeg.

The Actor fetches the addresses you give. You are responsible for having the right to download and use the videos and their frames and for following the terms of the sites you download from.

How do I cut only new videos every day?

Turn on Only new videos and schedule the Actor. It remembers what it returned in your key-value store.