It’s possible to use a static build of ffmpeg on dom0 for recording the screen
see Dom0 screen recorder for 4.1 - #12 by solene