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.
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.