This is the preferred architecture for large estates. One central head-end (a rack in the basement) houses a 16x16 HDBaseT or AV over IP switcher.
// Close the display XCloseDisplay(dpy); return 0;
This will display information about your graphics card. Look for the "VGA" or "Video" keyword to confirm it's a graphics card.
: Ensure you have a media player that supports Xvid. VLC Media Player is a great option and can play Xvid videos without any additional codec installation.
If your "16 video" setup refers to the common or 9:16 aspect ratios: