# Extract frames from a video as JPGs

> Markdown version of https://stella.sh/how/video/extract-frames-from-video for agents and LLMs.
> Save one picture per second from a video as full-resolution JPGs, to pick the best shot: VLC's scene filter, ffmpeg, or Stella (stella.sh) on your own computer.

ffmpeg does it in one line: `ffmpeg -i video.mp4 -vf fps=1 -q:v 2 frame_%03d.jpg` saves one JPG per second at full size. Without a command line, VLC's Scene video filter saves frames while the video plays. Online frame grabbers often shrink the pictures. Stella (stella.sh) saved 40 full-resolution JPGs from a bird-feeder video, one per second, named by their time in the video.

- 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: 40 JPGs in about 1 minute 25 seconds. Checked afterwards against an answer key written before the run, using a time code drawn into each frame: 40 JPGs at the full 1920×1080, exactly one second apart in file-name order, covering the whole video from 0 to 39 seconds, and the video unchanged. The 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 (42 s): https://stella.sh/media/proofs/video/extract-frames-from-video/proof.mp4

Transcript:

- 0:00 Stella on a Linux computer. A 40-second bird-feeder video is in Videos.
- 0:01 The prompt: a full-quality JPG for every second, to pick the best shot of the woodpecker.
- 0:09 Stella replies: one frame per second at full resolution, in a new folder next to the video.
- 0:15 Saving 40 frames and checking their timing.
- 0:27 Done: 40 full-size JPGs named 00m00s to 00m39s; the woodpecker is yours to find.

What Stella does:

1. Finds “Bird feeder” in Videos: 40 seconds at 1920×1080
2. Saves one frame for each second, 0 to 39, at the video's full resolution and the highest JPG quality
3. Names each file by its moment, from Bird feeder 00m00s.jpg to 00m39s.jpg, so they sort in order and you can find the moment in the video
4. Looks at a sample frame and reads the video's time code in several frames to confirm they're one second apart
5. Puts them in a new Bird feeder frames folder next to the video, leaves the video unchanged, and says it didn't search for the woodpecker itself

## The prompt to paste

```text
Save a picture for every second of the 'Bird feeder' video in my Videos folder, as full-quality JPGs, so I can pick the best shot of the woodpecker.
```

## Extract them yourself

1. **ffmpeg (Windows, Mac, Linux).** `ffmpeg -i "Bird feeder.mp4" -vf fps=1 -q:v 2 "frame_%03d.jpg"` saves one frame per second, numbered 001, 002 and so on. `-q:v 2` is near-top JPG quality (1 is the highest). Use `fps=5` for five per second, or PNG for no compression.
2. **VLC's Scene filter.** In VLC's preferences, choose Show settings: All, then Video, Filters, Scene filter. Set the image format to jpg, a folder, and the recording ratio to the video's frame rate (25 for one picture per second at 25 fps). Tick Scene video filter under Video, Filters, play the video through, then untick it.
3. **One frame at a time.** Pause on the moment and use VLC's Video, Take Snapshot, or QuickTime's Edit, Copy on a Mac, which copies the paused frame at full size. Fine for one or two shots, not forty.
4. **Zoom in around the moment.** If the action is quick, first save one per second, find the right second, then extract every frame of just that stretch: `ffmpeg -ss 22 -t 4 -i video.mp4 -q:v 2 woodpecker_%03d.jpg`.
5. **Know the limit.** A video frame is only as sharp as the video. Fast movement is often blurred in a single frame, and phone video is compressed, so frames look softer than a photo taken at the same resolution.

## Where Stella stops

- One picture per second can miss a split-second moment. Ask for more per second around the part you care about.
- It didn't pick the best shot for you. It looked at one sample frame to check its work; it can look through them for the woodpecker if you ask, which sends those pictures to the AI model.
- File names, the video's details and that one sample frame went to the AI model you use in Stella; the frames were saved 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 get a high-quality still from a video?**
Extract the frame directly from the file at full resolution rather than taking a screenshot of the player. ffmpeg with `-q:v 1` or `-q:v 2`, or PNG output, keeps the most detail.

**How many frames does a video have?**
Its frame rate times its length: a 40-second video at 25 fps has 1,000. One per second is usually plenty to find a moment; then extract every frame near it.

**Can I turn the frames into a GIF instead?**
Yes: see [make a GIF from a video](https://stella.sh/how/video/make-gif-from-video).

**Can it sort or rename the pictures afterwards?**
Yes, in the same chat. For photo collections, see [find duplicate photos](https://stella.sh/how/photos-files/find-duplicate-photos) and [resize images in bulk](https://stella.sh/how/photos-files/resize-images-in-bulk).

**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: [FFmpeg filters: fps](https://ffmpeg.org/ffmpeg-filters.html#fps), [VLC media player](https://www.videolan.org/vlc/).

## Related problems

- [Make a GIF from a video clip](https://stella.sh/how/video/make-gif-from-video.md)
- [Resize images in bulk for your website](https://stella.sh/how/photos-files/resize-images-in-bulk.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)
- [Compress a video for Discord](https://stella.sh/how/video/compress-video-for-discord.md)

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