I'm preparing walk-through screencasts for workshop about virtualization so I needed easy way to produce console screencasts.
But, for some parts (like Debian installation under VirtualBox) I really needed movie capture. x11grab option from ffmpeg seemed easy enough to use:
ffmpeg -f x11grab -s 640x480 -r 10 -i :0.0 /tmp/screencast.avibut getting right window size isn't something I want to do by hand. So, I wrote small perl script record-screencast.pl which extract window position and size using xwininfo and pass it to ffmpeg so I don't have to.