How to do screen recording on Wayland in Linux?

How to do screen recording on Wayland in Linux? Many screen recorders do not work on the new Wayland.

Using Green Recorder

You may try Green Recorder which supports Wayland.

Note: Green Recorder is no longer under development by the original author (Please check the project README for more details). It still works well for most usage scenarios.

Green Recorder

If you use Ubuntu 18.04, you may install Green Recorder from the following PPA:

sudo add-apt-repository ppa:fossproject/ppa
sudo apt update
sudo apt install green-recorder

Using Gnome’s screen recording tool

Gnome 3 has a built-in screen recording functionality. To start, press Alt+Ctrl+Shift+R and the recording will start. There should be a red icon on the top right message tray of your screen. To stop recording, press the red icon or press Alt+Ctrl+Shift+R again.

The video file will be in webm format and saved in the Video directory on your home directory.

Increase the duration of screencast videos

The screen recording functionality has a maximum length limit which is just 30 seconds long by default. The default length isn’t ideal if you plan to make a lengthy video. Good news is that it is possible to increase the duration manually. Modify the following gsettings string in command like using the gsettings command line tool as follows

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

Replace the 600 value with the number of seconds you want.

Similar Posts

  • How to `cut` a String Using a String as the Delimiter in Bash?

    Is is possible to cut in Linux using a string as the delimiter? cut –delimiter=”delim” -f 1,3 cut reports: cut: the delimiter must be a single character The most closest solution that I find is using awk/gawk: awk -F ‘delim’ ‘{print $1; print $3}’ From the manual: -F fs –field-separator fs Use fs for the…

  • Multisig 101

    Multisig, short for “multisignature,” is a cryptographic mechanism that requires multiple signatures to authorize and execute a transaction. What is Multisig Multisig ensures that multiple parties must collaborate and approve a transaction before it can be deemed valid. It provides an additional layer of security requiring multiple parties’ signatures to spend or transfer the crypto…

  • |

    Configuring Eclipse to Highlight Changed Lines Compared to Git Commit

    Eclipse is one of the good IDEs for C/C++ projects with its great source code indexer. It is common the source code version is controlled by some tools like Git for software projects. It is convenient if the IDE can show the current changes compared to the committed code version. In this post, we will…

  • Chinese Charactor Configuration on Fedora 11

    最新的更新版本请看: Fedora 中文字体设置. 使用Linux时我个人倾向使用英文环境系统,而Fedora11在英文环境下中文字体有时会不太好看,经常遇到需要字体优化美化的问题。 以下是我的配置方案,经测试效果还算不错,解决了Fedora 11 中文字体难看的问题: 方案1:使用uming和ukai字体,即AR PL UMing CN等。 关键是使用的字体包如下: 首先要安装这两个字体: cjkuni-ukai-fonts cjkuni-uming-fonts 然后配置一下~/.fonts.conf文件. 使sans-serif serif monospace字体中文使用uming/ukai即可. 我的.fonts.conf文件可以从这里下载(两种选择, 我喜欢前者): https://github.com/zma/config_files 使用Liberation和uming/ukai字体: .fonts.cofn.liberation 使用dejavu和uming/ukai字体: .fonts.conf.dejavu 下载后放到自己的$HOME下改名为.fonts.conf就可以了。 使用uming字体效果如下(请放大后看效果): 方案2:安装文泉驿字体,这个非常简单,安装相应包即可了。 如果喜欢其它的字体选择性的安装上就可以了,只要注意只安装自己需要的就行了。有人使用微软雅黑字体,首先这是侵权的,其次开源的字体做得其实已经很不错了。 最后将字体平滑选项打开, KDE和gnome都有相关设置方法。 以上内容只是针对使用xft字体系统的设置。对于使用核心字体系统的X程序来说字体依然会出现很丑的情况。 下面是针对emacs的设置方法: 首先需要安装这个字体包: xorg-x11-fonts-misc 注意到在中文系统下emacs的中文显示非常好,而在英文环境中去非常差,我们可以利用这一点,在运行emacs前首先将系统环境设为中文即可。 在~/bin/下建立一文件ema 内容如下: #!/bin/bash rm -f ~/.emacs ln -s ~/.emacs.x ~/.emacs LANG=zh_CN.UTF-8 emacs –fullheight -r $* 然后加入执行权限即可: chmod +x…

  • | |

    How to Statically Link OCaml Programs

    Static linking is preferred for some cases although it has its own various problems. Static building/linking is not always possible for some languages on some platform. For OCaml, the answer to this question is yes. In this post, we will introduce 2 methods to statically linking OCaml: static linking with runtime glibc required and static…

  • Filter away non-printable ASCII characters on Linux?

    Sometimes the commands’ output have some non-printable ASCII characters. How to filter away these non-printable ASCII characters on Linux? You can consider the problem as “how to leave only printable ascii characters?”. The printable characters in ASCII table are: Octal 011: Tab Octal 012: Line Feed Octal 015: Carriage Return Octal 040 to 176: printable…

3 Comments

  1. green-recorder has been discontinued as of autumn of 2019, and it works with Python2 only. So, still looking for a screen recorder on GNOME/Wayland.

  2. I couldn’t find a good screen recorder for Wayland. So I made one https://github.com/HasinduLanka/screencorder

    It’s stable and working well on Wayland.

    If you know HTML/JS well, you can contribute to make frontend better

    How this screen recorder works on wayland?
    Most screen recorders out there do not work on wayland. Why?

    Because wayland is much secure than old X11. Wayland doesn’t let every program to see what others doing. It’s a bit harder to gain access. But web browsers, like Chromium have handled these security features properly. That’s why we use a local Progressive Web App as the frontend and a backend written in Go. The PWA records the screen and sends them to the backend as blobs. Backend records system sounds and combines all together in realtime.

Leave a Reply

Your email address will not be published. Required fields are marked *