VideoSailor icon

VideoSailor

Download, transcribe, trim, cut, resize, and add subtitles to videos

Trim

AI-generated

Summary

Trim a video from a specified URL to a defined time segment by providing start and end times in seconds.

Inputs

  • URL (required) — URL of the media to trim; supports platforms like YouTube, TikTok, Instagram, Twitter/X, Vimeo, and 1,000+ other sites.
  • Start Time (seconds) (required) — Start time in seconds indicating where to begin the trim.
  • End Time (seconds) (required) — End time in seconds indicating where to end the trim; must be greater than the start time.

Output shape

a JSON object containing the trimmed video result or metadata about the trim operation

The operation submits an asynchronous job to the VideoSailor API and polls until completion or timeout (up to 15 minutes). On success, it returns the trimming result as JSON. If the end time is not greater than the start time, the operation will error before processing. Errors from the API may include retryability information in the output.

Links

Discussion