Screenshots
From Immersive Visualization Lab Wiki
Video Recording
To record video at 1920x1080 resolution to file capture.mp4 in the current directory:
ffmpeg -f x11grab -r 30 -s 1920x1080 -i :0.0 capture.mp4
Screen Shots
xwd -root -out myshot.xwd convert myshot.xwd myshot.jpg