Recording video from the screen is not the most standard task, but there are users for whom it helps a lot. For example, when creating programming lessons or introductory videos about distributions and applications. Video recording is also used by gamers to save highlights and share them with friends and viewers of the YouTube channel.
There aren’t many screen recording programs available on Linux, but there is still plenty to choose from, from simple utilities to advanced recording and broadcasting solutions.
It is also important to note that the hardware acceleration of video recording in Linux is not the best. It is best to use Intel’s embedded graphics, or discrete Nvidia for these purposes. some programs can take advantage of their hardware codecs. But AMD, even in the Windows environment, does not always allow you to use acceleration, let alone Linux. Therefore, to record video from the screen, you may need a fairly high-performance processor, preferably with 4 cores or more. Although a 2-core processor may be suitable for writing simple tasks like a code set,in this case there is no other serious load.
- Built-in screen recording capability
In the desktop environment, you can record with the combination Ctrl + Alt + Shift + R, in some Gnome environments, but by default only short 30-second videos are obtained. I ran on Linux Mint 20 Cinnamon and the video was written until I again pressed Ctrl + Alt + Shift + R.Therefore, it is better to use separate programs for these purposes.
- OBS StudioThe most advanced screen recording program is OBS Studio. This program is familiar to many users of not only Linux, but also Windows and mac OS. Allows you to record video from multiple sources, including overlaying images. It is also possible to broadcast to all popular platforms: YouTube, Twitch and others. Gstreamer, ffmpeg, and x264 codecs are available. As for ffmpeg, it is able to use NVIDIA NVENC hardware acceleration by simple manipulations. Audio is recorded from multiple sources at once and you can adjust the volume of each one individually. Unfortunately, the plugins are in DLL format and are not available on Linux.
sudo apt install obs-studio ffmpeg
I have already written about this program for a very long time, follow the link. A nice feature of the program is support for a large number of codecs, including hardware-accelerated Intel Quick Sync Video and Nvidia NVENC.
Follow the link for installation.
Vokoscreen can no longer boast a wealth of settings like OBS, and the number of codecs like SSR, but it has everything need for most users have already written about this program as well, follow the link for installation.
If you don’t want to bother with the settings, then Kazam is perfect. There is a minimum of settings, but even this is enough for many people to record video from the screen. Mp4 is selected as the container, video is recorded with the h.264 codec, and audio is recorded in mp3. If you don’t want to bother with the settings, then Kazam is perfect. There is a minimum of settings, but even this is enough for many people to record video from the screen. Mp4 is selected as the container, video is recorded with the h.264 codec, and audio is recorded in mp3.
sudo apt install kazam
The Peek program has an even simpler interface, but this does not prevent it from being in demand and popular with users. Yes, it does not record sound, it does not have this feature at all. But if you need to record a section of the screen, and moreover in gif format, then Peek will come in handy. The encoder does a great job. Program Windows are extremely compact, and files often take up less than a megabyte on disk. And this is despite the fact that the duration of such gifs is about 30 seconds. Also, good results are obtained when capturing a video sequence. Colors for the 8-bit gif palette are transmitted very well. But if the results you get are not enough, you can also install the gifki codec, it will pick up automatically and offer the best color transfer.
Linux screen video is recorded in mp4 or webm format with the h.264 or vp9 codec, respectively. If the sound is not important, then feel free to use Peek to capture video from the screen. Follow the link for installation.
May The Force Be With You!