Some notes on screen recording in Wayland / Sway on Ubuntu as I had issues getting a good result. This was using a machine with Intel Arc graphics.
Install wf-recorder:
sudo apt-get install wf-recorder This records fullscreen of output eDP-1 at 30Hz without wierd or broken colours:
wf-recorder --output eDP-1 --buffrate 60 -r 30 -c h264_vaapi -d /dev/dri/renderD128 -p color_range=2 -f ~/Videos/screen-recording-$(date '+%s').movThe extra arguments fix the recording being too low contrast / washed-out (borrowed from this issue)
To find your outputs use swaymsg -t get_outputs or something like wdisplays.