Video Frame Extractor: Frames and Scene Changes avatar

Video Frame Extractor: Frames and Scene Changes

Pricing

from $2.00 / 1,000 frame extracteds

Go to Apify Store
Video Frame Extractor: Frames and Scene Changes

Video Frame Extractor: Frames and Scene Changes

Extract still frames from video files: evenly spaced, every N seconds, at exact times, at scene changes or every keyframe. JPEG, PNG or WebP with timestamps, a contact sheet and video metadata. Ready for AI vision and thumbnails.

Pricing

from $2.00 / 1,000 frame extracteds

Rating

0.0

(0)

Developer

Malik Said

Malik Said

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

a month ago

Last modified

Features

Limited permissions

Share

Video Frame Extractor: Frames, Thumbnails, Scene Changes

Video Frame Extractor pulls still frames out of video files. You can take evenly spaced frames, one frame every N seconds, frames at exact times, frames at scene changes, or every keyframe. Each frame is saved as a JPEG, PNG or WebP file with its timestamp, and each row also carries the video's length, size, codec and frame rate. An optional contact sheet shows all frames of a video in one image.

Use it for video thumbnails, AI vision input, content review, product videos, training data and video previews.

What it does

  • Reads MP4, MOV, WebM, MKV, AVI and most other formats that ffmpeg reads (H.264, HEVC, VP9, AV1 and more).
  • Five ways to choose frames:
    • Evenly spaced: a number of frames spread over the whole video.
    • Every N seconds: one frame per interval, starting at 0.
    • Exact times: a list of times in seconds or hh:mm:ss.
    • Scene changes: keyframes whose picture differs from the one before.
    • Every keyframe: all keyframes in the video.
  • Scales frames down to a maximum width, 1280 px by default, or keeps the original size.
  • Turns phone videos upright from the rotation stored in the file.
  • Saves an optional contact sheet per video, free of charge.
  • Evenly spaced, interval and exact-time frames read only the parts of the file they need. A 3 GB 4K file does not have to be downloaded in full.

Frames are extracted inside the container with FFmpeg. Your videos go to no outside service.

You can give videos in two ways:

  1. Video file URLs. Paste direct links to video files, one per line. The Actor reads robots.txt on each host.
  2. Key-value store. Upload video files to one of your Apify key-value stores and pick it in the input. The Actor only reads that store.

Links to pages on YouTube, TikTok, Instagram, Facebook, X, Vimeo and similar platforms are refused. Their terms forbid downloading. A link that returns a web page is refused too. Use links to the video file itself.

With no input, the Actor processes a built-in 20-second sample video made of ffmpeg test patterns, so a test run always works.

How to extract frames from a video

  1. Paste direct video links in Video file URLs, or pick a key-value store with your files.
  2. Pick Which frames: evenly spaced, every N seconds, exact times, scene changes or every keyframe.
  3. Set the number of frames, the interval or the times for that mode.
  4. Optional: change the image format, the maximum width, or turn on the contact sheet.
  5. Click Start. Open the Frame images tab, or use the frameUrl link in each row.

Output

Each frame is saved in the run's key-value store and gets one dataset row.

FieldMeaning
statusok for a frame, failed for a video that could not be read
errorWhy the video failed. Null for frames
videoUrl / keyValueStoreKeyWhere the video came from
modeHow frames were chosen
frameIndexPosition of the frame in this video, from 0
timestampSecs, timecodeTime of the frame, in seconds and as hh:mm:ss.mmm
frameWidth, frameHeight, frameBytes, formatThe frame image
frameKey, frameUrlKey and download link of the frame image
videoDurationSecs, videoWidth, videoHeight, videoFpsThe video
videoCodec, videoContainer, videoBitRate, videoSizeBytes, videoRotationMore video facts from ffprobe
windowStartSecs, windowEndSecsThe part of the video used, when you set a start or end time
frameBrightness, shiftedBySecsBrightness of the frame (0 to 255) and how far it moved to step past a black frame

Sample record from a local test run (built-in sample video, 10 evenly spaced frames):

