https://github.com/sukhbinder/screenrecord
Record screen with python.
https://github.com/sukhbinder/screenrecord
Last synced: 4 months ago
JSON representation
Record screen with python.
- Host: GitHub
- URL: https://github.com/sukhbinder/screenrecord
- Owner: sukhbinder
- License: apache-2.0
- Created: 2020-05-12T19:37:47.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T17:06:20.000Z (6 months ago)
- Last Synced: 2025-02-18T09:41:41.080Z (5 months ago)
- Language: Python
- Size: 1.52 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# screenrecord
[](https://pypi.org/project/screenrecord/)
[](https://github.com/sukhbinder/screenrecord/releases)
[](https://github.com/sukhbinder/screenrecord/actions/workflows/test.yml)
[](https://github.com/sukhbinder/screenrecord/blob/master/LICENSE)Record screen with python
The backstory for this tool is [here](https://sukhbinder.wordpress.com/?s=screenrecord)
## Installation
Install this tool using `pip`:
```bash
pip install screenrecord
```
## UsageFor help, run:
```bash
record --help
```
You can also use:
```bash
python -m record --help
```Shows
```bash
usage: record [-h] [-i INITDELAY] [-d DELAY] [-dur DURATION]
[--bbox BBOX [BBOX ...]] [-f] [-aw]
filenameScreen Recording with python
positional arguments:
filename filename can be mp4 or gif or movoptional arguments:
-h, --help show this help message and exit
-i INITDELAY, --initdelay INITDELAY
Initial delay in seconds, default 5 s
-d DELAY, --delay DELAY
Delay between frames in seconds, default 0.5 s
-dur DURATION, --duration DURATION
Duration of capture, default 20 s
--bbox BBOX [BBOX ...]
Bounding box, default (0, 0, 50, 50)
-f, --fullscreen
-aw, --activewindow```

## Development
To contribute to this tool, first checkout the code. Then create a new virtual environment:
```bash
cd screenrecord
python -m venv venv
source venv/bin/activate
```
Now install the dependencies and test dependencies:
```bash
pip install -e '.[test]'
```
To run the tests:
```bash
python -m pytest
```