·5 min read

How to Extract Every Nth Frame from a Video (Batch Frame Export)

Need one frame per second from a 10-minute video? Or every 5th frame for a time-lapse review? Here is how to batch-extract frames at regular intervals.

Sometimes you need not one frame but many frames extracted at regular intervals. A scientist analyzing animal behavior needs one frame per second from a 30-minute observation video (1,800 frames). A quality control inspector needs a frame every 5 seconds from a manufacturing line recording. A time-lapse creator wants every 30th frame from real-time footage to create a speed-up effect.

Batch frame extraction automates this process. Instead of manually scrubbing to each timestamp, you specify an interval and the tool exports all the frames at once.

Common interval patterns

One frame per second (1 fps extraction): Produces 60 frames per minute of video. Useful for analysis, surveillance review, and creating image sequences for presentations.

One frame per N seconds: For longer videos where one frame per second produces too many images. Extracting every 5 seconds from a 1-hour video produces 720 frames instead of 3,600.

Every Nth frame: Instead of time-based intervals, extract based on frame count. "Every 10th frame" from a 30fps video gives you 3 frames per second. This is common for animation analysis and motion studies.

Keyframes only: Extract only the I-frames (keyframes) from the video. This produces one frame per GOP (typically every 2-5 seconds). The advantage is that keyframes are the sharpest frames because they are fully encoded without inter-frame compression artifacts.

File naming and organization

Batch extraction can produce hundreds or thousands of files. Organized naming is essential:

  • frame-0001.jpg, frame-0002.jpg, frame-0003.jpg (sequential numbering)
  • frame-00m00s.jpg, frame-00m01s.jpg (timestamp-based naming)
  • frame-001-00m00s.jpg (combined sequence number and timestamp)

Zero-padded numbers (0001 vs 1) ensure correct alphabetical sorting in file explorers. Without padding, frame-10 sorts before frame-2 in most file systems.

Disk space considerations

Batch extraction can use significant disk space. A 1080p frame as JPG (quality 95) is approximately 200-400 KB. Extracting one frame per second from a 1-hour video produces 3,600 frames totaling 720 MB to 1.4 GB.

As PNG (lossless), each frame is 2-5 MB, and the same extraction produces 7-18 GB. Choose JPG for batch extractions unless you specifically need lossless quality.

Creating image sequences for video editing

Image sequences (numbered frames) are a common interchange format in professional video editing. Tools like After Effects, DaVinci Resolve, and Blender can import numbered image sequences and treat them as video clips. This workflow is used for:

  • Visual effects (VFX artists work on individual frames)
  • Frame-by-frame color correction
  • Frame interpolation (creating intermediate frames for slow motion)
  • Converting between video formats that do not share common codecs

The MediaBrew frame extraction tool batch-extracts numbered image sequences at any interval (every N seconds or every Nth frame), saving the output files directly to your device without cloud processing.

Try it yourself

Use the free MediaBrew Extract Frames tool - no account, no upload, runs in your browser.

Extract Frames

More guides