Video Frame Extractor: MP4 to JPG, Scene Frames, Thumbnails avatar

Video Frame Extractor: MP4 to JPG, Scene Frames, Thumbnails

Pricing

from $1.00 / 1,000 frames

Go to Apify Store
Video Frame Extractor: MP4 to JPG, Scene Frames, Thumbnails

Video Frame Extractor: MP4 to JPG, Scene Frames, Thumbnails

Extract frames from video files by URL: one frame every N seconds, N evenly spaced frames, scene changes, keyframes or exact timestamps. MP4, MOV, WEBM, MKV, M3U8 to JPG, PNG or WEBP with image links, a contact sheet and a ZIP. $1 per 1,000 frames.

Pricing

from $1.00 / 1,000 frames

Rating

0.0

(0)

Developer

PIC DEV

PIC DEV

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

Extract frames from a video by URL and get them back as image links. Pick one frame every N seconds, N evenly spaced frames, one frame per scene change, the video's keyframes, or the exact timestamps you list. Works with direct links to MP4, MOV, WEBM, MKV, AVI and M3U8 (HLS) files. Output is JPG, PNG or WEBP, plus a contact sheet and an optional ZIP per video.

No ffmpeg to install, no server to run, no API key. $1 per 1,000 frames, and videos that fail are free.

What does Video Frame Extractor do?

It opens each video link, reads its duration, resolution, frame rate and codec, and saves the frames you asked for. The video is read over HTTP range requests and only the parts around the requested frames are decoded, so ten thumbnails from a one-hour MP4 take a few seconds and the file is never downloaded in full. Scene detection is the exception: it has to decode the whole selected range.

Frame extraction modes

ModeWhat you getGood for
count (default)N frames spread evenly across the video, each from the middle of an equal sliceThumbnails, previews, frames for a vision model
intervalOne frame every N seconds (5, or 0.5 for two per second)Lectures, screen recordings, CCTV, datasets
scenesOne frame at each cut, with a sensitivity threshold and a sceneScoreStoryboards, ad and trailer breakdowns
keyframesThe video's own I-framesFast sampling exactly as the encoder placed them
timestampsThe exact times you list: 90, 1:30, 00:01:30.250, 1m30sGrabbing moments you already know

startTime and endTime limit every mode except timestamps. maxFramesPerVideo caps the output and the cost.

Use cases

  • Video to images for AI vision models. GPT, Claude and Gemini read images, not video. Send 8 to 20 evenly spaced or scene frames and ask for a summary, tags or moderation.
  • Video thumbnails. Pull candidates from a product clip, a course lesson or a webinar and pick the best still.
  • Storyboards and contact sheets. One grid image per video shows the whole thing at a glance.
  • Computer vision datasets. Sample footage at a fixed rate into JPG or lossless PNG.
  • Video QA. Check a batch of exports for wrong intros, missing slates or black frames without opening each file.
  • Slides from a lecture recording. Scene mode on a screen recording returns one image per slide change.

Input

{
"videoUrls": ["https://media.w3.org/2010/05/sintel/trailer.mp4"],
"mode": "scenes",
"sceneThreshold": "0.3",
"maxFramesPerVideo": 50,
"imageFormat": "jpg",
"maxWidth": 1280,
"zipFrames": true
}
FieldDefaultNotes
videoUrlsrequiredDirect links to video files. The link must open without a login.
modecountcount, interval, scenes, keyframes or timestamps.
frameCount10Count mode.
intervalSeconds5Interval mode. Fractions are fine.
timestampsnoneTimestamps mode. Times past the end are ignored.
sceneThreshold0.3Scenes mode, 0.01 to 0.99. Lower finds more cuts.
minSceneGapSeconds1Scenes mode. Minimum distance between saved frames.
startTime, endTimenoneSeconds, 1:30 or 1m30s.
maxFramesPerVideo100Up to 5,000.
imageFormatjpgjpg, png or webp.
imageQuality85JPG and WEBP.
maxWidthoriginalScales wider frames down.
contactSheettrueOne grid image per video, up to 40 thumbnails.
zipFramesfalseOne ZIP per video with all frames.

Output

One row per frame:

{
"type": "frame",
"videoUrl": "https://media.w3.org/2010/05/sintel/trailer.mp4",
"videoIndex": 1,
"frameIndex": 4,
"timestampSec": 23.792,
"timestamp": "00:00:23.792",
"imageUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/v001-f0004.jpg?signature=<...>",
"key": "v001-f0004.jpg",
"width": 854,
"height": 480,
"imageFormat": "jpg",
"sizeBytes": 41701,
"sceneScore": 0.673
}

And one free summary row per video:

{
"type": "video",
"videoUrl": "https://media.w3.org/2010/05/sintel/trailer.mp4",
"videoIndex": 1,
"status": "ok",
"durationSec": 52.208,
"width": 854,
"height": 480,
"fps": 24.0,
"codec": "h264",
"framesExtracted": 8,
"contactSheetUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/v001-contact-sheet.jpg",
"zipUrl": "https://api.apify.com/v2/key-value-stores/<storeId>/records/v001-frames.zip",
"processingSec": 1.4
}

A link that cannot be processed returns a video row with status: "error" and a plain reason in error (not found, access denied, not a video file, no video stream). Those rows cost nothing.

If the file server drops the connection or starts rate limiting in the middle of a video, the Actor retries twice, then keeps the frames it already saved and marks the video partial with the reason in error.

Image links are signed, so they open in a browser, a spreadsheet or a vision model without your API token. Images stay in the run's key-value store for as long as your Apify plan keeps run storage. Download the ZIP or copy the images if you need them longer.

How much does it cost to extract frames from a video?

$0.001 per saved frame, which is $1 per 1,000 frames. Summary rows, contact sheets, ZIP archives and failed videos are free. Ten thumbnails from one video cost one cent. Set a maximum charge per run in the Apify run options and the Actor stops when it is reached.

Extract video frames with the API

curl -X POST "https://api.apify.com/v2/acts/picdev~video-frame-extractor-mp4-to-jpg/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"videoUrls":["https://media.w3.org/2010/05/sintel/trailer.mp4"],"mode":"count","frameCount":12}'
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("picdev/video-frame-extractor-mp4-to-jpg").call(run_input={
"videoUrls": ["https://media.w3.org/2010/05/sintel/trailer.mp4"],
"mode": "interval",
"intervalSeconds": "5",
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
if row["type"] == "frame":
print(row["timestamp"], row["imageUrl"])

Limits

  • Direct file links only. YouTube, TikTok and Instagram page links are not supported. Pass the video file itself.
  • Scene detection finds cuts, not fades. A dissolve or a slow fade between two shots is not reported as a scene change. Black frames between shots are skipped, and the first lit frame after them is saved.
  • Rotation metadata is ignored. A phone video stored sideways with a rotation flag comes out sideways.
  • HLS (M3U8) seeking is slower than MP4: expect a few seconds per frame on long streams.
  • The server hosting the file should support HTTP range requests. Without them, seeking in a long video means reading it from the start.

FAQ

Can I extract a frame every second from an MP4? Yes. Use interval mode with intervalSeconds set to 1, and raise maxFramesPerVideo if the video is longer than 100 seconds.

How do I get one frame per scene? Use scenes mode. Start with the default threshold of 0.3. If shots are missed, lower it to 0.2. If you get near-duplicates in fast action, raise it or increase minSceneGapSeconds.

Which timestamp does a frame get? The presentation time of the frame actually saved, which is the first frame at or after the time you asked for.

Can I run it on many videos? Yes. Pass any number of links in videoUrls. Videos are processed one after another and each failure is reported on its own row.