Create a 5x5 Video Thumbnail Sheet Using FFmpeg

This article provides a quick guide on how to extract a 5x5 grid of thumbnail frames from a two-hour movie using the command-line tool FFmpeg. You will learn how to calculate the correct time intervals for a long video, apply the necessary video filters, and output a single, consolidated image containing all 25 tiled frames.

To generate a 5x5 grid, you need exactly 25 frames. For a standard two-hour movie, the total duration is 7,200 seconds (120 minutes × 60 seconds). Dividing 7,200 seconds by 25 frames means you need to extract one frame every 288 seconds.

The FFmpeg Command

Run the following command in your terminal to generate the thumbnail grid:

ffmpeg -i input.mp4 -vf "fps=1/288,scale=320:-1,tile=5x5" output.jpg

Command Breakdown