一个简单的python屏幕录像机包
项目描述
screen_recoder
这是一个简单的 python 包,用于在 WINDOWS 64 位上录制屏幕
NOTE :- don't install it in other OS
重要的提示
此模块需要立体声混音,在使用此模块之前启用它,如果您没有立体声混音,您可以从这里下载
主要特征
- 简单的
- 快速地
- 高效的
安装
pip install screen_recorder
或者
git clone https://github.com/Pranav433/screen_recorder
cd screen_recorder
pip install .
依赖项
- cffi==1.14.5
- 未来==0.18.2
- 鼠标信息==0.1.3
- numpy==1.20.1
- opencv-python==4.5.1.48
- 枕头==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
- PyScreez==0.1.26
- PyTweening==1.0.3
- 声音设备==0.4.1
- 声音文件==0.10.3.post1
例子
您必须使用线程才能使该模块工作
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()
链接
项目详情
下载文件
下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。
内置分布
screen_recorder_python-1.3-py3-none-any.whl
(45.3 MB
视图哈希)
关
screen_recorder_python -1.3-py3-none-any.whl 的哈希值
| 算法 | 哈希摘要 | |
|---|---|---|
| SHA256 | 515bf0551ec8bb8023bd399da09b75df62823934359066f321cf30c949851b7c |
|
| MD5 | 94ef36545a4e17db99c074c524affc0c |
|
| 布莱克2-256 | bde0385087fb976a476705423bb10df20620b7b0deb4962ae7c7154c48092d47 |