(UPDATE: No longer needed since PureMPV has its own cropbox calculation and drawing)
Originally written for PureMPV, with this utility it is possible to get the relative x, y, height, width coordinates of a drawn rectangle inside an X11 application given its PID. It uses the Python X library to communicate with the X server.