Xdpyinfo is a utility for displaying information about an X server. It is used to examine the capabilities of a server, the predefined values for various parameters used in communicating between clients and the server, and the different types of screens and visuals that are available. (see man xdpyinfo).
We use it as follows to determine the screen resolution:
FFmpeg can grab the X11 display
0.0 is display.screen number of your X11 server, same as the DISPLAY environment variable.
-r will be used to set the output file to 25 fps.
Now you know how to capture video of a linux desktop using ffmpeg:
If you found this post or this website helpful and would like to support our work, please consider making a donation. Thank you!Help Us