Screen Recorder SDK
Library to take screenshots and record videos
I use Desktop Duplication API to capture desktop and Media Foundation API to record video.
For screenshots it cuts process window from desktop while for videos it captures full display without cutting for better performance
System Requirements
- Windows >= 10, it may work on Windows 8.1 and Windows Server 2012, but we don't ensure it
- DirectX, you can install it from Microsoft Website
- Media Feature Pack, download it here
- 64 bits Java or Python, we don't provide x86 libs
Installation
First option is:
git clone https://github.com/Andrey1994/screen_recorder_sdk
cd screen_recorder_sdk
cd python
pip install .
ALso you can install it from PYPI:
pip install screen_recorder_sdk
Simple Sample
import sys
import time
import numpy
from screen_recorder_sdk import screen_recorder
def main ():
screen_recorder.enable_dev_log ()
pid = int (sys.argv[1]) # pid == 0 means capture full screen
screen_recorder.init_resources (pid)
screen_recorder.get_screenshot (5).save ('test_before.png')
screen_recorder.start_video_recording ('video1.mp4', 30, 8000000, True)
time.sleep (5)
screen_recorder.get_screenshot (5).save ('test_during_video.png')
time.sleep (5)
screen_recorder.stop_video_recording ()
screen_recorder.start_video_recording ('video2.mp4', 30, 8000000, True)
time.sleep (5)
screen_recorder.stop_video_recording ()
screen_recorder.free_resources ()
if __name__ == "__main__":
main ()
Metadata
Release files for screen-recorder-sdk 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| screen_recorder_sdk-1.3.0-py3-none-any.whl | Python 3 | none | any | Details for screen_recorder_sdk-1.3.0-py3-none-any.whl |
Release files / screen_recorder_sdk-1.3.0-py3-none-any.whl
| Download URL | screen_recorder_sdk-1.3.0-py3-none-any.whl |
|---|---|
| Size | 287.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ec77bf3443303fa609c243acfd043ee4912754466dcb0077fa35cdac7a6bd8e
|
|
BLAKE2b-256 checksum How to use checksums |
ff8c23f1b042c78d683c03e126084a6d6c1dd66a98ed1dc9b902c5e3f30db154
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.8
|
Security for screen-recorder-sdk 1.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.