Better FFmpeg icon

Better FFmpeg

Run FFmpeg media operations

Generation → Thumbnail(s)

AI-generated

Summary

Extracts one or more thumbnails from a video file using FFmpeg.

Inputs

  • ffmpegPath — Path to FFmpeg binary (or keep as 'ffmpeg' if in PATH)
  • ffprobePath — Path to FFprobe binary (or keep as 'ffprobe' if in PATH)
  • thumbInput (required) — Path to the input video file from which thumbnails are to be generated.
  • thumbMode (required) — The mode of thumbnail extraction: 'single' for one thumbnail at a specified time, or 'interval' for thumbnails at regular intervals.
  • thumbTime — The specific time (in seconds) to extract a single thumbnail — used when thumbMode is 'single'.
  • thumbInterval — The interval (in seconds) at which to extract thumbnails — used when thumbMode is 'interval'.
  • thumbPattern (required) — Output pattern for the thumbnail file(s) (e.g., /tmp/frame_%03d.png).
  • thumbFormat — The image format of the extracted thumbnails, either 'png' or 'jpg'.

Output shape

a list of file paths to the generated thumbnail images.

If 'thumbMode' is set to 'single', only one thumbnail is generated. If set to 'interval', multiple thumbnails may be produced, corresponding to the interval specified.

Examples

Example 1: Generate a single thumbnail from a video at the 10-second mark.

Set thumbInput to '/path/to/video.mp4', thumbMode to 'single', thumbTime to 10, thumbPattern to '/output/path/thumbnail.png', and thumbFormat to 'png'.

Example 2: Create thumbnails every 5 seconds from a video.

Set thumbInput to '/path/to/video.mp4', thumbMode to 'interval', thumbInterval to 5, thumbPattern to '/output/path/thumbnail_%03d.jpg'.

Discussion