I needed a way to record application features in a simple manner.
The solution I used was to combined Xvfb ( X virtual framebuffer ) and ffmpeg.
The below script show how this is possible.
If you want to use this approach, you will need to add your own application interaction.
For customization of video output read the ffmpeg documentation Note more ffmpeg reading may be needed if you are using Wayland compositor instead of X11.