Blog

Extracting Still Images from an MP4 Video: How to Pick the Exact Frame and Save an Image Sequence as a ZIP

A 60 fps video holds 60 images every second. Using a test video with frame numbers burned in, I checked the steps for exporting frames from a chosen range of an MP4 as JPG or PNG at the original resolution and saving them as a ZIP. Also covers how to pick exactly the frame you want, the differences between the three extraction modes, and what to do when an HEVC video shows a black screen.

Twelve images exported from a 60 fps test video, arranged in 4 columns and 3 rows. Each image shows a frame number from 61 to 83 and a timestamp, and a yellow square in the lower right moves a little further right in each one.
Some of the images exported from 1 to 1.5 seconds of the test video using all frames (every other image shown).

Sometimes you want to keep a single moment of a video as a photo: the moment your child scores a goal, the instant just before the club meets the ball in a golf swing, the screen right after a slide changes in a recorded lecture. You can pause playback and take a screenshot, but it is hard to stop at exactly the right frame. And what you save is an image at the size shown on screen, not at the resolution of the video itself.

A video shot at 60 fps contains 60 images per second, and each one is on screen for about 17 milliseconds. To be sure of getting the frame you want, it is quicker to turn the frames around that moment into images, one by one, and choose afterward.

The MP4 Frame Extractor & ZIP Download takes frames from a chosen range of an MP4, turns them into JPG or PNG images and bundles them into a ZIP. The video is processed inside your browser and is not uploaded anywhere, so it is comfortable to use even with videos of your family or internal company recordings.

Here I used a test video with frame numbers and timestamps burned into the picture, and checked image by image which frame of the video each exported file actually was.

The video used for testing

sample-60fps.mp4 (230 KB) is an H.264 video, 1280×720, 60 fps and 3 seconds long. Its 180 frames are numbered 0 to 179, with the playback time below the number and a yellow square moving from left to right in the lower right corner. Save it and you can try the same steps.

I also prepared sample-60fps-hevc.mp4 (188 KB), the same footage converted to H.265/HEVC. It is used later, in “When an HEVC video shows a black screen.”

Exporting every frame from 1 to 1.5 seconds

1. Load the video and check the info panel

Open the tool and select the MP4 under “Video file.” When loading finishes, “Video info” on the right shows the resolution, length, file size and video codec, and a preview appears below.

The MP4 Frame Extractor with sample-60fps.mp4 loaded. Video info reads 1280×720 / 00:00:03.000 / 229.8 KB / H.264/AVC, and the preview is paused on frame number 90 at 00:00:01.500. Below it reads Frame rate: 60.00fps (calculated from the video file).
Video info lists the resolution, length, size and codec. 📸 Capture current frame, under the preview, saves the frame currently shown.

Also look at the frame rate line under the seek bar. This value is the number of frames recorded in the MP4 divided by the video’s length, and the “All frames” and “Every X frames” modes described below use it to decide the time of each frame. For the test video it showed “Frame rate: 60.00fps (calculated from the video file).” This is where you can check that it matches the setting you shot with (30 fps or 60 fps).

2. Set the range and mode

Enter the range to export in “Start time” and “End time” in the form HH:MM:SS.mmm. You can also set it by dragging the two handles of “Extraction seek” left and right. This time I set the start to 00:00:01.000 and the end to 00:00:01.500, and chose “All frames” under “Extraction mode.”

The extraction range settings. Start time is 00:00:01.000, End time is 00:00:01.500, the extraction mode is All frames, image format JPG, JPG quality 0.90, scale 1x and the filename pattern frame_{index}_{timecode}. At the bottom it reads Estimated count: about 31 frames.
With All frames selected, the Estimated count at the bottom shows how many images will be exported.

When you change a setting, “Estimated count” just below updates immediately. Half a second is 30 frames at 60 fps, but it showed 31. That is because the frame sitting exactly at the end time (1.500 seconds) is counted too.

3. Press “Start extraction” and save the ZIP

Press “Start extraction” and the tool creates images while stepping the preview video forward one frame at a time. Progress is shown as something like “31/31,” and when it finishes the ZIP download starts automatically. To stop partway, press “Cancel.”

The screen after extraction. Under the Start extraction button it reads 31/31 (Done) and Extraction complete (31 frames, 3.3 seconds).
In my environment, exporting 31 images took about 3 seconds. The time depends on the resolution and the device.

The ZIP takes the same name as the video, so this time it was sample-60fps.zip. Here are its contents laid out:

The 31 images from the ZIP arranged in 6 columns. Frame numbers 60 through 90 appear in order with no gaps or duplicates, and under each image is its file name, from frame_000001_00-00-01-000 to frame_000031_00-00-01-500.
The numbers in the images ran continuously from 60 to 90. The times in the file names also match the times burned into the images.

The 31 images were frame numbers 60 through 90, with no missing frames and no duplicates. The images are 1280×720, saved at the same resolution as the video. If the frame you want is among them, just take that one file and use it.

Picking exactly the frame you want

“📸 Capture current frame,” under the preview, turns the single frame currently shown in the preview into an image. Pressing it at 1.5 seconds saved the image of frame number 90 as capture_00-00-01-500.jpg. This one is also at the video’s full resolution.

Stopping the preview on exactly the right frame is hard, though. You can move the playback position with the ← and → keys, but each press moves 0.1 seconds (0.5 seconds with Shift held down), which is 6 frames at 60 fps. Dragging the seek bar frame by frame is not easy either.

