5 Ways to Extract Video Frames and Save to Images

Every video or animation you see on your television, computer, phone, tablet or even at the movie theater is made up from a succession of still images. These images are then played one after the other several times a second which fools your eye into thinking the object is moving. The quicker the images are played, the smoother and more fluid the movement looks.

Most movies and TV programs are filmed at around 24-30 images per second, each individual image is called a frame which is where you see the term frames per second (FPS). A video file on a computer simply stores all the frames together and plays them in order, and the total frames stored for a typical movie reaches into the hundreds of thousands. If you want to capture an image of one or two frames it’s quite easy and you simply pause the video and press the Print Screen key.

If you want to extract a succession or range of frames or even all frames from a short video clip, capturing the images one at a time is incredibly inefficient and time consuming. For that purpose you need a program that can extract however many video frames you want and save them to image files automatically, like jpg or png. Here are 5 ways to do it. 1. Free Video to JPG Converter

Like all DvdVideoSoft products, Free Video to JPG Converter is bundled with Opencandy adware which needs opting out of during installation. This program will save frames from a video file to a sequence of JPG images. There are four extraction methods to choose from, extract an image every number of frames, extract an image every number of seconds, take a total number of frames from the video or extract every single frame.

free video jpg converter

Add any number of video files by using the Add files button or drag and drop, most video formats are supported like MP4, MKV, AVI, VOB, WMV, MOV, FLV and etc. Set your extract criteria and optionally a different save location to the default, then start the process. Extraction times are reasonable and will differ depending on video length and how many frames are being extracted.

There are a few issues with one or two of the preset values or if you enter a custom value in the frame boxes. For instance, the total frames from a video setting of 10 doesn’t produce an expected equal split of 10 frames across the whole video. It’s still a useful tool though and worth checking out because Free Video to JPG Converter is still faster than extracting images in real time.

Download Free Video to JPG Converter

Tip: To avoid the Opencandy adware during install run the installer with the /nocandy switch. Either run the installer from a CMD window with the switch or right click on the installer > Create shortcut. Then right click on the shortcut > Properties and add [space]/nocandy to the end of the line in the Target box.

free video jpg converter nocandy

Launch the shortcut and the setup will install without any adware being offered. Still be careful during install in case DvdVideoSoft change from Opencandy to other adware methods later on.


2. VLC Media Player

VLC is a popular open source media player that can save sequences of images from any video you choose to play. This can be achieved through the main user interface while more advanced users can use Command Prompt. First we’ll deal with the user interface method.

1. If you haven’t already, Download VLC media player and install or Download Portable VLC media player and extract to a folder of your choice.

2. Open VLC, go to Preferences (Ctrl+P) and click on Show All Settings at the bottom left.

3. Expand Video > Filters in the tree and click on Scene Filter. Set the image format (png/bmp/jpg etc), the path to save the files (leave blank to save to your Pictures folder) and the recording ratio. The ratio will save an image every xx number of frames, so if your video is 30 frames per second, a value of 150 will save an image every 5 seconds.

vlc scene video filter

Tip: If you’re not 100% sure of the video’s frame rate, play it in VLC, press Ctrl+J and look for the frame rate number. Using multiples of that value will give you a recording ratio in seconds.

vlc codec framerate

4. Click on Filters in the Advanced Preferences tree and tick the Scene video filter box, press Save.

5. Play the video file and the images will automatically start saving. Note they will continue to save until you press stop, even if you pause or skip through the video.

vlc saved frames

Once you are done saving frames the option needs to be turned off again or it will do the same with every video you play. Follow steps 1 and 3 above then untick the Scene video filter box. The biggest drawback with VLC is that you have to leave the video running while taking the images, for this reason we recommend VLC for shorter clips only unless you plan to watch the video anyway.


3. Extract Images with VLC from the Command Line

Using the Command line to extract image frames with VLC is similar to the GUI method which will save the specified number of frames. Open a Command Prompt and change the directory to where vlc.exe is located, then type in the command below:

vlc.exe "pathtovideo" --video-filter=scene --vout=dummy --start-time=300 --stop-time=600 --scene-ratio=250 --scene-path=”pathtosaveimages” vlc://quit

