ffscreencast is a shell wrapper for ffmpeg that allows fool-proof screen recording via the command line.