If you know clearly which moment you are after, this order keeps things simple:

  1. Use playback or the seek bar to find roughly where that moment is. The current time is shown below the preview.
  2. Enter about 0.5 seconds before and after it as the start and end times, and export with “All frames.” At 60 fps that is about 60 images.
  3. Open the ZIP, compare the images and pick the best frame.

The file names include the time within the video, so you can also tell later where in the video the chosen image came from.

The three extraction modes

I took the whole test video (0 to 3 seconds) and checked which frames each mode exported.

Mode Setting Images Exported frame numbers
All frames ― 180 All of 0–179
Every X frames 30 7 0, 30, 60, 90, 120, 150, 179
Total frame count 4 4 0, 60, 120, 179

“Every X frames” takes one image every specified number of frames from the start. A setting of 30 at 60 fps means every 0.5 seconds. Even when the end of the range does not fall on a 30-frame boundary, the last frame (179) is added as one more image. Use it to get an overview of a long video, or when you want a thinned-out image sequence like a time-lapse.

“Total frame count” takes the specified number of images at equal intervals, including the first and last frames of the range. It suits uses such as introducing the highlights of a video in four images.

“All frames” exports every frame in the range. If you make the range wide, the number of images jumps: one minute at 60 fps is 3,600 images. Check “Estimated count” first, and if it is too many, narrow the range or switch to “Every X frames.”

Image format, size and file names

“Image format” offers JPG or PNG. With JPG, “JPG quality” sets the quality from 0.1 to 1.0, and the default is 0.90. PNG loses no quality but makes larger files. Exporting the same 31 images, the ZIP was about 0.9 MB with JPG (quality 0.90) and about 3.4 MB with PNG. The test video is mostly a plain single-color background, so sizes will differ for footage you actually shot.

Choosing 0.5x under “Scale” produced 640×360 images. Choose “Custom” and you can enter a factor from 0.1 to 1.0. If you do not need the original size, for example to paste into a document or send by email, shrinking here makes the ZIP smaller.

The default “Filename pattern” is frame_{index}_{timecode}. {index} is replaced by a six-digit sequence number (starting at 000001) and {timecode} by the time within the video (in the form 00-00-01-500). If you remove {index}, extraction will not start. Characters other than letters, digits, _ and - are replaced with _, so you cannot use spaces or non-ASCII characters (such as accented letters or Japanese) in the name. To tell videos apart, add a prefix of letters such as swing_{index}_{timecode}.

The exported images are saved after drawing the video frame onto the browser’s drawing area (canvas). The JPG headers of the images made from the test video had no EXIF section. No metadata such as the date taken or location is attached to the images.

Videos that will not load or show a black screen

Videos with a .mov extension

The tool accepts only MP4. If you select a file with a .mov extension, it shows “Only MP4 files are supported.” and does not load it. To make images from a .mov video taken with a smartphone or camera, convert it to MP4 (H.264) first with video editing software or similar.

When an HEVC video shows a black screen

Even in an MP4, if the video is compressed with H.265/HEVC, the preview may stay black in some browsers. Whether HEVC can be played depends on support in the browser, the OS and the device.

The tool checks the codec of the loaded MP4, and if it is HEVC it shows “Depends on environment” at the end of “Video info.” If the browser has the required features, a button labeled “Black screen? Try HEVC compatibility mode” also appears next to “Play.”

The screen with sample-60fps-hevc.mp4 loaded. Video info reads H.265/HEVC (hvc1...) / Depends on environment, and the preview is completely black. Next to the Play button is a button labeled Black screen? Try HEVC compatibility mode.
Opened in a browser that cannot play HEVC. The Black screen? Try HEVC compatibility mode button appears next to Play.

Press this button and the preview switches to one in which the HEVC video is decoded again on your device. When it is ready, “Compatibility preview ready (no audio)” is shown; the preview displays the picture but plays no sound. From there, set the range and mode and extract with the same steps.

Opening sample-60fps-hevc.mp4 in a Chromium that cannot play HEVC and exporting “All frames” in compatibility mode gave all 180 images, frame numbers 0 to 179, with none missing. It saves you the trouble of converting the video again, but because decoding happens on your device, long or high-resolution videos take a while to prepare.

Large videos and long ranges

With very high-resolution videos such as 8K, the image size can exceed the limit of the browser’s drawing area. In that case the tool shows “The video resolution exceeds the browser limit. Lower the scale.”, so lower “Scale” to 0.5x or similar. Exporting a long range with “All frames” uses a lot of memory, so splitting the range and extracting in several passes is more stable.

After exporting

If you are putting the extracted images on a website or blog, converting them all to WebP with the Batch Image Format Converter makes them lighter. I covered the steps in “Convert PNG and JPEG images to WebP together and save a ZIP.” To make their sizes uniform, use the Bulk Image Resizer. To put a few chosen images into a single file as a document, Images to PDF can turn them into a PDF.

If you are trimming the video itself to share it, there is one thing to watch out for. An MP4 cut losslessly with FFmpeg can still contain frames from the part you thought you cut. I tested this in detail in “Can an MP4 still contain frames cut with FFmpeg stream copy?”

Test environment

  • MP4 Frame Extractor & ZIP Download (operated in the English UI), Chromium 158 (via Playwright)
  • Test videos made with FFmpeg (H.264: libx264, H.265/HEVC: libx265; both 1280×720, 60 fps, 3 seconds, 180 frames)
  • Each exported image was identified by shrinking it and comparing it with the original frames extracted with FFmpeg