A simple screen recorder package for python
Project description
screen_recoder
This is a simple python package for recording your screen on WINDOWS
NOTE :- don't install it in other OS
Key features
- simple
- Fast
- efficient
Installing
pip install screen_recorder
OR
git clone space
cd screen_recorder
pip install .
Dependencies
- cffi==1.14.5
- ffmpeg-python==0.2.0
- future==0.18.2
- MouseInfo==0.1.3
- numpy==1.20.1
- opencv-python==4.5.1.48
- Pillow==8.1.2
- PyAutoGUI==0.9.52
- pycparser==2.20
- PyGetWindow==0.0.9
- PyMsgBox==1.0.9
- pyperclip==1.8.2
- PyRect==0.1.4
- PyScreeze==0.1.26
- PyTweening==1.0.3
- sounddevice==0.4.1
- SoundFile==0.10.3.post1
Example
you have to use threading for this module to work
from threading import Thread
from screen_recorder import Recorder
import time
rec = Recorder()
def record():
rec.record_screen() # This will start the recording
print(rec.get_screenshot())
def stop(): # This will stop the recording after 30 seconds considering it takes 0 seconds inside the loop
i=0
while True:
time.sleep(1)
if i == 30:
rec.stop()
rec.save("recording.mp4")
break
i+=1
record_thread = Thread(target=record)
stop_thread = Thread(target=stop)
record_thread.start()
stop_thread.start()
Links
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
screen-recorder-python-1.0.tar.gz
(120.7 kB
view hashes)
Built Distribution
Close
Hashes for screen-recorder-python-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 345e96277564b17f5cffe369ae18efc7fdd1850ba165358df1881b4585285fb6 |
|
MD5 | 15bb2d9b3b2c4d8f832c1a18ef8a2136 |
|
BLAKE2b-256 | bb29d09a922ef26947bab80204c11c91c01585b91594e948b00e7394fb72b89d |
Close
Hashes for screen_recorder_python-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4c6a2dfcb956df6982d47bb7a2fd38addfcb229c26edb9da91f024489fda1bb |
|
MD5 | 4d135652b96497344cc4d8e44ad5de98 |
|
BLAKE2b-256 | 887565dcc744c22423f662cf4c909fd30bd402e85bbf5f1cde2e88b971b70534 |