30

Is there a program for Ubuntu that can capture your screen and your webcam at the same time?

1

11 Answers 11

23

guvcview + recordmydesktop

I find guvcview ideal for screencasts, as it can show just the camera on a window and nothing else:

sudo apt-get install guvcview recordmydesktop
guvcview

Then just use any screen recorder. recordmydesktop works fine.

This is a sample screencast: https://www.youtube.com/watch?v=TQ5k2u25eI8

To keep guvcview always on top if you want it on top of another maximized window, you can use the same procedure that works for any Ubuntu program window:

  • right click on the top bar of the window (it contains the title and close button)
  • select "Always on Top"

recordmydesktop alternatives are discussed at: How can I record my screen?

Tested on Ubuntu 18.04.

Non-screencast questions:

ffplay from ffmpeg

The older I get the more I realise that there is nothing ffmpeg can't do when it comes to video:

sudo apt install ffmpeg
ffplay /dev/video0

enter image description here

See also: How to check available webcams from the command line?

Tested in Ubuntu 19.10.

Remove window title bar

I haven't managed this yet:

enter image description here

2
  • This doesn't have show window on top option, so only works within tile setups, e.g. won't work for most people.
    – Suor
    May 29, 2019 at 4:24
  • 2
    @Suor thanks for the comment. One workaround is "right click on menu bar" > "Always on Top", which works for most Ubuntu windows. May 29, 2019 at 6:33
22

16.04 -> 18.04:

Please check How to install Kazam 1.5.3?


14.04:

Kazam 1.5.3 was released recently and it includes some very useful new features:

  • support for webcams: it can record just the webcam or it can display the webcam in a window on top of the screencast;
  • support for broadcasting to YouTube Live;
  • added on-screen keyboard indicator and mouse click indicator;
  • new countdown timer.

Kazam is available in the official Ubuntu repositories, but it's an old version so it doesn't have the new features above. To get the latest Kazam in Ubuntu you can use the Kazam PPA.

Open a terminal and use the following commands:

sudo add-apt-repository ppa:kazam-team/unstable-series
sudo apt-get update
sudo apt-get install kazam python3-cairo python3-xlib

enter image description here

Source: http://www.webupd8.org/2014/08/kazam-screencaster-gets-webcam-and.html

6
  • 4
    It's worth mentioning that the webcam position can be moved around by dragging with Alt pressed. Oct 14, 2015 at 14:25
  • 3
    Webcam is only showing black window
    – k0pernikus
    Jan 4, 2017 at 18:00
  • Even the most recent version of Kazam doesn't seem to allow you to record both a webcam and screen at the same time, as OP is asking.
    – Cerin
    Jul 3, 2018 at 13:36
  • 2
    sudo add-apt-repository ppa:kazam-team/unstable-series; ppa is returning 404 not found Error Sep 16, 2019 at 11:07
  • the webcam records only a few frames i think. frustratingly slow. Mar 26, 2021 at 2:50
15

Kazam 1.5.3 has an option to capture webcam output while screen recording. Unfortunately, it is buggy.

A better alternative is to use vokoscreen. We can install it from software center or from terminal using apt.

sudo apt install vokoscreen

After launching it, you can enable webcam as shown in the picture.

enter image description here

1
  • 2
    Really minimalistic and good soft, does perfectly both screencast and webcam, also can be combined. As for 2020APR Kazam 1.5.3 is buggy - webcam is recorded as black square.
    – Max
    Apr 2, 2020 at 17:59
11

Open Broadcaster Software - aka OBS http://obsproject.com

Used all the time by Youtube and Twitch live streamers or instructors doing tutorials. You can live stream or just record. You can implement green screen, add other overlays.. do anything you want.

1
  • Works great. I've set it up with two webcams plus a program window and the skype call and then share the screen with Skype. Awesome. May 2, 2020 at 7:44
7

you can do is install these two softwares from software center

1.kazam

2.cheese

from software center and do open the cheese as it captures you from the webcam and shows on the screen and use kazam to record the screen ...and thus you can capture your screen and webcam at the same time.

1
  • 3
    I don't like cheese for this because it has that bottom menu. Or can you remove it? Dec 5, 2016 at 23:06
2

vokoscreenNG is a complete rewrite of vokoscreen with a modern UI. It is based on Qt and GStreamer. It is available as snap and can be installed using sudo snap install vokoscreen-ng.

vokoscreenNG

PulseAudio is required to enable microphone (sudo snap install pulseaudio).

3
  • how can you pin web-camera view to front? It's disappearing currently. Apr 4, 2021 at 19:20
  • 1
    My desktop environment (Cinnamon) has an Always on Top option for windows.
    – DurandA
    Apr 4, 2021 at 23:06
  • same for manjaro/gnome! Apr 4, 2021 at 23:20
2

For displaying the webcam on the desktop, I recommend mplayer.

On Ubuntu/Gnome, you can hide the window border and a little shadow as a bonus :

mplayer tv:// -tv driver=v4l2:width=400:height=300 -vo xv -geometry 100%:100% -noborder
# Then in the console again
T
# Press capital T to have always on top activated
0
1

Kazam it seems hasn't been updated since 8/18/2014, obs-studio appears to be active at this time.

0

My personal favorite for this (since recent)is vokoscreen. simple and works great. haven't had any issues with it (on my setup dell latitude 5420 with ubuntu 17.04)

1
  • Thanks this looked great at first, but I couldn't get the sound recording to work seamlessly here on Ubuntu 14.04. Which is weird, because sound recording works perfectly in both kazam and cheese.
    – workflow
    Aug 12, 2017 at 20:19
0

As an alternative, here's a great chrome extension that does the trick: https://www.useloom.com/?ref=247716

It worked perfectly on my Ubuntu 14.04 (being browser-based) and is 100% free as long as you download your videos after capture, and don't keep them in their storage.

I played around with all available offline solutions proposed here, and they all had some nasty glitches on my particular setup. Here's to OS independence!

0

I did a workaround, as Kazam 1.5.3 was not available.

Software: I used camorama and LibreOffice Impress. Camorama is good, because it doesn't show toolbar.

First, on LibreOffice Impress set the presentation mode to Window In the menu Slide Show>Presentation Settings you can adjust to "windows". https://ask.libreoffice.org/en/question/159395/resize-presentation-display-window-to-less-than-full-screen/

Resize both WebCam viewer and LibreOffice windows, so both appear at same time.

You can use your slideshow with mouse/pointer/keyboard as in a normal presentation, while the Webcam is being show.

Not high-end, but it works. Example on my Computer

You must log in to answer this question.

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