Diogo Oliveira de Melo

Easy way to record desktop using ffmpeg

Just use the following command to record the desktop with audio to an MKV (or whatever format you want) file:

ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s 1280x1024 -r 30 -i :0.0 ~/out.mkv