A simple python + ffmpeg script to record your desktop. Currently works in Linux only - written in Python 2.7
Requires python, ffmpeg, X, ALSA, libmp3.
python recorddesktop.py outputfile
--res 1920x1080 - the resolution to record in
--codec h264 - the codec to encode in
Run the --help argument for more info.