Both only work on systems that use xorg i believe?
ffplay -f x11grab -i :1
ffmpeg -f x11grab -i :1 filename.mp4
ffmpeg -i image.png -i music.flac -t 5 out.webm