TASK: Record Desktop Games With Game Audio.
INSTALLATION:
The applications you will need are gtk-recordmydesktop and PulseAudioDeviceChooser. In the terminal you can install with the following line:
sudo apt-get install gtk-recordmydesktop padevchooser
or with the more friendly Ubuntu Software Center.
INSTRUCTIONS:
Once these two applications are installed, open the PulseAudioVolumeControl
Applications > Sound&Video > PulseAudio Volume Control
In this window, go to the Input Devices tab and show All Input Devices
Scroll down to Monitor of Internal Audio Analog Stereo and click the checkbox. This will change your default input audio what you normally hear as output. I lowered the volume a little for quality, but you may have different preferences.
(When you are finished, restore the default by clicking on Internal Audio Analog Stereo)
Now you can open gtk-RecordMyDesktop
Applications > Sound&Video > Desktop Recorder
I think that using gtk-RecordMyDesktop is pretty straight forward. Clicking on Advanced I modified the Performance as shown. Nothing special on the Sound tab.
All that's left is to click Save As to name you file, Select your Window, and then hit record!
That's how you record audio and video together.