If you want second-wise, you can divide the code and check for the first frame of every second (Frames per second)

video = cv2.VideoCapture("INPUT.MOV")
  
try:
    # creating a folder named data
    if not os.path.exists('secondWiseData'):
        os.makedirs('secondWiseData')

except OSError:
    print ('Error: Creating directory of data')

currentframe = 0

#Check the version of opencv you are using
# Find OpenCV version

(major_ver, minor_ver, subminor_ver) = (cv2.__version__).split('.')

# if int(major_ver)  < 3 :
fps = int(video.get(cv2.cv.CV_CAP_PROP_FPS))
#Else    
fps = int(video.get(cv2.CAP_PROP_FPS))

#The FPS generated could be decimal as well. We get its greatest interger function by casting to int().

print('The FPS of the video is ', str(fps))
time_start=time.time()
    
while(True):
      
    # reading from frame
    ret,frame = cam.read()
  
    if ret:
        # if video is still left continue creating images
        name = './secondWiseData/frame' + str(currentframe) + '.jpg'
        
        if currentframe % fps == 1: 
            print ('Creating...' + name)
            cv2.imwrite(name, frame)
            currentframe += 1
            continue
        else:
            currentframe += 1
            continue
  
        # increasing counter so that it will
        # show how many frames are created
        
    else:
        break

time_end=time.time()
print('Total time taken is ', time_end-time_start)    
print('Total frames are ', currentframe)

#Release all space and windows once done
cam.release()
cv2.destroyAllWindows()

This will give you the frames of every second in the video considered.

Answer from Kavya Goyal on Stack Overflow
๐ŸŒ
Reddit
reddit.com โ€บ r/computervision โ€บ extracting distinctive frames from video
r/computervision on Reddit: Extracting distinctive frames from video
March 17, 2022 -

For a project, I want to extract unique/distinctive frames from youtube videos. I tried filtering based on cosine similarity but this took forever and did not really work so well. Is there a technique to filter out the redundant/duplicate frames from a video and only keep one of every unique frame?

Discussions

performance - Python - Get Unique frames of video containing object - Code Review Stack Exchange
3 Unique nucleotide permutations, Python itertools product ยท 4 Temporal kernel filtering on video frames coming in a loop ... Is R' Y.E. Henkin's Teshuvos Ivra volume 2 available online? ... The singularity is..... nie? ... KeyError: 'image' when using with_transform on imagefolder dataset from ... More on codereview.stackexchange.com
๐ŸŒ codereview.stackexchange.com
January 21, 2021
How to extract unique frames from a credit roll
Just count how many frames it take for one line to scroll from bottom to top and then use the framestep-filter to skip that many frames. More on reddit.com
๐ŸŒ r/ffmpeg
7
1
October 10, 2020
Extracting distinctive frames from video
You could use image embeddings, generated by a cnn. Then use them to ascertain similarity. Have a look at FiftyOne, it has some useful tools. https://voxel51.com/docs/fiftyone/tutorials/uniqueness.html More on reddit.com
๐ŸŒ r/computervision
7
8
March 17, 2022
I made a web tool for video files that lets you extract frames manually, at intervals, with scene-detection or as a grid - and it runs locally in your browser
Hey! I asked how people took screenshots of video files (if they had to). And the answer varied, always leading to an improper or a lengthy process (snipping tool, screenshot crop in Paint, etc.) I was the same! So I decided to make a tool for that and it just evolved into more. The web tool is open source and runs locally in your browser, with no cloud reliance - GitHub Try it here: https://pilko.studio It doesn't support raw .mov -files, but I'm curious to know if it can still serve you or how you use it. More on reddit.com
๐ŸŒ r/vfx
48
64
July 14, 2025
People also ask

Can I extract several frames from the same video?

Yes, after exporting the first frame, return to the timeline and move the playhead to another moment. Select Export Current Frame again and repeat the process for every still you need. You don't have to import the original video again or create a separate project for each image.

๐ŸŒ
flixier.com
flixier.com โ€บ home โ€บ tools โ€บ video to photo converter โ€บ extract frames from video
Extract Frames from Video Online | Easy and Fast - Flixier
Which video formats can I extract frames from?

