Kanto Labs
Video to GIF & WebP Preview icon

Video previews · Apify actor

The best seconds of any video file as a looping GIF or WebP

Send links to your video files and get back short looping animated GIF and WebP previews, an optional muted MP4 loop and a JPEG thumbnail for each one. In auto mode the tool picks the most active, sharp, non-black seconds for you; you can also cut your own clip or get one preview per scene. Set a file-size target, such as under 2 MB for email or Slack, and it is met automatically.

$0.014 per previewFailed inputs are free

What it does

Video to GIF & WebP Preview, in short

  • Three modes: auto (the liveliest span, or the N best), clip (your start and length) and scenes (one preview per scene)
  • GIF with a per-clip colour palette, animated WebP (about 10× smaller than the GIF) and a muted H.264 MP4 loop
  • A file-size target met by reducing colours, quality, frame rate and width in that order
  • Width and frame rate are yours (default 480 px, 12 fps); the source is never upscaled
  • One price covers every format you ask for and the thumbnail
  • Direct file links, pre-signed bucket URLs and Dropbox or Google Drive share links; video platform pages are refused

Who it's for

Built for

Video libraries and course platformsHover previews and thumbnails-in-motion.
Newsletters, Slack, docs and READMEsGIFs where video does not play, under a size you set.
Fast web pagesAnimated WebP instead of heavy GIFs.
Review tools and asset managersScene previews of long recordings, trailers and ads.

Example

Input and output

One dataset row per result, downloadable as JSON, CSV or Excel, or read through the Apify API.

Input
{
  "videoUrls": ["https://your-bucket.s3.amazonaws.com/demo.mp4"],
  "mode": "auto",
  "clipSeconds": 3,
  "formats": ["gif", "webp"],
  "width": 480,
  "fps": 12,
  "maxFileSizeMb": 2
}

From the README's output example, shortened.

Output (one row)
{
  "fileName": "sample-creative-ad.mp4",
  "status": "ok",
  "previewIndex": 1,
  "mode": "auto",
  "thumbnailUrl": "https://api.apify.com/v2/key-value-stores/.../records/...-p1-00015000ms-thumbnail.jpg",
  "gifUrl": "https://api.apify.com/v2/key-value-stores/.../records/...-p1-00015000ms.gif",
  "gifSizeBytes": 1888299,
  "webpUrl": "https://api.apify.com/v2/key-value-stores/.../records/...-p1-00015000ms.webp",
  "webpSizeBytes": 194310,
  "width": 480, "height": 270, "fps": 12, "durationSeconds": 3.0,
  "sourceStart": 15.0, "sourceEnd": 18.0,
  "sizeTargetMet": true,
  "selection": { "reason": "Most active, sharp, non-black span of 6 candidate windows.", "score": 0.88 },
  "billedPreviews": 1
}

Pricing

Pay per result. Failures are free.

$0.014preview · $14.00 per 1,000

No subscription, no monthly minimum. Apify platform compute is included in the price; Apify also adds a tiny start fee per run ($0.00005 per GB of run memory).

Example costs
You runYou pay
200 product videos, one auto preview each$2.80
A 40-minute webinar, 10 scene previews$0.14
One preview in GIF + WebP + MP4$0.014
Worked example. You make one auto preview for each of 200 product videos; 4 links are dead.196 × $0.014 = $2.744
4 failed downloads = $0.00

Not charged:

  • Refused links, failed downloads and files that are not videos
  • Damaged or black videos and a start time beyond the end
  • Previews skipped because of your max cost per run

No per-minute or platform-usage charge: the price does not depend on the video's length. You can set Maximum cost per run in the run options and the actor stops cleanly when it is reached.

FAQ

Questions

How do I make a GIF under 2 MB for email or Slack?

Set maxFileSizeMb: 2. Each file is re-encoded until it fits; encoding shows the final width, fps and colours.

Which video formats work?

Anything ffmpeg reads: MP4, MOV (iPhone, with rotation), WEBM, MKV, AVI, OGV, MPEG-TS, and animated GIF input.

Can it read YouTube or TikTok links?

No. Platform pages are refused because their terms forbid downloading. Link your own file.

What are the limits?

Previews up to 30 s each, no sound. Portrait videos and busy footage make large GIFs (use the WebP). Auto mode prefers motion over meaning; use previewCount: 3 for alternatives.

Try Video to GIF & WebP Preview on Apify

Apify's free plan includes monthly platform credit you can use to try it.

Run it on Apify