Cheese, the default app for taking photos or recording via webcam, is not working properly in my case in Ubuntu 22.04.
By launching the app, webcam light turns on and persists only for a few seconds. Then it displays a blank screen with following text:
“There was an error playing video from the webcam”
According to the Ubuntu bug report and the upstream one, it seems to have something to do with the patch for MJPEG output support that causes issue on low end PC (I guess).
And, here are a few workarounds that works in my laptop with HP TrueVision HD Camera.
Workaround 1: Change output resolution
Firstly, launch Cheese and open “Preference” dialog from the hamburger menu. When it opens, change the resolution from 1280×720 to 640×480. Then close the app.
Next, launch Cheese again. It display a blank screen but camera light keeps on in my case. Continue decreasing the resolution until it works again. Then switch back a higher photo/video resolution.
However, the highest 1280×720 resolution produces a corrupted display just as the bug reported. While 640×480 works great in my case.
Workaround 2: Install Cheese 3.38 via Flatpak
The previous v3.38 does not has the issue. It’s available to install via the universal Flatpak package.
1. Firstly, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run command to install the daemon:
sudo apt install flatpak
2. Next, install Cheese as Flatpak using command:
flatpak install https://dl.flathub.org/repo/appstream/org.gnome.Cheese.flatpakref
There’ll be a few hundreds more MB run-time libraries to install for the first time.
Finally, run the command below to launch the Flatpak to see if it works:
flatpak run org.gnome.Cheese
3. (Optional) Remove the pre-installed Cheese package.
The make the app icon in search result to launch Cheese as Flatpak instead of the pre-installed package. You may remove the original package via command:
sudo apt remove cheese
And a system restart is required if you’re first time installing an app as Flatpak.
How to Restore
To remove the Flatpak package, use command:
flatpak uninstall --delete-data org.gnome.Cheese
And install back the original Cheese package using command:
sudo apt install cheese
Workaround 3: PPA with Cheese package (patched)
As @matthew.ruffell mentioned in the bug report, revert the commit will make it work again. This could be a workaround until the upstream fixed the issue. However, in my build the 1280×720 resolution just disappeared…
I gave up on Cheese on 20.04. I installed Webcamoid and have had no further problems.
webcamoid
full featured webcam capture application
Thanks for this helpful info. I got cheese working by changing the resolution.
You are my daughter’s hero! Thanks! :-)
there is no webcam in ubuntu at this end wathever installed, great job again! tablet without webcam!
The image was in a looping rewind as soon as I started cheese. The flatpak solution was the only way to make it work. Thank you!
Nice article but in my laptop sound doesnt work at all via flatpak or via default cheese.
Any sugestions?
Thanks.
Thanks for this helpful info. I got cheese working by changing the resolution too after uninstalling the app and reinstalling via Flatpak as described.
Changing resolution worked. Thank you
there is a fix for that, I am waiting for dev to respond how to install the fix but it’s name is:
clutter-gst-3.0 – 3.0.27-2ubuntu1
i the “name” on this webside:
https://bugs.launchpad.net/ubuntu/+source/cheese/+bug/1967843
they said that it should be in -update packages but it’s 20 July and it seems that it’s not in mine.
Try running command in terminal (Ctrl+Alt+T):
And see if the problem fixed in next boot.
This solved my problem. Thank you so much.