How to Test Webcam on Ubuntu

Ready for a video call? Test your webcam first following the tips here!
Warp Terminal

Considering you have a webcam device connected to your computer or a laptop with webcam, it is a good idea to test if it works before an important video call.

You would rather not troubleshoot when you are in the middle of a video conferencing session, right?

So, how to test the webcam on Ubuntu or your Linux system before the call?

You have a simple solution: you can use the cheese webcam app on your Ubuntu system.

Using Cheese or Snapshot Webcam App on Ubuntu

By default, Ubuntu comes pre-installed with the Cheese webcam app, unless you opted for a minimal installation of Ubuntu.

First, you need to search for the app:

cheese app on ubuntu

And, then launch the app. Upon launching it, your webcam output should be directly visible if there are no configuration errors:

cheese webcam

You should be good to go for the video call for the most part (considering you have checked the audio side too).

πŸ’‘
For a laptop, both the audio/video devices should work as expected out of the box on Ubuntu. But, if it is a PC or if you have external devices connected, you need to ensure the devices are selected in the configuration/preferences of the video call app or service to use it.

And, if it's not visible or if you want to check the resolution/change it, you can head to the app preferences using the hamburger menu icon:

cheese app camera preferences

In my case, I tested it first with a laptop's built-in camera. If you have a separate webcam device connected, you can set it here in the preference, and then test if it is visible to you.

My external webcam device looked like this, with "HD Camera" as the name to select:

external webcam device change

Normally, you should not have an issue with laptops, but you should always check before a video call.

It is also important to keep in mind, your preferences in the Cheese app do not necessarily carry forward to the web app or service you use to make a video call. So, make sure that you check the preferences of the app you use for the video as well.

Fret not, if you do not have a laptop or a separate webcam device, you can also use your phone as a camera and mic:

Using Your Phone as Camera and Mic in Ubuntu
You can use your smartphone if you don’t have a webcam and dedicated mic with your desktop system. Here’s how to do that in Ubuntu Linux.
πŸ“‹
At the time of writing, Ubuntu 24.04 LTS was yet to be released, which could feature the new GNOME app β€” Snapshot as a webcam app instead of Cheese. Just keep that in mind when you try Ubuntu 24.04 LTS, we shall update this article as soon that releases.

Using the CLI

If you want to see if the webcam device is detected on your system using the terminal, you can also do that by typing the following command:

ls -l /dev/video*

If you do not have any video devices connected, it will show you the output that says 'No such file or directory'.

If you have any connected devices, the output will look like this:

webcam connected testing using cli

For each device, you get two lines of output. I added an external webcam, and here you can see the output for the same command:

output when two webcams connected to the laptop

πŸ’¬ How do you prefer to test your webcam? Do you face issues with an external webcam compared to a laptop's built-in cam? Share your thoughts in the comments below!

About the author
Ankush Das

Ankush Das

A passionate technophile who also happens to be a Computer Science graduate. You will usually see cats dancing to the beautiful tunes sung by him.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.