i also would do it like zelek said and if you want to save avis from that recorded movements later, then you would have to create a video encoding plugin (which uses ffmpeg for example).