Skip to main content

Source video for trim, sample, and keyframe examples

Example Usage

Use the Structured Outputs API for structured, validated responses.

1. Video Frame Sampling

Pass an interval or specific timestamps.

Three frames sampled for thumbnails.


2. Video Highlight Extraction

Three extracted highlights.

3. Time-Based Trimming

20-second trim.

FAQ

  • MP4
  • MOV (QuickTime)
  • AVI
  • MKV (Matroska)
  • WebM
  • Trimmed segments keep the source quality.
  • Sample at a fixed interval, such as every 1-5 seconds.
  • Sample keyframes.
  • Sample on scene changes.
  • Set the interval for the analysis you need.
  • Cuts use millisecond timestamps.
  • Cuts align to the nearest keyframe.
  • Cut points are detected automatically.
  • Quality stays without re-encoding when possible.

Try Video Trimming

Trim video and sample frames.