Kazam is an Open Source screen capture tool that is freely availabe to create your screen video and snapshot.
Install Kazam repository and packagesudo add-apt-repository ppa:sylvain-pineau/kazam
sudo apt-get update
sudo apt install kazam
Search Kazam in ubuntu and start recording.