Are there any programs for Ubuntu that records the screen like Fraps specifically for games?
There is an app on APT called recordmydesktop (gtk-recordmydesktop with a graphical interface). Its very easy to use. You may also check this location and see what you prefer:
You could try to use VLC movie player which is available on apt but it may be outdated so get it from here:
It is possible to configure it so it will record your desktop/game or whatever you need.
I'm surprised that no-one has mentioned a program called glc, which is known as the Linux equivalent of Fraps. It hasn't had much development over the last two years and can be tricky to setup, so it's worth reading the useful wiki carefully. There is an excellent tutorial at this site which details its operation, and many videos on Youtube can be found by people who have recorded game footage with it.
However, it isn't available in the repositories, but there is a ppa here:
sudo add-apt-repository ppa:arand/ppa sudo apt-get update sudo apt-get install glc
However, I always prefer compiling. So install the dependencies first with
sudo apt-get install build-essential cmake libx11-dev libxxf86vm-dev libgl1-mesa-dev libasound2-dev libpng12-dev
You then need to run these commands from the wiki:
wget https://github.com/nullkey/glc/raw/master/scripts/glc-build.sh chmod a+x glc-build.sh ./glc-build.sh
At some stage in the process it will prompt you for your password to install. It is best not to install in anything other than the default.
Take note if it mentions anything about setting custom pointers to load libraries; this is particularly important on 64 bit systems-see the wiki for details.
Although the full options are detailed here, you can capture game footage by simply running
and then pressing shift F8 to begin recording to file, and press the same combination to stop. The file will be stored in your home folder.
You can either play it with
or encode it; please see here for options.
It certainly isn't as easy as
recordmydesktop and is not the quick option, but is worth learning the options and playing about with it as it is a good recorder of game action.