1 2 3 4 5
ffmpeg -f x11grab -x 1024x768 -i :0.0 out.mkv ffmpeg -i /dev/video0 out.mkv ffmpeg -f alsa -i default out.flac -c:v libx264 -r 30 -c:a flac xdpyinfo | grep dimensions