Flixier works with common video formats, including MP4, MOV, MKV, WMV, and WebM. Import your file, add it to the timeline, and select the moment you want to save.

๐ŸŒ
flixier.com
flixier.com โ€บ home โ€บ tools โ€บ video to photo converter โ€บ extract frames from video
Extract Frames from Video Online | Easy and Fast - Flixier
What does it mean to extract a frame from a video?

Extracting a frame means choosing one image from a video and saving it as a separate file. In Flixier, the exported frame is downloaded as a PNG without the editor interface or playback controls. You can then use it independently in a thumbnail, document, presentation, or social post.

๐ŸŒ
flixier.com
flixier.com โ€บ home โ€บ tools โ€บ video to photo converter โ€บ extract frames from video
Extract Frames from Video Online | Easy and Fast - Flixier
๐ŸŒ
Shotstack
shotstack.io โ€บ home โ€บ learn โ€บ use ffmpeg to extract frames from video
Use FFmpeg to extract frames from video โ€” Shotstack
March 26, 2024 - Learn how to extract frames from a video using FFmpeg. Extract the first frame, a specific frame or a sequence of frames and save them as images.
๐ŸŒ
Stack Exchange
codereview.stackexchange.com โ€บ questions โ€บ 255068 โ€บ python-get-unique-frames-of-video-containing-object
performance - Python - Get Unique frames of video containing object - Code Review Stack Exchange
January 21, 2021 - import cv2 from skimage.metrics import structural_similarity as ssim import timeit MATCHES = [ { 'img': cv2.imread('spotify_play.jpg', cv2.IMREAD_GRAYSCALE), 'name': 'spotify', 'bounds': [.8, .94] }, { 'img': cv2.imread('apple_play_2.jpg', cv2.IMREAD_GRAYSCALE), 'name': 'apple', 'bounds': [.7, .82] } ] def time_method(func): def wrapper(*args): start = timeit.default_timer() val = func(*args) elapsed = timeit.default_timer() - start print(f'Elapsed time of {func.__name__}:', elapsed) return val return wrapper @time_method def get_music_frames(file, matches, min_sim=0.5): video = cv2.VideoCaptu
๐ŸŒ
Medium
varunmittal50.medium.com โ€บ advanced-key-frame-extraction-from-video-cf1c715db2d3
Advanced Key Frame Extraction from Video | by Varun Mittal | Medium
May 25, 2020 - This post is regarding the advanced and very useful feature of extracting key frames from a video. I will be explaining the steps that have been used to make an advanced process of key frame extraction and will share the python code in the end. The use case for which we were developing this code was to extract all unique highest quality frames from a video for the purpose of moderation and that too in a time optimised way.
๐ŸŒ
DataFlair
data-flair.training โ€บ blogs โ€บ opencv-extract-frames-from-video
OpenCV Project - Extract Frames from a Video - DataFlair
June 1, 2026 - In computer vision and image ... of the video as a whole. OpenCV is a popular library that provides powerful tools to extract individual frames from a video and save them as separate image files....
Find elsewhere
๐ŸŒ
Flixier
flixier.com โ€บ home โ€บ tools โ€บ video to photo converter โ€บ extract frames from video
Extract Frames from Video Online | Easy and Fast - Flixier
April 10, 2024 - Move the playhead to the right part of your video, then use the arrow keys to go through frames individually. This gives you more control when choosing a clear facial expression, a product detail, a presentation slide, or an important step from ...
๐ŸŒ
Reddit
reddit.com โ€บ r/ffmpeg โ€บ how to extract unique frames from a credit roll
r/ffmpeg on Reddit: How to extract unique frames from a credit roll
October 10, 2020 -

From a credits roll video file like this:

https://i.stack.imgur.com/VM0SG.gif

How can I extract unique frames with ffmpeg? With unique frames I mean next image should start where exactly previous one ended.

Main goal is to then combine them together into one image file which will include all the credits in the roll in one image and I already know how to do with vstack filter. But extracting the required images is the problem.

Thanks.

