screen cap with wx/pymedia

I finally made up a little screen movie capture app with wx and pymedia after fiddling with win32 for a bit and floundering.

If anyone has an idea of how to speed up the frame rate, I'd appreciate it; I get 2-4fps depending on PC
The main culprit is
memory.Blit( 0,0,sourceW,sourceH, context, 0,0)
then,
bitmap.ConvertToImage().GetData()
costs a little too,
and, since wx has no scaledBlit(), I used
context.SetUserScale(scaleRatio, scaleRatio)

It also does not track the mouse, yet.
Ideas?

Cheers,
Ray

wxcap1.py (920 Bytes)

wxFramecap1.py (5.25 KB)