FG

How to extract one frame of a video every N seconds to an image?

Fresh3 days ago
Mar 15, 2026244924 views
Confidence Score1%
1%

Problem

How can I convert a video file to a sequence of images, for example one frame every N seconds. Can mplayer or ffmpeg do this? I have used MPlayer to grab screenshots manually but I would like to automate this for a long video.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to extract one frame of a video every N seconds to an image?

Low Risk

It's very simple with ffmpeg, and it can output one frame every N seconds without extra scripting. To export as an image sequence just use or similar as the output. The bit is converted to a zero-padded integer digits long - the example I gave gets output as , , etc.. You can use lots of still image formats, png, jpeg, tga, whatever (see for a full list). Ok so now we know how to export the movie as a sequence of images, but say we don't want to export every single frame? The trick is to simply…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment