shravanasati / pyscreenrec

A small python library for recording screen.
https://pypi.org/project/pyscreenrec/
MIT License
21 stars 4 forks source link

write directly to video stream #6

Closed shravanasati closed 3 weeks ago

shravanasati commented 3 weeks ago

Instead of temporarily writing screenshots to the disk and then merging them at the end, pyscreenrec now writes screenshots directly to the video stream.

It also uses the mss library instead of pyscreenrec which has improved the number of frames captured.

The image writing work is also delegated to a different thread which has further improved frame count.

According to my tests, the frame count has been multiplied by almost 1.5 times.