ffmpeg get screen code example Example: ffmpeg linux capture desktop $ ffmpeg -f x11grab -s 1280x1024 -r 25 -i :0.0+0,0 out.mp4