Use FFMPEG to Extract an Image from a Video Every N Seconds

I have videos from which I need to extract a screenshot of the video every 5 seconds. So I need a screenshot of the video at 00:05, 00:10, 00:15, and so on.

This can be accomplished using the following command with FFMPEG.

$ ffmpeg -i video.mp4 -vf fps=1/5 -qscale:v 2 video-%d.jpg

FFMPEG itself cannot use wildcards for the file names, so it cannot be used by itself to automatically run this process on every MP4 in a directory. However, it would be fairly easy to write a script that would accomplish this in Bash or Python.

Fireshot FTW

I’ve had the Fireshot screenshot extension installed in Firefox for a long time now, but I mostly used it just to take the occasional shot of some web page or another in my browser and never really investigated its feature set. Holy cow.

Like a lot of screenshot utilities these days, Fireshot will take a screenshot of a webpage, including the portions not visible on the screen. Nothing real special there.

What kicks it up a notch is that Fireshot can take a full screen shot of every open tab! Hell yeah. Yes, I have a series of 27 or so pages I want to take a screen shot of every day. So, open a new Firefox browser, open all those pages, bookmark them as a group, then its just a matter of opening that bookmark and telling Fireshot to please take screenshots of all of them. Gone in 60 seconds.