littletry/video-frame-custom

Extract the first, last, middle, specific, or evenly spaced frames from a video.

Public
8 runs

Video Frame Extractor

Extract the first, last, middle, specific, or evenly spaced frames from a video.

Supports:

  • First, last, and middle frame extraction
  • Specific single or multiple frame numbers
  • Uniform sampling of up to 32 frames
  • JPEG and PNG output

The model returns an array of image URLs. Even when extracting one frame, the result is a one-item array.

For a representative preview, use uniform mode with num_frames: 5.

Frame sampling may miss content that appears for only a few frames. Codec support depends on OpenCV and FFmpeg.

This is an independent implementation inspired by lucataco/cog-frame-extractor. It is not affiliated with or endorsed by the upstream author.

Model created
Model updated