Video Frame Extractor

Published Updated

Save still frames from an MP4, MOV or WebM as PNG or JPG in one ZIP, either every N seconds (0.1 or more) or in a dense mode that assumes 30 frames per second. Output stops at 450 frames, spread evenly over the whole video, at the video's full pixel size.

How the frame list is planned

The count is the length divided by the spacing, rounded down, plus one, because frame number one sits at time zero. From the page's own planning function:

VideoSettingFramesSpacing used
10 sEvery 1 s111 s
10 sEvery 0.1 s1010.1 s
60 sEvery 1 s611 s
60 sEvery frame450 (1,801 wanted)0.134 s
5 minEvery 1 s3011 s
5 minEvery 0.1 s450 (3,001 wanted)0.668 s
10 minEvery 0.1 s450 (6,001 wanted)1.336 s

Size and memory

Frames are exported at the video's native width and height. Each exported frame is held in memory until the ZIP is built, so a full run of 450 PNG frames from 1080p footage could take several hundred megabytes, an estimate scaled from the 720p test. JPG is about a quarter of that.

Names are the video's name, then -frame-, then a number padded to the width of the total, so 450 frames are numbered 001 to 450. MDN's toBlob page notes that PNG support is required of every browser, while JPEG and WebP are common but optional.

Which files each browser opened

Measured with the page's own code in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app), on a generated 2-second 320 × 240 clip saved as MP4 (H.264), WebM and MOV, with Every frame and PNG. All three browsers opened all three containers and wrote 61 frames, numbered 01 to 61.

BrowserMP4 (H.264)WebMMOV
Chrome 157ZIP 5.38 MB, frames 86.5 to 91.5 KBZIP 5.69 MB, frames 92.8 to 96.9 KBZIP 5.39 MB, frames 86.5 to 91.8 KB
Firefox 155ZIP 3.15 MB, frames 48.0 to 54.3 KBZIP 3.07 MB, frames 41.7 to 54.0 KBZIP 3.14 MB, frames 48.0 to 54.3 KB
The WebKit buildZIP 5.39 MB, frames 87.7 to 91.4 KBZIP 5.60 MB, frames 87.7 to 95.7 KBZIP 5.37 MB, frames 87.7 to 91.2 KB

The clip holds 20 different pictures, so the 61 files held 20 distinct images in every browser and container. A clip with fewer pictures per second than the 30 per second sampling repeats them. The canvas PNG encoders wrote different sizes for the same pictures. Extracting the 61 frames took 1.2 to 1.4 seconds in Chrome 157, 1.0 to 1.9 seconds in Firefox 155 and 4.4 to 4.8 seconds in the WebKit build.

Video recorded in a browser

Each clip below was recorded in a browser with MediaRecorder (640 × 360, 3.2 seconds) with a millisecond clock drawn in the picture, and the clock was read back from the PNG files. At a 1 second spacing the four pictures should show clocks near 0, 1000, 2000 and 3000. Each cell gives the length the page showed, then the clocks.

Recorded asChrome 157Firefox 155The WebKit build
MP4, H.264, in Chrome 1573.2 s: 0, 981, 1982, 29810.1 s: one frame, clock 03.3 s: 0, 981, 1982, 2981
WebM, VP9, in Chrome 1573.1 s: 0, 983, 1983, 29833.2 s: 0, 0, 0, 03.2 s: 0, 1017, 2017, 3016
WebM, VP8, in Firefox 1553.2 s: four empty frames, no clock to read; Chromium 153 now gets the page's message instead3.2 s: 0, 984, 2001, 3009Refused with the page's message before the 30 November 2026 length fix

Seeking did not move in one case, where all four files showed clock 0: the WebM recorded in Chrome 157 and opened in Firefox 155. The WebM recorded in Firefox gave four empty frames in Chrome 157, with no picture drawn at all. In the browser that recorded each file, and in the WebKit build for the VP9 file, the four pictures differed. Neither recorded WebM contains a Cues element (the seek index), found by searching the file for its ID, and the 2-second WebM above, which has one, gave 20 distinct pictures in all three browsers.

