Screencast with RubyCocoa

I know I promised a screencast about Lucecita, but that will be in the Holydays, now I post a little code that captures the screen and creates a video.

The not so good thing is that the frame rate isn't controlled by my code and it is very slow, but maybe with MacRuby and some threads we could make that code very fast and even parallelize the capturing and the creation of the movie (the other option is to use Objective-C) but MacRuby is under development and it doesn't have all the things we need.

What do you think? Can we improve it with a ruby/cocoa hack?

Leave any idea or comment, the code is in the full post:

– Juan German Castañeda Echevarría