Camera not working with Cheese
#1
I tried Cheese and my webcam is not recognized. Here's the output of starting Cheese from the command line:

Code:
[cypress@pinebook ~]$ cheese

(cheese:1594): GLib-GObject-CRITICAL **: 06:15:32.393: g_value_dup_string: assertion 'G_VALUE_HOLDS_STRING (value)' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.498: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.498: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.498: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.498: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.499: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.499: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.499: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.499: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.532: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.532: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.532: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.532: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.532: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.532: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.533: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GStreamer-CRITICAL **: 06:15:32.533: gst_value_set_int_range_step: assertion 'start < end' failed

(cheese:1594): GLib-GObject-CRITICAL **: 06:15:32.541: g_value_dup_string: assertion 'G_VALUE_HOLDS_STRING (value)' failed

(cheese:1594): cheese-WARNING **: 06:15:32.586: Encoder on device /dev/video1 has no supported input format: ../gstreamer/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c(148): gst_v4l2_video_enc_open (): /GstCameraBin:camerabin/GstEncodeBin:image-encodebin/v4l2jpegenc:v4l2jpegenc0


(cheese:1594): cheese-WARNING **: 06:15:32.589: Could not initialize supporting library.: ../gstreamer/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoencoder.c(1797): gst_video_encoder_change_state (): /GstCameraBin:camerabin/GstEncodeBin:image-encodebin/v4l2jpegenc:v4l2jpegenc0:
Failed to open encoder


(cheese:1594): cheese-WARNING **: 06:15:32.599: Encoder on device /dev/video1 has no supported input format: ../gstreamer/subprojects/gst-plugins-good/sys/v4l2/gstv4l2videoenc.c(148): gst_v4l2_video_enc_open (): /GstCameraBin:camerabin/GstEncodeBin:image-encodebin/v4l2jpegenc:v4l2jpegenc0


(cheese:1594): cheese-WARNING **: 06:15:32.600: Could not initialize supporting library.: ../gstreamer/subprojects/gst-plugins-base/gst-libs/gst/video/gstvideoencoder.c(1797): gst_video_encoder_change_state (): /GstCameraBin:camerabin/GstEncodeBin:image-encodebin/v4l2jpegenc:v4l2jpegenc0:
Failed to open encoder

lsusb sees the device:

Code:
[cypress@pinebook ~]$ lsusb
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 0c45:6321 Microdia HP Integrated Webcam
Bus 002 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 002: ID 258a:001e HAILUCK CO.,LTD USB KEYBOARD
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



here's the output of dmesg:


Code:
[cypress@pinebook ~]$  dmesg|grep video
[    5.836813] videodev: Linux video capture interface: v2.00
[    5.951651] rockchip-rga ff680000.rga: Registered rockchip-rga as /dev/video0
[    6.015722] rkvdec ff660000.video-codec: Adding to iommu group 1
[    6.016514] hantro-vpu ff650000.video-codec: Adding to iommu group 0
[    6.031796] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video1
[    6.032507] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video2
[    6.753950] usbcore: registered new interface driver uvcvideo



here's the output of ls in /dev:


Code:
[cypress@pinebook ~]$ ls -la /dev | grep video
crw-rw----  1 root video  29,  0 aug 17 06:07 fb0
crw-rw----+  1 root video  239,  0 aug 17 06:07 media0
crw-rw----+  1 root video  239,  1 aug 17 06:07 media1
crw-rw----+  1 root video  239,  2 aug 17 06:07 media2
crw-rw----+  1 root video  81,  0 aug 17 06:07 video0
crw-rw----+  1 root video  81,  1 aug 17 06:07 video1
crw-rw----+  1 root video  81,  2 aug 17 06:07 video2
crw-rw----+  1 root video  81,  3 aug 17 06:07 video3
crw-rw----+  1 root video  81,  4 aug 17 06:07 video4
crw-rw----+  1 root video  81,  5 aug 17 06:07 video5



Tried disabling privacy through the privacy switch then turning it back on again. Rebooted - same issue.
Any ideas?
  Reply
#2
Hello, you should follow these steps to solve your problem:
1. Update packages: Make sure your system is up to date by running the following commands:


Code:
bash
sudo apt update
sudo apt upgrade

2. Install missing codecs: Cheese may require additional codecs to work properly. Install the necessary GStreamer plugins by running:


Code:
bash
sudo apt install gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly

3. Check video device permissions: Ensure that your user has the necessary permissions to access the video devices. Add your user to the video group by running:


Code:
bash
sudo usermod -aG video $USER

4. Verify video device settings: Check if the video device settings are correct. Run the following command to list the device settings:


Code:
bash
v4l2-ctl --list-formats-ext -d /dev/video1

Replace /dev/video1 with the appropriate device if needed. Make sure that the listed formats are supported by the webcam.

5. Try a different application: Test your webcam with another application to see if the issue is specific to Cheese. You can try using VLC media player or another webcam application to check if the webcam is recognized and working properly.

6. Reinstall Cheese: If none of the above steps work, consider reinstalling Cheese. First, remove the existing installation:


Code:
bash
sudo apt remove cheese

Then, install it again:


Code:
bash
sudo apt install cheese
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  USB 3 port not working with Armbian zaius 3 819 11-13-2023, 01:54 PM
Last Post: zaius
  5GHz wifi not working snorwood 11 5,486 01-16-2023, 03:41 PM
Last Post: ehcorn
  Pinebook Pro wifi not working Queliffrel 1 1,289 11-30-2022, 06:30 AM
Last Post: myself600
  Resume from suspend not working after flashing Tow-Boot to SPI xp19375 3 1,937 10-31-2022, 10:14 AM
Last Post: wdt
  Webcam not working in Manjaro with Cheese, but works in Armbian petaramesh 1 1,084 09-30-2022, 10:09 AM
Last Post: crazyquark
  Help with Kali Linux wifi not working but works with Manjaro PineSupporter 2 2,349 08-25-2022, 02:15 PM
Last Post: Niko
Bug Pinebook Pro NVME stopped working secretagentdude 4 5,367 12-17-2021, 06:23 PM
Last Post: pinemouth
  Working suspend on Manjaro brzegorz 3 5,118 12-03-2021, 01:39 PM
Last Post: rik-shaw
  WORKING Moonlight with FFMpeg on 5.10.11 ShootTheMoon2 2 3,226 11-12-2021, 09:42 PM
Last Post: tblindba
  red/green power led not working with kernel 5.14 alchemist 4 3,750 11-04-2021, 04:09 AM
Last Post: alchemist

Forum Jump:


Users browsing this thread: 1 Guest(s)