Format

These parameters control the output format of your video.

Use case

Deliver transcoded video for websites, apps, and direct browser playback

fm=mp4 transcodes to H.264 by default — the most compatible format for embedding in web pages, native apps, and media players. Imgix auto quality selects the best compression settings for the content type.
https://assets.imgix.net/Croatia.mp4?fm=mp4

Animated Images

Imgix Video can render a short looping animation from any video source. The output format and the “make it animated” instruction are independent: video-generate=animation switches on animated output, and fm picks the format. This is the preferred form — it composes cleanly across every supported format.

RequestOutput
fm=gifAnimated GIF (shorthand)
fm=webp&video-generate=animationAnimated WebP
fm=avif&video-generate=animationAnimated AVIF
fm=png&video-generate=animationAnimated PNG (APNG)

All animated outputs share the same defaults and hard caps to keep file sizes manageable:

  • Duration: default 5 s, max 10 s — use video-clip-duration to control length
  • Frame rate: default 15 fps, max 30 fps — use fps to control
  • Dimensions: default 320 px on the unset axis, max 640×640
  • Looping: loops forever by default — use video-loop to play a set number of times

WebP and AVIF are full-color and substantially smaller than GIF. Use fm=gif only when you need maximum compatibility.

Use case

Generate a compact, full-color looping animation for web use

fm=webp&video-generate=animation produces an animated WebP — full-color and significantly smaller than an equivalent GIF. Use video-clip-start and video-clip-duration to clip the source to the desired segment.
https://assets.imgix.net/Croatia.mp4?fm=webp&video-generate=animation&video-clip-duration=5&w=480