video-frame-extraction

Extract frames from video files and save them as images using OpenCV.

4|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill video-frame-extraction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: video-frame-extraction
Source: https://github.com/GeneralReasoning/env-skillsbench/tree/main/jpg-ocr-stat/environment/skills/video-frame-extraction
Command: npx skills add https://github.com/GeneralReasoning/env-skillsbench --skill video-frame-extraction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Extract frames from video files and save them as images using OpenCV, enabling quick analysis, dataset creation, and preprocessing for computer vision tasks.

Core Features & Use Cases

  • Frame extraction from common formats (MP4, AVI, MOV, MKV, etc.) into image files
  • Support for interval-based sampling and selective frame ranges (start_frame to end_frame)
  • Flexible output formats (e.g., JPEG, PNG) and basic metadata generation for downstream workflows

Quick Start

Run the video-frame-extraction skill on a video file to save frames as JPEG images in your specified output directory.

Frequently Asked Questions about video-frame-extraction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract frames from a video for dataset creation?

To extract frames for dataset creation, use this skill to read video files with OpenCV and save frames as images in an output directory. It supports interval-based sampling and selective frame ranges.

Can I extract frames from an MP4 video at a specific interval?

Yes, you can extract frames from MP4 videos at a specific interval. The skill provides optional interval controls alongside start_frame and end_frame parameters for selective sampling during video frame extraction.

What is the best way to convert video frames to images for computer vision preprocessing?

The best way to convert video frames to images for computer vision preprocessing is using OpenCV to read source files and save frames as JPEG or PNG images. This skill handles the extraction and generates basic metadata for downstream workflows.

Do I need Python and OpenCV to extract frames from MOV and AVI files?

Yes, you need Python with OpenCV installed to extract frames from MOV and AVI files. The skill also requires read permissions on source videos and write permissions on the output directory to save the extracted images.

Does video frame extraction support saving images in different output formats?

Yes, video frame extraction supports flexible output formats such as JPEG and PNG. You can configure the output_format control to specify the image type when saving frames from common video formats like MKV and MP4.

How do I extract a specific range of frames from a video file?

To extract a specific range of frames from a video file, use the start_frame and end_frame controls provided by the skill. This allows selective frame extraction for targeted video analysis without processing the entire video.