recordcapture
recordcapture is a library based on Desktop Duplication API, pillow, and pyaudio which provide multiple methods for capturing and recording Screen and Microphone.
Usuage:
import recordcapture
sr=recordcapture.screenRecord()
sr.start(seconds=30,filename=None,frame=30,bitrate=8000000,useGPU=False,countdown=5,echo=True)
#Note: All Parameters are optional
seconds: total time to record the screen in seconds
filename: any filename eg: abc.mp4, if not provided, will take timestamp as default.
frame: frame per second.
bitrate: bit processed per unit of time
useGPU: using gpu for enhanced the recording, if face issue the put as False
countdown: countdown before start recording
echo: to print the event messages
ar=recordcapture.micRecord()
ar.start(seconds=30,filename=None,chunk=1024,channels=2,rate=44100,countdown=5,echo=True)
#Note: All Parameters are optional
seconds: total time to record the screen in seconds
filename: any filename eg: abc.wav, if not provided, will take timestamp as default.
chunk: chunk size
channels: sound coming from points
rate: sample rate
countdown: countdown before start recording
echo: to print the event messages
ss=recordcapture.screenshot()
ss.capture(countdown=5,filename=None,extension='png',echo=True)
#Note: All Parameters are optional
countdown: countdown before start recording
filename: any filename eg: abc.png, if not provided, will take timestamp as default.
extension: file extension
echo: to print the event messages