linux record video code example
Example 1: screen recorder linux
sudo apt install kazam
Example 2: screen recorder for ubuntu
sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo apt-get update
sudo apt-get install simplescreenrecorder