How to Record Your Screen and Webcam Together in Linux

Arumusutakimu
1 min readJul 3, 2022

Hi! In this article, I’m going to show you, how to record your screen and webcam together in Linux.

Example for recording screen and webcam together

May be you have seen some tutorial videos on youtube, etc. where’s the video displays the screen of monitor and also the person who creates the tutorial (his face while he’s explaining). So, you can do this in Linux easily.

There’re 2 applications needed:

  • Recorder, you can use like simplescreenrecorder, kazam, obs, or something else. In this article, I will use simplescreenrecorder.
  • Mplayer

Install these applications via terminal :

(For Debian/Ubuntu-based,)

sudo apt update

sudo apt install simplescreenrecorder mplayer

NB : If you use another linux distribution, just install via package manager depends your distro.

After installing the applications, run this command via terminal :

mplayer tv:// -tv driver=v4l2:width=230:height=230 -vo xv -geometry 100%:100% -noborder

Then the window for webcam will be shown.

Lastly, keep mplayer window always on top by right click on window tab manager and select always on top.
Or run in terminal :

wmctrl -r :SELECT: -b add,above

then click the window which want to make it always on top. Then record the screen with simplescreenrecorder.

--

--