To record screen in ubuntu 22.04, u need to disable wayland:
-
Open the config file with:
sudo nano /etc/gdm3/custom.conf
Key in password if required.
-
Uncomment
WaylandEnable=false
by removing#
. -
Ctrl+S
to save andCtrl+X
to exit. -
Make sure you have saved everything you are working on, and run.
sudo systemctl restart gdm3
-
Install ffmpeg and kazam
sudo apt install ffmpeg kazam -y
- Open Kazam by searching for it from the Activities pane on the top left of the screen
- To record screen, click on Screencast, and click Fullscreen
- Click capture, and after 5 seconds (the default countdown), the screen will start recording.
- To finish the recording, click on the camera icon on the top right of the screen, and click "Finish recording"
- Save the file, preferably as
in.mp4
. Do not cancel, otherwise, the video will be lost.
- You can find the video typically in the
~/Videos
folder. - Open the folder in Files, and rename the video you want to
in.mp4
. - In a terminal, cd to the
~/Videos
folder. - Run the following command to re-encode the video into something windows can open:
ffmpeg -i in.mp4 -pix_fmt yuv420p -c:a copy -movflags +faststart out.mp4
- The output video is called
out.mp4
. You can now putout.mp4
into a Powerpoint presentation.