FFmpeg.wasm icon

FFmpeg.wasm

Process audio and video files using FFmpeg.wasm

Thumbnail

AI-generated

Summary

Extract a single-frame JPEG thumbnail from a video at the specified timestamp.

Inputs

  • binaryPropertyName — Name of the binary property containing the input file
  • outputBinaryPropertyName — Name of the binary property to store the output file
  • timestamp (required) — Timestamp to extract thumbnail (HH:MM:SS or seconds)
  • thumbnailWidth — Thumbnail width in pixels
  • thumbnailHeight — Thumbnail height in pixels (-1 for auto)
  • additionalOptions — Additional execution options

Output shape

Binary property containing the extracted JPEG thumbnail image, with filename, size, and MIME type metadata.

Output format is fixed to JPEG (.jpg). The FFmpeg command seeks to the timestamp, extracts one frame (-vframes 1), uses quality scale q:v 2, and scales to the specified dimensions.

Examples

Example 1: Generate a 320x240 thumbnail from a video at 00:00:05

Set timestamp to '00:00:05', thumbnailWidth to 320, thumbnailHeight to 240, and use default binary property names.

Links

Discussion