Use pavucontrol to select the recording device you want to use, in this case I used the monitor device in order to get the video sound.
recordmydesktop -o /tmp/file.ogv -fps 24 –pause-shortcut Control+Mod1+o
ffmpeg can convert it to mp4 for upload to youtube.