For posterity's sake: If you want to record your screen and your built-in
microphone instead of system sound (e.g., to create a "screencast"), it is simpler to do. After a fresh boot, this should be sufficient:
$ ffmpeg -f alsa -ac 2 -ar 44100 -i hw:0 -f x11grab -r 29.97 -s 1366x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -preset ultrafast -crf 0 -threads 0 output.mkv
When you are done recording, just press
q in the terminal in which ffmpeg is running to make it stop recording. Note that my microphone is hw:0 but yours may be hw:1 (as Juanito's was--see Reply #7). If in doubt, try both or run "arecord -L" and take a look at the output.
I think this topic is solved