{"id":40176,"date":"2022-05-25T14:40:33","date_gmt":"2022-05-25T14:40:33","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=40176"},"modified":"2024-08-01T06:18:26","modified_gmt":"2024-08-01T06:18:26","slug":"record-desktop-with-sound-ubuntu-2204","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/05\/record-desktop-with-sound-ubuntu-2204\/","title":{"rendered":"How to Record Your Desktop with Audio in Ubuntu 22.04 LTS"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-40177\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-logo.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Want to record your screen or app window with sounds? Here&#8217;s how to do this in Ubuntu 22.04 LTS.<\/p>\n<p>Ubuntu 22.04 comes with built-in screen recording UI. By pressing <b>Ctrl+Shift+Alt+R<\/b> key combination on keyboard, you can open it and select recording full-screen or a selection area. However, it does not record audio!<\/p>\n<div id=\"attachment_40178\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/default-screenrecorder.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-40178\" class=\"size-large wp-image-40178\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/default-screenrecorder-600x337.webp\" alt=\"\" width=\"600\" height=\"337\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/default-screenrecorder-600x337.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/default-screenrecorder-300x169.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/default-screenrecorder-768x432.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/default-screenrecorder.webp 1366w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-40178\" class=\"wp-caption-text\">System built-in screen recorder<\/p><\/div>\n<h3>Method 1: Switch to Xorg session:<\/h3>\n<p>There are a few other tools available in system repository that record desktop with audio support. However, most of them do not work in the default Wayland session. As a workaround, you may switch back to the classic Xorg session to get your apps work.<\/p>\n<p>1. Firstly, save your work and log out the current session.<\/p>\n<p>2. In the login screen, click your username, then select &#8220;<b>Ubuntu on Xorg<\/b>&#8221; using the bottom right gear button menu.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/select-xorg.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-38960\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/select-xorg-600x354.webp\" alt=\"\" width=\"600\" height=\"354\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/select-xorg-600x354.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/select-xorg-300x177.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/select-xorg.webp 716w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>3. Finally, type password to login and start recording via your applications.<\/p>\n<p>In case you don&#8217;t know about any screen recording app, here are some that <b>work in Xorg session<\/b> with audio support.<\/p>\n<ul>\n<li><b>Kazam<\/b><\/li>\n<li><b>SimpleScreenRecorder (ssr)<\/b><\/li>\n<li><b>vokoscreen-ng<\/b><\/li>\n<\/ul>\n<p><b>All the 3 are available to install in Ubuntu Software<\/b>. You can alternatively press Ctrl+Alt+T to open terminal, run one of the commands below to install the package in case you hate Ubuntu Software (aka Snap store):<\/p>\n<pre>sudo apt install kazam<\/pre>\n<pre>sudo apt install simplescreenrecorder<\/pre>\n<pre>sudo apt install vokoscreen-ng<\/pre>\n<div id=\"attachment_40179\" style=\"width: 464px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-40179\" class=\"size-full wp-image-40179\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kazam-jammy.webp\" alt=\"\" width=\"454\" height=\"447\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kazam-jammy.webp 454w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kazam-jammy-300x295.webp 300w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><p id=\"caption-attachment-40179\" class=\"wp-caption-text\"><b>Kazam<\/b><\/p><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-9732\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/01\/vokoscreenng1-600x389.png\" alt=\"\" width=\"600\" height=\"389\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/01\/vokoscreenng1.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/01\/vokoscreenng1-450x292.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3>Method 2: Use Kooha<\/h3>\n<p>Except OBS Studio, <a href=\"https:\/\/github.com\/SeaDve\/Kooha\" target=\"_blank\" rel=\"noopener\">Kooha<\/a> is the only screen recorder that works great in the Wayland session as far as I know.<\/p>\n<p>It supports recording your selected <b>app window<\/b>, <b>full-screen<\/b>, and <b>selection area<\/b> along with computer sound and\/or microphone.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-40180\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-mainwindow.webp\" alt=\"\" width=\"343\" height=\"352\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-mainwindow.webp 343w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-mainwindow-292x300.webp 292w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/p>\n<p>Just select the recording mode, enable audio and\/or mouse cursor, and click on &#8220;Record&#8221; button. It will pop-up a new dialog allows to choose either app window or screen display, and start recording after clicking on &#8220;Share&#8221; button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-40181\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/select-window-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/select-window-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/select-window-300x204.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/select-window.webp 622w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>And, it can records video into <b>WebM<\/b>, <b>MKV<\/b>, <b>MP4<\/b>, and <b>GIF<\/b> file formats via the 3 lines icon menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-40182\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/kooha-menu.webp\" alt=\"\" width=\"268\" height=\"245\" \/><\/p>\n<p><b>Tip<\/b>: You may minimize the Kooha counting window during recording process, by clicking the app icon on the dock. Though, you need to first enable &#8216;click minimize&#8217; function by running command in terminal:<\/p>\n<pre>gsettings set org.gnome.shell.extensions.dash-to-dock click-action 'minimize'<\/pre>\n<h4>How to Install Kooha in Ubuntu &amp; Other Linux<\/h4>\n<p>The software so far only provides Linux packages via Flatpak package. If you&#8217;re first time installing a Flatpak package, it&#8217;ll take a few hundred MB more disk space for run-time libraries.<\/p>\n<p>1.) Firstly, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the command below to install the flatpak daemon:<\/p>\n<pre>sudo apt install flatpak<\/pre>\n<p><i>Other Linux may follow this <a href=\"https:\/\/flatpak.org\/setup\/\" target=\"_blank\" rel=\"noopener\">setup guide<\/a> to install the daemon.<\/i><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39141\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-600x229.webp\" alt=\"\" width=\"600\" height=\"229\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-600x229.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-300x115.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy-768x294.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/04\/apt-flatpak-jammy.webp 777w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>2.) Then, install Kooha as Flatpak via command:<\/p>\n<pre>flatpak install https:\/\/dl.flathub.org\/repo\/appstream\/io.github.seadve.Kooha.flatpakref<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-40183\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/flatpak-kooha-600x407.webp\" alt=\"\" width=\"600\" height=\"407\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/flatpak-kooha-600x407.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/flatpak-kooha-300x203.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/flatpak-kooha-768x521.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/flatpak-kooha.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Once installed, click the top-left corner &#8216;Activities&#8217;, then search for and open the app:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-40184\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/open-kooha.webp\" alt=\"\" width=\"546\" height=\"282\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/open-kooha.webp 546w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/open-kooha-300x155.webp 300w\" sizes=\"auto, (max-width: 546px) 100vw, 546px\" \/><\/p>\n<h4>How to Remove Kooha<\/h4>\n<p>Also, in a terminal window (Ctrl+Alt+T) run the command below will remove the package:<\/p>\n<pre>flatpak uninstall --delete-data io.github.seadve.Kooha<\/pre>\n<p>And, clean up the run-time libraries via command <code>flatpak uninsatll --unused<\/code>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Want to record your screen or app window with sounds? Here&#8217;s how to do this in Ubuntu 22.04 LTS. Ubuntu 22.04 comes with built-in screen recording UI. By pressing Ctrl+Shift+Alt+R key combination on keyboard, you can open it and select recording full-screen or a selection area. However, it does not record audio! Method 1: Switch [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":40177,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1425],"class_list":["post-40176","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-desktop-recorder"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/40176","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=40176"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/40176\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/40177"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=40176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=40176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=40176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}