GNOME 有一个“隐藏”的屏幕录像机
GNOME
![](/data/attachment/album/202001/10/103524bx2wpxee2aefcgww.png)


[GNOME](https://gnome.org/) 是[最受欢迎的桌面环境](https://itsfoss.com/best-linux-desktop-environments/)之一。它有现代的 UI，并且带有许多特定于 GNOME 的应用，这些应用与桌面整体外观完美融合。


你可以根据自己的喜好来[调整 GNOME](https://itsfoss.com/gnome-tweak-tool/)，但我不在这里讨论。GNOME 桌面有一些你可能不知道的隐藏功能。


这种不太显眼的功能之一是内置的屏幕录像机。


是的，你没有看错。如果你使用的是 GNOME 桌面，那么不必安装其他的 [Linux 屏幕录像机](https://itsfoss.com/best-linux-screen-recorders/)。你只需要知道正确的快捷键即可。


### 立即使用 GNOME 屏幕录像机录制屏幕


要快速打开 GNOME 屏幕录像机，你需要[在 Ubuntu 或其他带有 GNOME 桌面的发行版中按下此快捷键](https://itsfoss.com/ubuntu-shortcuts/)：



```
Ctrl + Alt + Shift + R
```

这将会立即开始录制你的桌面。你可以通过顶部的系统托盘区域的红点了解到正在录制：


![The red dot in the system tray area indicates that screen recording is in progress](/data/attachment/album/202001/10/103621nrhgxkhwecx5pnr2.jpg)


#### 增加录制时间


默认的最大录制时间仅为 30 秒。但是可以增加。


打开终端并使用以下命令：



```
gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length 300
```

在上面的命令中，我将录音的最大长度增加到 300 秒（即 5 分钟）。你可以将其更改为任何其它值，但应以秒为单位。


如果你**不希望最长录音时间有任何限制，请将其设置为 `0`**，之后它会在你手动停止或者磁盘空间不足才会停止。


#### 停止屏幕录制


如前所述，你的桌面录制将在达到最大时间限制后自动停止。


要在此之前停止录制，你可以按下相同的组合键：



```
Ctrl + Alt + Shift + R
```

你的录制内容将以 [webm](https://www.webmproject.org/about/) 格式保存在家目录的 `Videos` 文件夹中。


#### 局限性


尽管使用这个小工具可以方便地快速录制桌面，但是与功能强大的 [Simple Screen Recorder](https://itsfoss.com/record-screen-ubuntu-simplescreenrecorder/) 这样的屏幕录制工具相比，它有一些局限性。


* 录制开始之前没有时间延迟选项
* 没有暂停和播放选项
* 它录制整个屏幕。无法仅录制应用窗口、特定区域或特定屏幕（如果你有多个屏幕）。
* 视频以 webm 格式保存在用户的 `Videos` 目录中。你无法更改。你必须使用 [HandBrake 之类的工具将视频转换为其他格式](https://itsfoss.com/handbrake/)。


如你所见，这个秘密的 GNOME 屏幕录像机与 [Kazam](https://itsfoss.com/kazam-screen-recorder/) 之类的工具或其他此类工具所提供的功能相差很远。但是，它并不会尝试成为全功能的屏幕录像机。它只是为你提供录制屏幕的快速方法。


GNOME 是一个多功能的现代桌面环境。你可以大量地[调整 GNOME](https://itsfoss.com/gnome-tweak-tool/)。[GNOME 扩展](https://itsfoss.com/best-gnome-extensions/)为桌面自定义提供了另一个维度。


该屏幕录像机是 GNOME 的隐藏功能之一，就像你自己很难轻易找到的挂起选项。


你喜欢它吗？你是否还想与我们分享其他隐藏的 GNOME 功能？请在评论区留言。




---


via: <https://itsfoss.com/gnome-screen-recorder/>


作者：[Abhishek Prakash](https://itsfoss.com/author/abhishek/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

GNOME is one of the [most popular desktop environments](https://itsfoss.com/best-linux-desktop-environments/) and for good reasons. It has a modern UI and it comes with a number of GNOME-specific applications that blend well with the overall desktop appearance.

One such application is GNOME's built-in screen recorder!

It is a simple screen recorder with limited features. It works on Wayland and Xorg both. Mind you, there are not many [screen recorders on Linux](https://itsfoss.com/best-linux-screen-recorders/) that support Wayland.

But you won't get fancy features like delaying the recording or saving the output to a different path and format. Heck! You cannot even pause the recording.

However, GNOME's recorder is simple, easy, and efficient to capture the screen for a certain amount of time.

Let's see how to use it.

## Using the GNOME Screen recorder

The screen recorder is actually combined with GNOME's screenshot tool.

To start the screen recorder, you can use the Print Screen button to open the screenshot tool. You'll find a switch to toggle between screenshot (camera icon) and screencast (video camera icon). Toggle it to select the screen recording.

![GNOME Screen recorder](https://itsfoss.com/content/images/2023/03/gnome-screen-recorder.jpg)

**Alternatively**, execute the key combination of `Alt + Ctrl + Shift + R`

and it will get you the controls for recording immediately:

![GNOME screen recorder](https://itsfoss.com/content/images/2023/03/Selection_005.png)

And as you can see, here, you have two options to choose from:

- Select a portion of the screen to record
- Use the entire screen to record

The option to record a specific application window is not available while writing.

### Start the recording

Now, let's look at **how you can record a specific portion of the screen** using a GNOME screen recorder.

First, select the `Selection option`

and set the size of the desired portion you want to record and start recording by pressing the 🔴 button:

![](https://itsfoss.com/content/images/2023/03/how-to-record-screen-using-GNOME-s-built-in-recorder-2.png)

Yes, that's all it takes to record the desired portion of the screen.

The process remains similar when you want to record the entire screen.

**To record the entire screen**, select the `Screen`

option and start recording by pressing the red button:

![](https://itsfoss.com/content/images/2023/03/record-the-entire-screen-using-GNOME-s-built-in-recorder.png)

But how are you supposed to stop the recording?

### Stop the recording

Once you start recording, you will see a timer on your top bar suggesting the length of the video.

Which also acts as a stop button!

So all you have to do is press that button to stop the video:

![stop recording in GNOME's in-built recorder](https://itsfoss.com/content/images/2023/03/stop-recording-in-GNOME-s-in-built-recorder.png)

And your video will be saved under `/home/user/Videos/Screencasts`

.

`/home/user/Videos/Screencasts`

with `.webm`

extension.As I mentioned earlier, the GNOME Screen Recorder offers few features. You cannot pause the recording, select output file formats, show mouse clicks etc. If you want such fancy features, you can try the powerful OBS. It offers a lot of features but comes with a complex interface.

[Screen Recording in Linux With OBS and WaylandThere are tons of screen recorders available for Linux. But when it comes to supporting Wayland, almost all of them do not work. This is problematic because many new distribution releases are switching to Wayland display manager by default once again. And if something as basic as a screen recor…](https://itsfoss.com/screen-record-obs-wayland/)![](https://itsfoss.com/content/images/wordpress/2021/09/obs-screen-record-wayland.webp)


![](https://itsfoss.com/content/images/wordpress/2021/09/obs-screen-record-wayland.webp)

## Want to convert the screen-recorded videos?

The files will be saved with the `.webm`

extension, which may not be the preferred video file for everyone.

But worry not! **You can use FFmpeg** CLI utility that allows users to modify video file properties, including the media format:

[The Complete Guide for Using ffmpeg in LinuxBrief: This detailed guide shows how to install ffmpeg in Ubuntu and other Linux distributions. It also demonstrates some useful ffmpeg commands for practical usage. ffmpeg is a CLI (command line based) utility for processing media files. It is a framework with a multitude of features and, beca…](https://itsfoss.com/ffmpeg/)![](https://itsfoss.com/content/images/wordpress/2019/03/ffmpeg-tutorial.png)


![](https://itsfoss.com/content/images/wordpress/2019/03/ffmpeg-tutorial.png)

Sure, FFmpeg is great utility but new users won't be able to make the most out of it as it bombards you with tonnes of options at once.

And for that purpose, you can use the Handbrake utility, which not just allows you to convert video files to different formats but has other useful features for you:

[App Highlight: Open Source Video Transcoder HandbrakeBrief: HandBrake is a free and open-source video conversion tool that is quite useful. Let’s see what are its main features and how to use them for converting videos from one format to another. HandBrake: An Open Source Video Transcoder HandBrake is a quite useful tool which helps yo…](https://itsfoss.com/handbrake/)![](https://itsfoss.com/content/images/wordpress/2019/12/handbrake.jpg)


![](https://itsfoss.com/content/images/wordpress/2019/12/handbrake.jpg)

Happy recording!

And if you have some queries, feel free to ask me in the comments.