A small and cross-platform python library for recording screen.
Project description
pyscreenrec
pyscreenrec is a small and cross-platform python library for recording screen.
NO LONGER MAINTAINED.
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", 10)
>>> # 'recording.mp4' is the name of the output video file, may also contain full path like 'C:/Users/<user>/Videos/video.mp4'
>>> # the second parameter(10) is the FPS. You can specify the FPS for the screen recording using the second parameter. It must not be greater than 60.
>>> # 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.3) are:
- Manually set FPS for the screen recording, by an extra
fps
argument instart_recording
method. - Introduced a one more exception class named
InvalidFPS
. - Minor bug fixes.
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.
For further details, view CONTRIBUTING.md.
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
Built Distribution
Hashes for pyscreenrec-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc9c3512fa2da63a3900476da0cd427af1dfc4a0c93b43eb538d3c6f6c730a75 |
|
MD5 | db67ce3d66d18b252b6fb4cba7ce0422 |
|
BLAKE2b-256 | af11ee56da839a3435ff868b68f74aa85b89403629de60b2354d6ab3ab7b9ed1 |