Imgix APIsVideo APISpritesheetsVideo Spritesheet Interval

Video Spritesheet Interval

video-spritesheet-interval

Controls how frequently frames are sampled from the video when generating a spritesheet, in seconds. A lower value produces more thumbnails and a larger spritesheet; a higher value produces fewer thumbnails and a smaller file.

When set to auto (the default), Imgix calculates a suitable interval based on the video duration so that the spritesheet remains a manageable size.

Use this parameter together with fm=spritesheet or fm=vtt. When using fm=vtt, the presence of this or any video-spritesheet-* parameter is what switches fm=vtt from subtitle mode to spritesheet metadata mode.

The examples below show a spritesheet generated at a 5-second interval compared to a 10-second interval from the same video.

fm=spritesheet&video-spritesheet-interval=5
sandbox-demo
fm=spritesheet&video-spritesheet-interval=10
sandbox-demo