Imgix APIsVideo APIClipVideo Clip Duration

Video Clip Duration

video-clip-duration

Defines the duration of the clip in seconds.

Can be used in conjunction with video-clip-start to set the start time of the clip.

When no other video-clip-* parameters are specified, the video will play from the start time to the length of the specified duration in seconds.

Percentage Offsets

video-clip-duration also accepts a percentage of the video’s total duration instead of an absolute second value. Append a % suffix to the numeric value.

Because % is a reserved character in URLs, it must be percent-encoded as %25 in query strings. A value of 50% is written as 50%25 in the URL.

https://assets.imgix.net/videos/girl-reading-book-in-library.mp4?fm=mp4&video-clip-start=25%25&video-clip-duration=50%25

This clips a segment equal to 50% of the video’s total duration, starting at the 25% mark.