{"id":35367,"date":"2021-10-28T13:14:21","date_gmt":"2021-10-28T13:14:21","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=35367"},"modified":"2021-10-28T13:14:21","modified_gmt":"2021-10-28T13:14:21","slug":"record-screen-ubuntu-wayland-kooha","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2021\/10\/record-screen-ubuntu-wayland-kooha\/","title":{"rendered":"How to Record Your Desktop Screen in Ubuntu 21.10 Wayland with Kooha"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo-250x250.png\" alt=\"\" width=\"250\" height=\"250\" class=\"alignleft size-thumbnail wp-image-35368\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-logo.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Looking for how to record Ubuntu desktop in Wayland session? Here&#8217;s how to do it in Ubuntu 21.10 using Kooha.<\/p>\n<p>Ubuntu switched to &#8220;<b>Wayland<\/b>&#8221; session since Ubuntu 21.04. However, many apps, e.g., Kazam, Peek and vokoscreen-NG, do not support it. Some apps including OBS-Studio claim to support for Wayland, but either record blank screen or just refuse to work!<\/p>\n<p><b>The best solution in my opinion is switch back to Xorg session. To do so, simply log out, select your user and then choose &#8220;Ubuntu on Xorg&#8221; via bottom-right gear button menu.<\/b> All the apps will work once you login with Xorg.<\/p>\n<p>For those sticking to the default Wayland, <b>Kooha<\/b> is one of good choices until <a href=\"https:\/\/gitlab.gnome.org\/GNOME\/gnome-shell\/-\/merge_requests\/1954\" rel=\"noopener\" target=\"_blank\">GNOME&#8217;s &#8220;in-shell&#8221; screenshot &#038; screencast UI<\/a> is out.<\/p>\n<div id=\"attachment_35372\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-window.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-35372\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-window.png\" alt=\"\" width=\"600\" height=\"400\" class=\"size-full wp-image-35372\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-window.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-window-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-35372\" class=\"wp-caption-text\">Kooha screen recorder<\/p><\/div>\n<h3>How to Install Kooha in Ubuntu:<\/h3>\n<p>The simple screen recorder allows to capture the full-screen, selected app window, and a selection screen area. It saves video into WebM, MP4, GIF, and MKV formats. <\/p>\n<p>The steps below is only recommended for <b>Ubuntu 21.10<\/b> which has properly Pipewire support that is required by Kooha.<\/p>\n<h4>1. Setup Flatpak daemon:<\/h4>\n<p>The app is available to install as Flatpak package. So you have to first make sure he flatpak daemon is installed. Press <b>Ctrl+Alt+T<\/b> on keyboard to open terminal, then run command:<\/p>\n<pre>sudo apt install flatpak<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak-600x102.jpg\" alt=\"\" width=\"600\" height=\"102\" class=\"aligncenter size-large wp-image-10296\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak-600x102.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak-450x77.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/apt-flatpak.jpg 705w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Next, add the flathub repository by running command in terminal:<\/p>\n<pre>flatpak remote-add --if-not-exists flathub https:\/\/flathub.org\/repo\/flathub.flatpakrepo<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/flathub-focal.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/flathub-focal-600x100.jpg\" alt=\"\" width=\"600\" height=\"100\" class=\"aligncenter size-large wp-image-10285\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/flathub-focal-600x100.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/flathub-focal-450x75.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/flathub-focal.jpg 748w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h4>2. Install Kooha screen recorder:<\/h4>\n<p>After that, run the command below in terminal to install the screencast app:<\/p>\n<pre>flatpak install flathub io.github.seadve.Kooha<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/flatpak-kooha.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/flatpak-kooha.png\" alt=\"\" width=\"600\" height=\"303\" class=\"aligncenter size-full wp-image-35373\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/flatpak-kooha.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/flatpak-kooha-300x152.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>Upgrade the Pipewire service:<\/h3>\n<p>Kooha requires pipewire server, xdg-desktop-portal, and WebRTC (Firefox). There are properly installed and enabled in Ubuntu 21.10 out-of-the-box (at least in my case). The recorder somehow refuses to work with built-in pipewire, but the updated package from <a href=\"https:\/\/launchpad.net\/~pipewire-debian\/+archive\/ubuntu\/pipewire-upstream\" rel=\"noopener\" target=\"_blank\">this Ubuntu PPA<\/a> will make it work!<\/p>\n<p>1.) Firstly, press Ctrl+Alt+T to open terminal. Then run command to add the PPA:<\/p>\n<pre>sudo add-apt-repository ppa:pipewire-debian\/pipewire-upstream<\/pre>\n<p><i>Type user password when it asks (no asterisk feedback) and hit Enter to continue.<\/i><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/pipewire-ppa-impish.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/pipewire-ppa-impish.png\" alt=\"\" width=\"600\" height=\"246\" class=\"aligncenter size-full wp-image-35374\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/pipewire-ppa-impish.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/pipewire-ppa-impish-300x123.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>2.) Next, either run <code>sudo apt upgrade<\/code> to upgrade all system packages or use apt command to install the audio &#038; video server:<\/p>\n<pre>sudo apt install pipewire<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/apt-pipewire-impish.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/apt-pipewire-impish.png\" alt=\"\" width=\"600\" height=\"362\" class=\"aligncenter size-full wp-image-35375\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/apt-pipewire-impish.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/apt-pipewire-impish-300x181.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Finally, <b>restart your computer<\/b>.<\/p>\n<h3>Start recording via Kooha:<\/h3>\n<p>In the next boot, search for and open Kooha from activities overview screen. When it opens, toggle recording system sound, microphone, mouse cursor, and finally click on &#8220;<b>Record<\/b>&#8221; button.<\/p>\n<p>It will pop-up the dialog to either choose full-screen. You need to click the &#8220;Built-in display&#8221; or other monitor (if any) and then click &#8220;Share&#8221; to start recording.<\/p>\n<div id=\"attachment_35376\" style=\"width: 562px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-monitor.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-35376\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-monitor.png\" alt=\"\" width=\"552\" height=\"423\" class=\"size-full wp-image-35376\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-monitor.png 552w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-monitor-300x230.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><p id=\"caption-attachment-35376\" class=\"wp-caption-text\">Record full-screen &#8211; Need to click select display<\/p><\/div>\n<p>Or, choose &#8220;Single Window&#8221; and select between all opened app windows. <\/p>\n<div id=\"attachment_35377\" style=\"width: 562px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-select-window.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-35377\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-select-window.png\" alt=\"\" width=\"552\" height=\"423\" class=\"size-full wp-image-35377\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-select-window.png 552w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2021\/10\/kooha-select-window-300x230.png 300w\" sizes=\"auto, (max-width: 552px) 100vw, 552px\" \/><\/a><p id=\"caption-attachment-35377\" class=\"wp-caption-text\">Kooha record app window<\/p><\/div>\n<p>When recording starts, the app window counts up with button to stop. Though it also has keyboard shortcut <b>Ctrl+R<\/b> to toggle record.<\/p>\n<h3>How to Uninstall Kooha:<\/h3>\n<p>To remove the Kooha screen recorder app, open terminal and run command:<\/p>\n<pre>flatpak uninstall --delete-data io.github.seadve.Kooha<\/pre>\n<p>And to restore the stock pipewire system service, run command to install ppa-purge and purge the Ubuntu PPA will do the trick:<\/p>\n<pre>sudo apt install ppa-purge && sudo ppa-purge ppa:pipewire-debian\/pipewire-upstream<\/pre>\n<p>That&#8217;s all. Enjoy!<\/p>","protected":false},"excerpt":{"rendered":"<p>Looking for how to record Ubuntu desktop in Wayland session? Here&#8217;s how to do it in Ubuntu 21.10 using Kooha. Ubuntu switched to &#8220;Wayland&#8221; session since Ubuntu 21.04. However, many apps, e.g., Kazam, Peek and vokoscreen-NG, do not support it. Some apps including OBS-Studio claim to support for Wayland, but either record blank screen or [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":35368,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[693],"class_list":["post-35367","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-wayland"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/35367","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=35367"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/35367\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/35368"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=35367"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=35367"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=35367"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}