# Make a GIF from a video clip

> Markdown version of https://stella.sh/how/video/make-gif-from-video for agents and LLMs.
> Turn five seconds of a video into a smooth GIF small enough for a group chat: Shortcuts on Mac, Clipchamp on Windows, ffmpeg, or Stella (stella.sh) on your computer.

Trim the clip to the seconds you want, then convert it with a good colour palette. On a Mac, QuickTime trims and the Shortcuts app's Make GIF action converts; on Windows, Clipchamp exports clips up to 15 seconds as GIF. ffmpeg does both in one command. Stella (stella.sh) made a GIF of exactly 0:42 to 0:47 of a video at 720 pixels wide and 20 frames a second, at 478 KB.

- Checked: 13 November 2026
- Stella does it on: Windows, Mac, Linux

## Stella doing it

Recorded 13 November 2026 on Linux (Omarchy) with Claude Code with Opus, on a Claude plan.
Result: The GIF in about 1 minute 15 seconds. Checked afterwards against an answer key written before the run, using a time code drawn into the video: an animated GIF of exactly 0:42 to 0:47, 100 frames at 20 per second playing forwards, 720×405 (not squashed), 0.49 MB, and the video unchanged. The park video is a drawn animation made for this run, with a small time code in the corner for checking. The work is sped up 3×.

Video (40 s): https://stella.sh/media/proofs/video/make-gif-from-video/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A 75-second Park day video is in Videos.
- 0:01 The prompt: a GIF of 0:42 to 0:47, under 5 MB for the family group chat.
- 0:09 Stella replies it's cutting 0:42 to 0:47 into a GIF under 5 MB.
- 0:15 Making the GIF, checking frames, and remaking it sharper.
- 0:25 Done: a 478 KB GIF of exactly 0:42 to 0:47, with an offer to run it to 0:48 so the catch has a beat.

What Stella does:

1. Finds “Park day” in Videos and checks its size and frame rate
2. Makes a first GIF of 0:42 to 0:47 at 480 pixels wide, with a palette built from the clip so colours don't band
3. Looks at frames from it and, since it's far under 5 MB, remakes it sharper: 720 pixels wide at 20 frames a second
4. Checks a contact sheet of the frames, saves Park day - Biscuit catches the frisbee.gif next to the video and leaves the video unchanged
5. Reports 478 KB, notes GIFs have no sound, and points out the catch lands at about 0:46.8, offering to run it to 0:48

## The prompt to paste

```text
Make a GIF of the bit in 'Park day' in my Videos folder where Biscuit catches the frisbee, from 0:42 to 0:47. Keep it under 5 MB so I can send it in the family group chat.
```

## Make it yourself

1. **Mac: QuickTime, then Shortcuts.** Open the video in QuickTime Player, choose Edit, Trim, drag the yellow handles to 0:42 and 0:47 and save. In the Shortcuts app, make a shortcut with the Make GIF action fed by that video and a Save File action, then run it.
2. **Windows: Clipchamp.** In Clipchamp (built into Windows 11), add the video to the timeline, split it at 0:42 and 0:47 and delete the rest. Choose Export, then GIF. The clip must be 15 seconds or shorter.
3. **ffmpeg with a proper palette.** `ffmpeg -ss 42 -t 5 -i "Park day.mp4" -vf "fps=15,scale=480:-1:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse" out.gif` builds a palette from the clip itself, so colours look clean instead of blotchy.
4. **Get under the size limit.** Size grows with width, frame rate and length. To shrink a GIF, cut it shorter first, then lower the width (480 or 360 pixels), then the frame rate (12 to 15). Detailed, busy scenes make much bigger GIFs than simple ones.
5. **Consider a short MP4.** Most chat apps play short videos inline, often with better colour, sound and a smaller file than a GIF. Send a GIF when the app or the joke needs one.

## Where Stella stops

- GIFs have no sound and only 256 colours per frame, so gradients can band a little. A short MP4 often looks better where the chat app allows one.
- It cut the times you gave. If the moment lands at the very end, say so and it will extend the clip.
- File names, the video's details and a few frames from the GIF (to check it) went to the AI model you use in Stella; the GIF was made on your computer.
- Recorded on Linux with ffmpeg already installed. On a Mac or Windows PC Stella would usually download ffmpeg first, which isn't shown.

## Questions

**How do I make a GIF from a video on iPhone?**
In Photos, a Live Photo can be set to Loop or Bounce, which shares as a GIF-like animation. For a normal video, the Shortcuts app's Make GIF action works on the phone too.

**Why is my GIF so big?**
GIF compresses poorly. Long clips, full-HD width and high frame rates add up quickly. Keep it to a few seconds at 480 to 720 pixels wide.

**Why does my GIF look grainy or blotchy?**
The converter used a generic 256-colour palette. Building the palette from the clip itself (ffmpeg's palettegen) fixes most of it.

**Can it pull still pictures out instead?**
Yes: see [extract frames from a video](https://stella.sh/how/video/extract-frames-from-video). To make a whole video smaller to send, see [compress a video for Discord](https://stella.sh/how/video/compress-video-for-discord).

**Is Stella free for this?**
Yes. Free with the ChatGPT or Claude plan you already have. Sign in with your ChatGPT plan, or use your Claude plan through Claude Code, and this task costs nothing extra. New accounts also get a small free trial of Stella’s own models.

**Can I control what Stella changes on my computer?**
Yes. Stella works on Windows, Mac and Linux with your own files and shows each step in the chat, so you can watch it and stop it at any point. Tell it what it may not do, as the prompts on these pages do (“don't delete anything without asking”). In the Downloads recording it deleted nothing until it was told to go ahead. It also refuses commands that would wipe a whole disk, your home folder or system folders.

Sources: [Clipchamp: convert a video to a GIF](https://clipchamp.com/en/blog/convert-video-gif/), [FFmpeg filters: palettegen](https://ffmpeg.org/ffmpeg-filters.html#palettegen).

## Related problems

- [Extract frames from a video as JPGs](https://stella.sh/how/video/extract-frames-from-video.md)
- [Compress a video for Discord](https://stella.sh/how/video/compress-video-for-discord.md)
- [Speed up a video without the chipmunk voice](https://stella.sh/how/video/speed-up-video.md)
- [Add burned-in subtitles to a video for TikTok](https://stella.sh/how/video/burn-subtitles-into-video-for-tiktok.md)
- [Cut silences out of a video automatically](https://stella.sh/how/video/cut-silences-from-video.md)
- [Convert MKV to MP4 so your TV plays it](https://stella.sh/how/video/convert-mkv-to-mp4.md)

Get Stella: https://stella.sh/download. Free with the ChatGPT or Claude plan you already have.
