Imgix APIsVideo APIClipVideo Clip Duration

Video Clip Duration

video-clip-duration

Defines the duration of the clip. Accepts a value in seconds or as a percentage of the video’s total duration.

FormatExample valueBehavior
Seconds10Clip spans 10 seconds
Percentage50%25Clip spans 50% of the video’s total duration

Encoding the % character

Percentage values use a % suffix, which 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.

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 beginning of the video for the specified duration.