[python-win32] Capturing screenshots and recording audio in an ongoing basis, and submitting data to a RESTFul API

Jacob Kruger jacob at blindza.co.za
Wed Oct 9 05:24:06 EDT 2024


Hi there - know this might be a silly question, but asking anyway...


Have managed to sort out capturing screenshots repeatedly, while 
recording audio in the background, using combination of PIL's ImageGrab, 
and pyaudio, and can then use moviepy, which is a sort of wrapper 
around/interface to the FFMPEG command-line utility - this all allows me 
to record forms of screencast recordings, setting my own forms of 
time-frames, etc. in terms of the looping interval when I want to 
capture screenshots, etc., before then combining them into video clips 
with the audio recording merged in as a background track, and, all works 
fine, but, we want to use this as a form of monitoring service for 
call-centre staff, at times, and, the only real remaining issue is 
file-size/data in terms of both hard-drive storage space, and, bandwidth 
in terms of submitting resulting data to a RESTFul API.


For example, a test video clip, generated using the libvpx codec, 
resulting in a .webm file, with a total length of 14 seconds, has a file 
size of 100KB.


So, know this question might be a waste of time since have already 
played around with selecting the video codec that generates the smallest 
resulting file-size, and, not sure if might be able to drop image 
snapshot file sizes by using something like grayscale, which moviepy 
doesn't want to work with directly during generating original video 
clips, just wondering if there might be any way to try converting binary 
data into smaller data chunks to then upload these via my RESTFul API, 
where could then convert them back to multimedia formats, etc.?


Any thoughts/suggestions on this type of thing, and, on that note, all 
of this will be running as something like a background service on 
call-centre staff's windows 11 machines.


Thanks in advance

-- 

Jacob Kruger
Skype: BlindZA
"Resistance is futile...but, acceptance is versatile..."


More information about the python-win32 mailing list