eladg / ffmpeg-by-example

Creative Commons Attribution 4.0 International
8 stars 5 forks source link

Generate a 'tile' thumbnail picture every 30 frames of a video - FFmpeg By Example #42

Open eladg opened 2 years ago

eladg commented 2 years ago

https://www.ffmpegbyexample.com/examples/90permbg/generate_tile_thumbnail_picture_every_30_frames_of_video/

The following command will take any input video, in our case bunny.webm, snap a frame every 30 frames (using the filter select='not(mod(n\,30))'), scale it to 160x120 (using the filter scale=160:120) and organize each frame in a tile using the tile filter.

The tile filter can be used to generate a 'storyboard' image for video player (e.g. on youtube).

The tile filter supports different layouts (i.e. COLUMNSxROWS), padding, margin, background color and more. For full info, see the FFmpeg tile filter documentation.