Pathtovideo is the name and path of the video file, --scene-path is the target folder for the images while --scene-ratio is the frame save interval. An advantage over the GUI method is the ability to use --start-time and --stop-time to start and stop saving frames at specific times (in seconds). Leave those switches out if you want to play the whole video. Refer to the complete list of commands at the Videolan website.

vlc save frames comand line

VLC will run and start the playback but without the screen. Once finished, it will automatically exit.


4. VirtualDub

VirtualDub is a video processing tool that seems to have been around for ever, but it’s still a popular and useful program. The main issue with VirtualDub is lack of support out of the box for opening video files like MKV, MP4 and MOV, but this problem can be rectified by installing the FFMpeg plugin pack. Here’s how to extract video frames to images with VirtualDub.

virtuadub extract frames

1. Download VirtualDub 32-bit version and also the VirtualDub FFMpeg Input Plugin from Sourceforge. Extract both zip archives.

2. Go to the VirtualdubFFMpegPlugin\Plugins32 folder, copy FFInputDriver.vdplugin and the ffdlls folder, then paste both into the VirtualDub\Plugins32 folder.

copy ffmpeg plugins

3. Run Virtualdub.exe and open the video file by using File > Open or drag and drop. If you wish to save every frame of a small video file to images, skip to step 5.

4. Go to Video > Frame rate (Ctrl+R) and select Decimate by, then enter a number to save an image every xx number of frames. The No change option at the top will tell you how many frames per second the current video uses. Click OK.

virtualdub framerate control

5. Click on the File menu > Export > Image sequence. Enter the filename to save as, the folder to save into and the output format of BMP, TGA, JPEG or PNG. Then click OK and VirtualDub will begin to process the video.

virtualdub export image sequence

If the method of extracting every set number of frames is what you are looking for, VirtualDub is by far the best tool to use because it’s incredibly fast to extract the images and much faster than VLC and Free Video to JPG Converter.

An additional option in VirtualDub is setting a specific range inside the video itself so only images between the two points are saved.

virtualdub select range

Before saving at step 5, use the slider and frame controls to set the start range and press the Home key or selection start button (in the red box above), move the slider to the end of the range and press the selection end button or the End key. Now when you save the images, only the selected frames will be saved between the start and end selection points.


5. FFMpeg

FFMpeg is a framework for encoding, muxing, transcoding, streaming and playing video files, and is the backbone of a vast array of video converters and players. It runs only from the command line so is better suited to experienced users. FFMpeg should handle just about any video file you throw at it. Here’s a simple command line argument.

ffmpeg -i videofile.mpg -r 1 image-%04d.jpeg

The -i is the input video file with path and the jpeg filename simply saves jpegs (you can also use png, bmp, tiff etc) with the name and 4 place holding numbers, e.g. image-0001. The -r command is the frames to capture and the reverse of how you would expect it to work. 1 will save a frame every second while 0.5 will save every 2 seconds, 0.2 every 5 seconds, 0.1 every 10 seconds, 0.0167 for 60 seconds and etc. Use 1/seconds in Windows Calculator to get the ratio you need.

ffmpeg extract images

More advanced usage can add a starting point in the video file with the -ss command before -i, while -t can also be used to add a duration. Both use an [hours:]minutes:seconds argument.

ffmpeg -ss 04:00 -t 03:00 -i videofile.mpg -r 0.033 image-%04d.jpeg

ffmpeg extract with times

The above command will start at 4 minutes in, then save a .jpg at 30 second intervals for 3 minutes.

The are hundreds of commands and you really need to read the FFMpeg documentation to understand how it can be fully utilized from the command line and in scripts.

Download FFMpeg


Final Note: There are obviously other tools around that can do a similar task, Batch Video to image Extractor would have been included but it’s quite unstable and has been discontinued by the developer. Daum PotPlayer and GOM Player are media players that work in a similar way to VLC, meaning you have to play the video in real time to get the selected frames.

You might also like:

4 Comments - Write a Comment

  1. VD-problem 3 weeks ago
  2. Rick Cheney 2 months ago
    • HAL9000 2 months ago
  3. alec Jacobs 4 months ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Note: Your comment is subject to approval. Read our Terms of Use. If you are seeking additional information on this article, please ask in our forum or contact us directly.