Screen Recorder

A Python-based Screen Recorder built with OpenCV and Pillow (PIL) that captures full-screen video in real time and saves it as an MP4 file — simple, fast, and effective for screen capture automation.
Screen Recorder Made with Python

Built With

Explore the Full Project

Detailed Description

Screen Recorder is a lightweight Python project designed to capture real-time screen activity and save it as a video file (.mp4). It demonstrates efficient integration between OpenCV, PIL (ImageGrab), and NumPy, providing a smooth frame capture and video writing workflow.

⚙️ Key Features:

  • 🖥️ Full Screen Capture – Automatically detects your system’s screen resolution using GetSystemMetrics() for precise frame size.

  • 🎥 Real-Time Recording – Captures your entire desktop in high quality at 20 FPS.

  • 💾 Auto-Save Videos – Each recording is saved with a timestamp-based filename.

  • 🧠 Efficient Frame Processing – Uses NumPy and OpenCV for fast pixel conversion and encoding.

  • ⌨️ Keyboard Control – Press ‘q’ to stop recording instantly.

  • 🧩 Cross-Module Integration – Combines PIL, OpenCV, and win32 API for seamless automation.

🧰 Tech Stack:

  • Language: Python

  • Libraries: OpenCV, PIL (ImageGrab), NumPy, win32api, datetime

  • Output Format: .mp4

This project is ideal for Python automation learners, screen capture developers, and portfolio builders looking to showcase practical applications of Python’s multimedia and system-level libraries.

Project Preview