kazam worked fine on ubuntu 19.04, recording audio and video, and showing the red rectangular border during screencast recording;

after installing ubuntu 20.04, kazam (from the repository) records video with no sound and does not show the red border as a visual cue so you know which part of screen is recorded

I looked at pavucontrol and nothing is muted, the sound is fine, it is just that kazam is not recording the sound

Also, going to File-Preferences in Kazam, in the General tab, the speaker sound is set to off. I can set it on, to max even, but there is no OK or Apply button, so as soon as I close this dialog, upon returning, the speaker sound shows again off as before. And recording with this dialog open and the sound set to max in the dialog, still has no effect, video is recorded muted.

I tried editing the


file manually and set audio_toggled = True and restarted kazam but there was no effect

this is probably not related, but sure doesn't help, that in ubuntu 18.04, installing alsa-utils made available the really nifty and useful text-based commandline audio control/config tool


where you could use arrow keys to adjust the volume of the speakers, headphone etc. The alsamixer from alsa-utils in 20.04 seems to have taken all those options away and seems to have no way of visualizing or adjusting any volumes. Wish I could have the alsamixer from 18.04 that was so much more useful. Here is what alsamixer used to look like:


3 Answers 3


Probable solution to audio problem at #8, #12 of https://bugs.launchpad.net/kazam/+bug/1875530

the fix is to modify this file:


and replace




in all 8 places

  • 9
    One line command to do this: sudo sed "s/time.clock()/time.perf_counter()/g" -i /usr/lib/python3/dist-packages/kazam/pulseaudio/pulseaudio.py May 26, 2020 at 2:17
  • 1
    I just logged in, just to give you an upvote. Awesome hack! Jan 15, 2021 at 20:06
  • another infos? this problem is still here Nov 10, 2021 at 11:51
  • didn't work for me, but replacing whole file with a new one as explained here works: askubuntu.com/a/1234330/1142353 Jan 2, 2022 at 13:10

I tried xvidcap which I used to use before kazam, but after building it from source, I found it records each frame in a separate xwd file. So the solution appears to be to give up on kazam, just like on xvidcap.

I found that ffmpeg can be used to record a screencast like this. First, find out the screen resolution


next, find out the audio source - we are looking for the number of the source that says alsa_output

pactl list sources

then start the screencast

ffmpeg -video_size 1920x1080 -framerate 20 -f x11grab -i :0.0 -f pulse -ac 2 -i 4 output.mp4

in this command, 1920x1080 is the screen resolution output from xrandr

-i 4 is the source number of alsa_output from pactl list sources

-ac 2 set 2 audio channels

-f pulse expected format is pulse audio

-i :0.0 video input from main screen

-f x11grab video input format is X server output format

the video is saved in output.mp4 and to stop the screencast, go to the terminal window and control-C

  • although this works, the problem is the sound gets progressively corrupted after the first few minutes
    – jmarina
    Jul 11, 2020 at 7:04

Fix Kazam No Sound on X11 or XORG =

enter image description here

  • The question is not about Debian.
    – Pilot6
    Jul 9, 2022 at 16:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .