[Workaround] Cheese Blank Screen or Display Corrupted in Ubuntu 22.04

Last updated: May 12, 2022 — 11 Comments

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…

Twitter

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Contact me via ubuntuhandbook1@gmail.com Buy me a coffee: https://ko-fi.com/ubuntuhandbook1

11 responses to [Workaround] Cheese Blank Screen or Display Corrupted in Ubuntu 22.04

  1. I gave up on Cheese on 20.04. I installed Webcamoid and have had no further problems.

    webcamoid
    full featured webcam capture application

  2. Thanks for this helpful info. I got cheese working by changing the resolution.

  3. You are my daughter’s hero! Thanks! :-)

  4. there is no webcam in ubuntu at this end wathever installed, great job again! tablet without webcam!

  5. 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!

  6. Nice article but in my laptop sound doesnt work at all via flatpak or via default cheese.
    Any sugestions?
    Thanks.

  7. Thanks for this helpful info. I got cheese working by changing the resolution too after uninstalling the app and reinstalling via Flatpak as described.

  8. Rushabh Sachin Karade December 11, 2022 at 10:16 am

    Changing resolution worked. Thank you

  9. 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):

      sudo apt update && sudo apt install libclutter-gst-3.0-0=3.0.27-2ubuntu1

      And see if the problem fixed in next boot.

  10. This solved my problem. Thank you so much.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*