Is there a way to record my screen, as well as the internal audio? Like, if I were recording a game, it would record the screen, and the sounds from the game.
5 Answers
SimpleScreenRecorder (source code) did the trick for me when recording online playing videos. It has an (experimental) OpenGL feature. On Ubuntu:
sudo apt update
sudo apt install simplescreenrecorder
With the OpenGL feature you can select to record a specific application window. So you can even keep working while recording in the background. Don't play any music though, because the audios will mix together (unless, of course, you are a DJ ;) )

- 15,657
-
1Works exceptionally well! Nice internal audio recording, awesome that encoding speed can be changed to get fluent higher framerate! – Rasmus May 31 '17 at 20:37
-
I can not recommend this enough. It works and it is intuitive – give it a shot! – peterhil Sep 02 '17 at 01:13
-
As of 17.04 it is in the official repositories and you don't need to add the PPA. – Scimonster Dec 26 '17 at 12:18
-
2
-
@MycrofD yes it does - make sure you are using the correct audio input source (built-in worked for me). – BenedictWilkins Jun 10 '20 at 09:56
-
2021 update: you don't need the extra PPA,
simplescreenrecorder
is now included in the standard repositories (universe). – Ufos Feb 20 '21 at 16:38 -
1simplescreenrecorder worked for me too. Under Audio set Backend to PulseAudio, and set Source to whatever device your sound comes out of.
You can control whether or not it also records external audio (from the computer's microphone): while simplescreenrecorder is recording, open pavucontrol (the GUI for PulseAudio volume control). In the Recording tab, to get internal audio only, select 'Monitor of Built-in Analog Stereo'. Or if you want both internal and external audio select 'Built-in Analog Stereo'.
I'd ignore OpenGL unless you know you need it, it seems to be a more advanced option.
– user2852263 Mar 04 '21 at 07:50 -
Did not work with me. Error '[PageRecord::StartOutput] Error: An error occurred during initialization.' I tried changing the video/audio settings but nothing. Ubuntu 20.04 – rmsys May 10 '23 at 12:12
-
I'm using this bad boy every day now to record my work and you can start with the last settings used in hidden-mode:
simplescreenrecorder --start-recording --start-hidden
. << Time saver right there – Juan Javier Triff Cabanas May 30 '23 at 16:21 -
Be carefull, after installing and starting this my Remotedekstop connection was no longer working... – Boern Aug 18 '23 at 14:47
-
@Boern were you recording on the remote computer? If that is the case a workaround could be to record on your computer while remoting in full screen. – Juan Javier Triff Cabanas Aug 22 '23 at 17:28
Maybe RecordMyDesktop could work for you? It has the ability to record your screen and audio, but I'm not sure if it supports games.
You can install it with
sudo apt-get install recordmydesktop
If you want a GUI, you need to also install one of the packages gtk-recordmydesktop
(GTK) or recorditnow
(Qt)
It is discontinued but it does work as expected.
-
It's quite hard to use it with Games unfortunately, I found the OpenGL recorder quite bad last time I tried it – MrVaykadji Mar 17 '14 at 16:41
-
This worked otherwise, but I did not get internal audio straight or not with Jack.
The UI is quite unintuitive also – the first time I had five recordings going on before I realised the big squares on the panel are meant to represent stop symbols! And I am a graphic designer in addition to being a programmer...
– peterhil Sep 02 '17 at 01:03 -
-
Does the
recordmydesktop
process store data into a disk while recording, or holds everything in RAM and flashes the data only when you signal to terminate the process? – mercury0114 Aug 22 '20 at 20:32 -
@mercury0114: It records to disk. Once you terminate the process, it appears to do some conversion to a more appropriate compressed format. – Nav Dec 26 '21 at 12:41
vokoscreen-ng works for me and it meets your requirements:
- record my screen
- record internal audio As well as:
- record you from web-camera
- record your mic
It works for Windows and Linux systems as well.
For Ubuntu you may install it with Ubuntu Software or with command:
sudo apt install vokoscreen-ng

- 181
-
This says "audio recording not implemente" when you try to record from mic – Kenn Jan 05 '24 at 05:09
1
. Install OBS as in: https://github.com/jp9000/obs-studio/wiki/Install-Instructions#linux
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update && sudo apt-get install obs-studio
2
. Open OBS; in the Mixer panel, click the "gear" of "Desktop Audio", then "Properties" and Select "Built-In Audio Analog Stereo"
3
. Again in the Mixer panel, silence the microphone/Aux clicking on
its volume icon
4a
. Video_Source_Method_1. In the "Sources" panel, click the + and Select Screen Capture XSHM. Saves mouse pointer if box checked.
4b
. Video_Source_Method_2. Install VLC: (doesn't save mouse)
sudo snap install vlc
source- Install plugin:
sudo apt install vlc-plugin-access-extra
source - In VLC: "Capture Device": "Desktop", configure "MRL"
screen://
. You should see your screen inside VLC - In OBS, in "Sources" panel, add + VLC video source, configure ⚙; in "playlist"; +; add path
screen://
5
. If Studio Mode active, click Transition in the center of the screen, you have to see your screen in the right window now.
6
. if desired change the output folder: At the "Controls" panel (right-side), click "Settings", then click "Output" in the left menu.
7
. Finally, click Start Recording in "Controls" panel.

- 850
-
With Debian derivative OBS didn't need any PPA but it was part of the distribution packages. And it recorded both my mic and the desktop/computer at the same time by default, just as I needed – Csaba Toth Feb 04 '21 at 12:57
I am using recordscreen.py Python script. It launches ffmpeg
or avconv
behind the scenes, so make sure you have them installed.
Record entire desktop to output.mkv
at 15 FPS:
recordscreen.py output.mkv
Record at 30 FPS with different audio and video codec:
recordscreen.py -r 30 --vcodec=vp8 --acodec=pcm output.mkv
Or record into .webm
:
recordscreen.py output.webm
I haven't tried recording games with it, so I will be interested to hear how it goes.
And just for historical perspective here's one of the earliest blog posts about it.

- 70,465

- 2,511
-
There are gazillions of screen recorders out there. The gotcha in the question is the recording of the internal audio. How can I record the internal audio, a.k.a. for example if I play a video on a website, the audio stream of that – Csaba Toth Jan 31 '21 at 17:15
-
@CsabaToth some freshman is needed to research that use case.
ffpmeg
docs are referencing to ALSA for that. http://trac.ffmpeg.org/wiki/Capture/ALSA#Recordaudiofromanapplicationwhilealsoroutingtheaudiotoanoutputdevice but inrecordscreen.py
DEFAULT_CAPTURE_AUDIO_DEVICE = "pulse"
. – anatoly techtonik Feb 04 '21 at 11:17 -
Im getting
Unknown encoder libvo_aacenc
error trying this approach – Arjuna Deva Jul 05 '22 at 07:40
glc
: see my answer for this question. – Jan 06 '13 at 19:52