{"id":13826018,"url":"https://github.com/shravanasati/pyscreenrec","last_synced_at":"2025-07-08T22:33:09.255Z","repository":{"id":57456388,"uuid":"338043705","full_name":"shravanasati/pyscreenrec","owner":"shravanasati","description":"A small python library for recording screen.","archived":false,"fork":false,"pushed_at":"2025-05-08T17:32:16.000Z","size":50,"stargazers_count":25,"open_issues_count":1,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T04:51:40.363Z","etag":null,"topics":["capture","hacktoberfest","python","python-library","screen-capture","screen-recording","video"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/pyscreenrec/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shravanasati.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-11T13:56:35.000Z","updated_at":"2025-06-19T17:41:43.000Z","dependencies_parsed_at":"2024-12-01T16:45:27.268Z","dependency_job_id":null,"html_url":"https://github.com/shravanasati/pyscreenrec","commit_stats":null,"previous_names":["shravanasati/pyscreenrec","shravan-1908/pyscreenrec"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shravanasati/pyscreenrec","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravanasati%2Fpyscreenrec","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravanasati%2Fpyscreenrec/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravanasati%2Fpyscreenrec/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravanasati%2Fpyscreenrec/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shravanasati","download_url":"https://codeload.github.com/shravanasati/pyscreenrec/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shravanasati%2Fpyscreenrec/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264360322,"owners_count":23596106,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["capture","hacktoberfest","python","python-library","screen-capture","screen-recording","video"],"created_at":"2024-08-04T09:01:30.840Z","updated_at":"2025-07-08T22:33:09.034Z","avatar_url":"https://github.com/shravanasati.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# pyscreenrec\n\n*pyscreenrec* is a small and cross-platform python library for recording screen.\n\n\n![PyPI Downloads](https://static.pepy.tech/badge/pyscreenrec)\n\n\u003cbr\u003e\n\n## Installation\nInstall on Windows: \n`pip install -U pyscreenrec`\n\nInstall on Linux/macOS: \n`pip3 install -U pyscreenrec`\n\n\u003cbr\u003e\n\n## Example usage\n\n\n``` python\n\u003e\u003e\u003e import pyscreenrec\n\u003e\u003e\u003e recorder = pyscreenrec.ScreenRecorder()\n\n\u003e\u003e\u003e # to start recording\n\u003e\u003e\u003e recorder.start_recording(\"recording.mp4\", 30, {\n\t\"mon\": 1,\n\t\"left\": 100,\n\t\"top\": 100,\n\t\"width\": 1000,\n\t\"height\": 1000\n}) \n\u003e\u003e\u003e # 'recording.mp4' is the name of the output video file, may also contain full path like 'C:/Users/\u003cuser\u003e/Videos/video.mp4'\n\u003e\u003e\u003e # the second parameter is the FPS for the recording\n\u003e\u003e\u003e # the third parameter (optional) is the monitor and the dimensions that needs to be recorded,\n# here we're capturing the first monitor, 100px from left, 100px from right, and then 1000px each in resp. axes\n# refer https://python-mss.readthedocs.io/examples.html#part-of-the-screen-of-the-2nd-monitor for more information\n\n\n\u003e\u003e\u003e # to pause recording\n\u003e\u003e\u003e recorder.pause_recording()\n\n\u003e\u003e\u003e # to resume recording\n\u003e\u003e\u003e recorder.resume_recording()\n\n\u003e\u003e\u003e # to stop recording\n\u003e\u003e\u003e recorder.stop_recording()\n```\n\n\u003e Take a look at the example GUI screen recorder [here](examples/gui_recorder.py) for more information.\n\nKeep in mind that the `start_recording` method is non-blocking, it will start a thread in the background to capture the screenshots.\n\n\nThe `stop_recording` saves the video. So calling the `stop_recording` method is necessary when `start_recording` is called.\n\nYou'd ideally need some sort of a timeout or a callback to call the `stop_recording` function after `start_recording`, to give the program some time to capture the screen.\n\nIf a screen recording session is already running, calling the `start_recording` and `resume_recording` methods raises a `ScreenRecodingInProgress` warning.\n\nSimilarly, if a screen recording session is not running, calling the `stop_recording` and `pause_recording` methods raises a `NoScreenRecodingInProgress` warning.\n\n\n\u003cbr\u003e\n\n## Known limitations\n\n*pyscreenrec* is not able to:\n- capture the system sound during screen recording\n\n\u003cbr\u003e\n\n## Change Log\n\nChanges made in the latest version (*v0.6*) are:\n\n- Write screenshots directly to the video stream instead of the disk.\n- Delegate image writing to a separate thread.\n- Use mss library instead of pyscreeze for capturing screenshots.\n- Capture a part of the screen.\n- Performance improvements.\n- Internal refactors.\n\n\n\nView [CHANGELOG](https://github.com/shravanasati/pyscreenrec/blob/master/CHANGELOG) for more details.\n\n\u003cbr\u003e\n\n## Contribution\n\nPull requests are welcome. If you want to make a major change, open an issue first to discuss about the change.\n\nFor further details, view [CONTRIBUTING.md](https://github.com/shravanasati/pyscreenrec/blob/master/CONTRIBUTING.md).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshravanasati%2Fpyscreenrec","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshravanasati%2Fpyscreenrec","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshravanasati%2Fpyscreenrec/lists"}