$ ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024×768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 ./Desktop/mydesktop.mkv

You will have to use the sound preferences (record) to choose the audio source and set it to internal.

View this command to comment, vote or add to favourites
View all commands by dcabanis

commandlinefu.com

by David Winterbottom (codeinthehole.com)

Tags: