A small python library to record screen.
Project description
pyscreenrec
pyscreenrec is a small and cross-platform python library to record screen.
Installation
Install on Windows:
pip install pyscreenrec
Install on Linux/macOS:
pip3 install pyscreenrec
Example usage
>>> import pyscreenrec
>>> recorder = pyscreenrec.ScreenRecorder()
>>> # to start recording
>>> recorder.start_recording("recording.mp4") # 'recording.mp4' is the name of the output video file, may also contain full path like 'C:/Users/<user>/Videos/video.mp4'
>>> # to pause recording
>>> recorder.pause_recording()
>>> # to resume recording
>>> recorder.resume_recording()
>>> # to stop recording
>>> recorder.stop_recording()
The stop_recording
saves the video and deletes all screenshots used in the session. So calling
the stop_recording
method is necessary when start_recording
is called.
Known limitations
pyscreenrec is yet not able to:
- capture the system sound during screen recording
- capture only a certain part of the screen
Change Log
Changes made in the latest version (v0.2) are:
- Introduced two new methods:
pause_recording
andresume_recording
which can be used to pause and resume screen recording respectively. - The
timeout
argument of thestart_recording
method is deprecated due to it miscellaneous behavior and clash with ability to pause and resume screen recording. - The screen recording output video is now saved and the screenshots are deleted by
stop_recording
method.
View CHANGELOG for more details.
Contribution
Pull requests are welcome. If you want to make a major change, open an issue first to discuss about the change.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyscreenrec-0.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for pyscreenrec-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e646eaeb35582c98223bd6b16ccc4fa357558ce442acd73e1c5daee1adde5ea |
|
MD5 | 93ea2aaabd370f61ae2b3695f097699e |
|
BLAKE2b-256 | da82ab4699749ffb66fda2e21a968636f2a8a25051b9b5e7c6bf5e2ae82e28d0 |