{
"status": "ok",
"source": "sample",
"keyValueStoreKey": "sample-scenes.mp4",
"videoId": "be545977c999382c",
"mode": "count",
"frameIndex": 4,
"timestampSecs": 8.977,
"timecode": "00:00:08.977",
"frameWidth": 640,
"frameHeight": 360,
"frameBytes": 7539,
"format": "jpeg",
"frameKey": "sample-scenes-be5459-000008977ms.jpg",
"contentType": "image/jpeg",
"videoDurationSecs": 20,
"videoWidth": 640,
"videoHeight": 360,
"videoFps": 25,
"videoCodec": "h264",
"videoContainer": "mov,mp4,m4a,3gp,3g2,mj2",
"videoBitRate": 1316234,
"videoSizeBytes": 3290585,
"videoRotation": 0
}

The record has more fields, such as id, frameUrl and scrapedAt. Fields that do not apply are null.

Input options

OptionDefaultMeaning
Video file URLsNone (sample video)Direct links to video files
Key-value storeNoneYour store with video files
Record keysAllOnly these records of the store
Which framesEvenly spacedEvenly spaced, every N seconds, exact times, scene changes or every keyframe
Number of frames10For evenly spaced frames
Seconds between frames10For one frame every N seconds
TimesNoneFor exact times: 75.5 or 00:01:15.5
Start time, End timeWhole videoUse only this part of each video, in every mode. Scans charge only the minutes inside it
Skip black and blank framesOnStep past black, white or one-colour frames, up to 1.5 s forward. Skipped frames are free
Scene change sensitivity0.30.01 to 1. Lower finds more changes
Maximum frames per video50A cap in every mode
Maximum frame width1280 px0 keeps the original size
Image formatJPEGJPEG, PNG or WebP
Quality85For JPEG and WebP
Contact sheetOffOne grid image per video, free
Maximum video length for scans30 minutesScene and keyframe scans skip longer videos
Maximum frames per run200Set 0 for no limit

Scene changes and keyframes

Scene detection compares keyframes, not every frame. That keeps a scan fast and cheap, but a cut is reported at the first keyframe after it. Most videos have a keyframe every 1 to 10 seconds. Scans read the whole video file, so they also charge per started minute of video.

Pricing

You pay per saved frame, plus a small start fee per run. Failed videos are free.

  • Frame extracted: every saved frame.
  • HD source surcharge: added per frame when the video is larger than 1280 x 720, such as 1080p. Decoding a larger picture costs more.
  • 4K source surcharge: added per frame, on top of the HD surcharge, when the video is larger than 2560 x 1440.
  • Video minute scanned: scene-change and keyframe modes read the whole video, so they also charge per started minute of video. The charge is made after the scan finishes.
EventPrice
Run start$0.005
Frame extracted$0.002 ($2.00 per 1,000)
HD source surcharge$0.002 ($2.00 per 1,000)
4K source surcharge$0.012 ($12.00 per 1,000)
Video minute scanned$0.002 ($2.00 per 1,000)
Frames in one runCost, start fee included
100$0.21
1,000$2.01

Costs are rounded up to the cent. They are for the count, interval and timestamps modes on videos up to 1280 x 720. Larger videos add the surcharges above. The scenes and keyframes modes add the per-minute charge.

Limits

  • Runs use 512 MB. One video is processed at a time.
  • Scans skip videos longer than the maximum video length you set (30 minutes by default, up to 600). In tests at 512 MB, a 10-minute 360p scan took about 9 minutes and a 4K frame took about 50 seconds.
  • The default run timeout is 1 hour. When a run nears its timeout, the remaining videos are marked failed (free) and the run ends cleanly.
  • Videos from your key-value store can be up to 2 GB.
  • Each frame request has a 3-minute limit, so one broken file cannot stall the run.

Your videos and rights

You choose the videos and must have the right to process them. Frames are stored only in your own Apify storage.

FAQ

Can I use a YouTube or TikTok link? No. Those platforms forbid downloading in their terms. Use a direct link to a video file you have the right to use, or upload the file to a key-value store.

Why are my scene-change times a little after the real cut? Changes are detected on keyframes. The frame shown is the first keyframe after the cut.

Can I call it from an AI agent? Yes. Call the Actor through the Apify API, MCP, Make, n8n or Zapier with video links, then read the dataset or the frame files. The default 1280 px width suits vision models.