Get the latest tech news
Generate video sprites using just FFmpeg
Learn how to create video sprites with just FFmpeg — perfect for lightweight video previews. The following is an example of a video preview of the Big Buck Bunny video using a sprite sheet generated from Ffmpeg.
Save the following shell script as sprite.sh, and update the permissions so you can execute it (ie. pad=width=max(iw\,ih*(16/9)):height=ow/(16/9):x=(ow-iw)/2:y=(oh-ih)/2 This pads the frame into a 16:9 aspect ratio and centres it. Once combined with some basic CSS and JS, the scrubbing preview seen at the start of this article can be achieved.
Or read this on Hacker News