Video Frame Extractor: Extract Frames from Video, No Duplicates
Pricing
from $2.40 / 1,000 frames
Video Frame Extractor: Extract Frames from Video, No Duplicates
Extract still frames from video file links (mp4, mov, webm, mkv). Scene changes, fixed intervals or exact timestamps. Near-duplicate and blurry frames are dropped before you pay.
Still frames from your video files, as image links. Give it direct links to video files (mp4, mov, webm, mkv, m4v, avi); get one image per scene change, per interval, or at the exact times you list. Near-duplicate and blurry frames are dropped before you pay, so every frame is a different, sharp picture. $3.00 per 1,000 frames.
Try it now — the input is already filled in. Press Start: you get one frame per second of two short public sample clips (MDN's CC0 examples) — 12 candidates, 8 kept, 4 near-duplicates dropped and not charged (our own run, 21 Nov 2026), about $0.024. Each row is one kept frame; one more row per video says how many candidates were dropped and why. Two of the rows from that run on Apify (the image link is shortened):
{"type": "frame","videoUrl": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4","frameIndex": 2,"timeSec": 2,"timecode": "00:00:02.000","imageUrl": "https://api.apify.com/v2/key-value-stores/…/records/d2999480117c-2.jpg","width": 960,"height": 540,"sharpness": 302.3,"hash": "29536225561673f2"}
{"type": "video","videoUrl": "https://interactive-examples.mdn.mozilla.net/media/cc0-videos/friday.mp4","status": "done","reason": null,"durationSec": 6.2,"candidates": 7,"keptFrames": 5,"droppedDuplicates": 2,"droppedBlurry": 0,"contactSheetUrl": null}
Near-duplicate and blurry frames are dropped before you pay, so every frame is a different, sharp picture. Your video is processed only inside this Actor's run on Apify; nothing is sent to other services. It can also run automatically after your scraper and pick up only new videos.
What you pay
- $0.003 per kept frame (the
frameevent), plus $0.00005 per run start. - Dropped frames, skipped links and failed videos are free.
- The optional contact sheet (one grid image of the kept frames) counts as one frame.
- Set "Maximum total charge" on the run as your cap. The Actor works out how many frames still fit before it saves them and stops cleanly at the limit; everything saved is in the dataset.
How it works
- The Actor downloads each video into the run's temporary disk (max 2 GB per file).
- It picks candidate frames with ffmpeg.
- For each candidate it computes a sharpness score and a 64-bit picture hash. A candidate is dropped when
- blurry: its sharpness is below "Minimum sharpness" (variance of the Laplacian on a 160 px wide grey copy; default 40), or
- near-duplicate: its hash differs from the last kept frame in "Duplicate distance" bits or fewer (default 6).
- Kept frames are saved to the run's key-value store, and each row carries the public image link.
Blur is checked first, so a blurry frame never becomes the picture the next frame is compared with. A completely flat frame (a black or single-colour screen) has no detail and counts as blurry; set "Minimum sharpness" to 0 to keep such frames.
Modes
| Mode | What you get |
|---|---|
scenes (default) | The first frame plus a frame at every scene change. Raise or lower "Scene change threshold" (default 0.3; lower finds more changes). |
interval | One candidate every "Every N seconds" (default 10), starting at 0. |
times | Candidates at the exact moments in "Timestamps", as seconds (74.2) or hh:mm:ss (00:01:14). Times past the end of the video are ignored and noted in the video row. |
Input
| Field | Default | Meaning |
|---|---|---|
videoUrls | none | Direct links to video files. Up to 200 per run. Needed unless you give datasetId. |
datasetId | none | Read video links from this Apify dataset (for example a scraper's run dataset). |
urlField | auto | Field holding the link. If empty, each item is checked for videoUrl, video_url, url, link, downloadUrl, mediaUrl, src; the first with a link ending in a video extension is used, else the first with any http(s) link. |
maxVideos | 50 | Cap on videos per run, counting videoUrls and the dataset together (duplicates removed). |
mode | scenes | scenes, interval or times. |
sceneThreshold | 0.3 | Scenes mode: 0 to 1, lower finds more changes. |
everySeconds | 10 | Interval mode. |
timestamps | none | Times mode. |
dropDuplicates | true | Drop near-duplicate frames. |
duplicateDistance | 6 | Bits of difference (0 to 32) at or below which a frame counts as a duplicate. |
dropBlurry | true | Drop blurry frames. |
minSharpness | 40 | Sharpness score below which a frame is blurry. 0 turns the check off. |
maxFrames | 50 | Frames kept per video, at most (1 to 500). |
format | jpg | jpg, png or webp. |
width | keep | Resize to this width in pixels; the height follows. |
contactSheet | false | Also save one grid image of the kept frames per video. |
onlyNewSinceLastRun | false | Skip links you processed in an earlier run (remembered by link for 90 days). |
Run it after your scraper
If you have a scraper that collects links to video files, this Actor can run by itself after every scraper run:
- In Apify Console, open your scraper and go to Integrations.
- Add Run Actor and pick this Actor.
- Use this input:
{"datasetId": "{{resource.defaultDatasetId}}","onlyNewSinceLastRun": true,"mode": "scenes"}
Each scraper run then hands over its video links, the Actor skips the ones it has already seen, and you pay only for the frames of new videos. Video-site links in the dataset come back as skipped, free. If the dataset is empty, nothing runs and nothing is charged.
A daily schedule works the same way with a fixed datasetId, for example a named dataset your scraper keeps appending to.
Output
One row per kept frame (type: "frame") and one summary row per video (type: "video").
- Frame rows:
videoUrl,frameIndex,timeSec,timecode,imageUrl,width,height,sharpness,hash. - Video rows:
videoUrl,status(done,failed,skippedorno_frames),reason,durationSec,candidates,keptFrames,droppedDuplicates,droppedBlurry,contactSheetUrl.
Images are stored in the run's default key-value store as <12 characters of the link's hash>-<index>.<format>. They stay as long as your Apify storage retention keeps the run.
Limits
- Links to video sites are not supported; give a direct file link. YouTube, TikTok, Instagram, Facebook, X (Twitter), Vimeo, Twitch, Bilibili and Douyin links come back as
skippedand are free. - Maximum file size 2 GB. The link must be reachable without a login.
- At most 400 candidate frames are examined per video. Long videos in
intervalmode with a small step are cut there; use a larger step ortimes. - Only frames, not audio or subtitles.
- You are responsible for having the right to process the videos you give it.
日本語
動画ファイルへの直リンク(mp4・mov・webm・mkv など)から、場面転換・一定間隔・指定時刻の静止画を取り出します。ほぼ同じ画像とボケた画像は課金の前に捨てるので、受け取る1枚1枚が別の絵で、くっきりしています。料金は1枚 $0.003。捨てた画像・対応外リンク・失敗した動画は無料です。YouTube などの動画サイトのリンクは対応しません(直リンクを指定してください)。動画はこの Actor の実行の中だけで処理され、外部のサービスには送られません。