Experiment No:11
Mini Project
(Screen Recorder)
Aim : To build Screen Recorder using python
Procedure:
Module Needed
Required Modules:
1. time: This is a built-in Python
module to work with time-
related tasks.
2. Plyer: This module helps
access hardware features,
like sending notifications. To
install it, use the command:
Command:- pip install plyer
Approach:
Import the necessary libraries.
Define a function to send notifications using Plyer.
Capture and record the screen using PyAutoGUI and save the frames as a
video file using OpenCV.
Send a notification when the recording starts and stops..
Input code:
Output code :
Conclusion:
The provided Python script allows you to easily create a
basic screen recorder that captures the screen and saves it
as a video using PyAutoGUI and OpenCV. It also sends
desktop notifications using Plyer to inform the user when the
recording starts and stops. By following this approach, you
can build a simple screen recording tool in Python with
minimal setup.