Neither recorded WebM gives a usable length in its header (the Firefox one gives 0), and the HTML standard says a media resource not known to be bounded reports a duration of positive Infinity. Chrome 157 reports Infinity for the VP8 file until its end has been read. The page seeks past the end to learn the length, then returns to the start, so the frame plan follows the real length.

The MP4 recorded in Chrome 157 is fragmented: its top-level boxes are ftyp, moov, moof, mdat and mfra, where the 2-second MP4 written in one piece has ftyp, mdat and moov. Firefox 155 reported 0.1 seconds for the fragmented one, so a 1 second spacing planned one frame.

Taking frames from a clip

  1. Step 1

    Add the video

    MP4, MOV or WebM, one file. The length and pixel size are read first, and a line states how many frames your settings will produce.

  2. Step 2

    Choose the spacing and format

    Every N seconds takes a number from 0.1 up. Every frame samples at 1/30 second. PNG is lossless, and JPG is written at quality 92.

  3. Step 3

    Extract and download the ZIP

    Each frame is a seek, a draw and an export, so progress moves frame by frame. The ZIP is named after your video plus -frames.

Related tools

  • To cut a section first, Trim Video keeps a start and end.
  • To turn a section into a looping picture instead, Video to GIF does that.
  • For one still at an exact moment, set the interval wide and pick the frame you need from the ZIP.

Frame extraction questions

Why did I get fewer frames than I asked for?

The limit is 450 frames. Beyond it the spacing is stretched so the frames still cover the whole video. A 5-minute video at 0.1 s would need 3,001 frames, so the page takes 450 about 0.67 s apart.

Does Every frame really mean every frame?

No. It samples at 1/30 second whatever the video's own rate. A 60 fps clip gives half its frames. A clip with fewer pictures per second repeats them: a 2-second test clip with 20 different pictures gave 61 files holding 20 distinct images.

Is there a frame at the very end?

Yes, the last timestamp equals the full duration. On a generated 30 fps test clip of 2.96 seconds, 91 samples gave 90 different pictures, because the final one repeated the last frame.

PNG or JPG?

PNG keeps every pixel and is larger. In the 1280 x 720 test, PNG frames averaged 390 KB to 520 KB and JPG frames 94 KB to 99 KB. The test pictures were synthetic, so real footage will differ.

How long does it take?

Each frame needs a seek in the video. About 85 ms per frame was typical in a headless Google Chrome 156 test, so a full 450 frames takes roughly 40 seconds, longer on slow machines.

Is the video uploaded?

No. It plays in a hidden element on the page, and the frames and ZIP are made there.

Why are all my frames the same picture?

The browser did not move the video when the page asked it to seek. A WebM recorded by Chrome 157 gave four copies of its first picture in Firefox 155 and four different pictures in Chrome 157, which recorded it. A 2-second WebM with a seek index gave 20 distinct pictures in 61 frames in all three browsers.

Why does Firefox show my MP4 as 0.1 seconds long?

That happened with an MP4 recorded by Chrome 157, a fragmented file. Firefox 155 reported 0.1 seconds, so a 1 second spacing planned one frame, while Chrome 157 and the WebKit build reported 3.2 and 3.3 seconds and planned four. An MP4 written in one piece showed 2.0 seconds in all three.

Why is the ZIP bigger in Chrome than in Firefox?

Each browser's canvas encoder writes the PNG bytes itself. The same 61 pictures from an MP4 came to 5.38 MB in Chrome 157, 3.15 MB in Firefox 155 and 5.39 MB in the WebKit build.

Does a WebM recorded in a browser work?

It opens when the browser can play it. When the browser first reports such a file's length as zero, unknown or infinite, the page waits up to 3 seconds for the real length, seeking past the end first when it is infinite; the two test files then planned from 3.1 and 3.2 seconds. Whether the frames are different pictures depends on seeking, as in the first question above.

Related Tools