๐ŸŒ
Wondershare Filmora
filmora.wondershare.com โ€บ home โ€บ video editing tips โ€บ how to extract frames from video with high quality and save to images
3 Ways to Extract Frames From Videos (Online & Free & High Quality)
2 weeks ago - For the best results, an app to extract frames from video like Wondershare Filmora gives you ultimate control. As a powerful video editor for Windows and macOS, Filmora not only works as a high-precision video frame extractor but also allows ...
๐ŸŒ
Cloudinary
cloudinary.com โ€บ home โ€บ how to extract frames from video in python
How to Extract Frames from Video in Python | Cloudinary
February 19, 2026 - We specify a list of timestamps (in seconds) where we want to extract frames. Using a loop, we call the VideoFileClip() method for each timestamp. This method saves the frame at the specified time as a PNG image in the output directory.
๐ŸŒ
Frame Extractor
frame-extractor.com
Video Frame Extractor
Online video frame extraction tool that doesn't require file upload to any server.
๐ŸŒ
VidShift
vidshift.io โ€บ video frame extractor
Video Frame Extractor - MP4 Video to Frames, No Upload
If you want one moving image rather than a folder of stills, VidShift doubles as a GIF maker from video and returns a single animation from the same clip. For a frame-perfect burst - say every single frame of a two-second moment - cut the clip down first, then step through it in Manual mode. The video frame extractor reads every container and codec your browser can decode, including MP4 (H.264, H.265, AV1), MOV, MKV, WebM (VP8, VP9, AV1), OGV, M4V and MPEG-TS.
๐ŸŒ
IEEE Xplore
ieeexplore.ieee.org โ€บ document โ€บ 503915
Extraction of high-resolution frames from video sequences | IEEE Journals & Magazine | IEEE Xplore
The human visual system appears to be capable of temporally integrating information in a video sequence in such a way that the perceived spatial resolution of a sequence appears much higher than the spatial resolution of an individual frame. While the mechanisms in the human visual system that do this are unknown, the effect is not too surprising given that temporally adjacent frames in a video sequence contain slightly different, but unique, information.
๐ŸŒ
VideoProc
videoproc.com โ€บ video-editor โ€บ extract-frames-from-video.htm
5 Easiest Way to Extract Frames from Video with High Quality
January 14, 2026 - Extraction Speed: Fast and stable processing is important when dealing with long or high-resolution videos. Batch Capability: The ability to extract multiple frames or entire sequences saves time. Enhancement Options: Optional AI upscaling or sharpening can improve frames taken from low-quality videos.
๐ŸŒ
Videotoframes
videotoframes.com
Video to Frames - Extract Frames from Videos Online
Select your video file from your device or drag and drop it into Video to Frames. We support all common video formats including MP4, MOV, AVI, WebM, and more. Your video stays completely private on your device. ... Choose your desired FPS (frames per second) or extract all frames from your video.
๐ŸŒ
ezgif
ezgif.com โ€บ video-to-jpg
Video to JPG (image sequence) converter
Extract individual frames from video files as a sequence of JPG (JPEG) images. Split any video format - MP4, WebM, AVI, MOV, MKV, and more - into individual still images at your chosen frame rate (1-30 FPS) and resolution (up to 1920px Full HD).
๐ŸŒ
FlexClip
flexclip.com โ€บ learn โ€บ extract-frames-from-video.html
Extract Frames from Video with 5 Free Video Frame Extractors
Also Interested: How to Remove Unwanted Objects from Video>> FlexClip makes it easy to extract frames from video. Simply upload your video to the timeline, select the exact frame you want, and right-click to export it as a high-quality image. No software downloads, no editing skills, and no ...
๐ŸŒ
YouTube
youtube.com โ€บ watch
How to Extract Frames from a Video using VLC
Enjoy the videos and music you love, upload original content, and share it all with friends, family, and the world on YouTube.
๐ŸŒ
UTILS
frame.utils.com
Extract Video Frame - utils.com
This online utility is a video frame extraction tool that lets a user input a video (either by uploading a file or loading from a URL), navigate frame-by-frame, and download specific frames as images.