fswebcam icon indicating copy to clipboard operation
fswebcam copied to clipboard

getting "Unable to find compatible palette format" with Logitec C920.

Open GeorgiAngelov opened this issue 11 years ago • 5 comments

Hey guys so this is what I get. I am trying to use my Logitec camera and I cannot seem to get my image.

pi@raspberrypi /dev $ fswebcam -f image.mjpg -v --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. src_v4l2_get_capability,87: /dev/video0 information: src_v4l2_get_capability,88: cap.driver: "uvcvideo" src_v4l2_get_capability,89: cap.card: "HD Pro Webcam C920" src_v4l2_get_capability,90: cap.bus_info: "usb-bcm2708_usb-1.3" src_v4l2_get_capability,91: cap.capabilities=0x04000001 src_v4l2_get_capability,92: - VIDEO_CAPTURE src_v4l2_get_capability,103: - STREAMING No input was specified, using the first. src_v4l2_set_input,181: /dev/video0: Input 0 information: src_v4l2_set_input,182: name = "Camera 1" src_v4l2_set_input,183: type = 00000002 src_v4l2_set_input,185: - CAMERA src_v4l2_set_input,186: audioset = 00000000 src_v4l2_set_input,187: tuner = 00000000 src_v4l2_set_input,188: status = 00000000 src_v4l2_set_pix_format,541: Device offers the following V4L2 pixel formats: src_v4l2_set_pix_format,554: 0: [0x56595559] 'YUYV' (YUV 4:2:2 (YUYV)) src_v4l2_set_pix_format,554: 1: [0x34363248] 'H264' (H.264) src_v4l2_set_pix_format,554: 2: [0x47504A4D] 'MJPG' (MJPEG) Unable to find a compatible palette format.

Any suggestions?

GeorgiAngelov avatar Jan 05 '14 18:01 GeorgiAngelov

YUYV and MJPG are supported formats so in theory this should work. On some cameras not all colour pixel formats are available at all resolutions. It might be worth trying some different images sizes or forcing a pixel format using -p

fsphil avatar Dec 01 '14 22:12 fsphil

I have the same issue: pi@bilbobaggins~ $ fswebcam -v --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. src_v4l2_get_capability,87: /dev/video0 information: src_v4l2_get_capability,88: cap.driver: "uvcvideo" src_v4l2_get_capability,89: cap.card: "UVC Camera (046d:0804)" src_v4l2_get_capability,90: cap.bus_info: "usb-bcm2708_usb-1.4" src_v4l2_get_capability,91: cap.capabilities=0x84000001 src_v4l2_get_capability,92: - VIDEO_CAPTURE src_v4l2_get_capability,103: - STREAMING No input was specified, using the first. src_v4l2_set_input,181: /dev/video0: Input 0 information: src_v4l2_set_input,182: name = "Camera 1" src_v4l2_set_input,183: type = 00000002 src_v4l2_set_input,185: - CAMERA src_v4l2_set_input,186: audioset = 00000000 src_v4l2_set_input,187: tuner = 00000000 src_v4l2_set_input,188: status = 00000000 src_v4l2_set_pix_format,541: Device offers the following V4L2 pixel formats: src_v4l2_set_pix_format,554: 0: [0x56595559] 'YUYV' (YUV 4:2:2 (YUYV)) src_v4l2_set_pix_format,554: 1: [0x47504A4D] 'MJPG' (MJPEG)

JuliaScythe avatar Jul 09 '15 15:07 JuliaScythe

pi@bilbobaggins~ $ fswebcam -v -p MJPEG --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. src_v4l2_get_capability,87: /dev/video0 information: src_v4l2_get_capability,88: cap.driver: "uvcvideo" src_v4l2_get_capability,89: cap.card: "UVC Camera (046d:0804)" src_v4l2_get_capability,90: cap.bus_info: "usb-bcm2708_usb-1.4" src_v4l2_get_capability,91: cap.capabilities=0x84000001 src_v4l2_get_capability,92: - VIDEO_CAPTURE src_v4l2_get_capability,103: - STREAMING No input was specified, using the first. src_v4l2_set_input,181: /dev/video0: Input 0 information: src_v4l2_set_input,182: name = "Camera 1" src_v4l2_set_input,183: type = 00000002 src_v4l2_set_input,185: - CAMERA src_v4l2_set_input,186: audioset = 00000000 src_v4l2_set_input,187: tuner = 00000000 src_v4l2_set_input,188: status = 00000000 src_v4l2_set_pix_format,541: Device offers the following V4L2 pixel formats: src_v4l2_set_pix_format,554: 0: [0x56595559] 'YUYV' (YUV 4:2:2 (YUYV)) src_v4l2_set_pix_format,554: 1: [0x47504A4D] 'MJPG' (MJPEG) Unable to find a compatible palette format.

JuliaScythe avatar Jul 09 '15 15:07 JuliaScythe

You can try:

You will most likely need the video4linux support libraries.

Check if you have them already.

locate v4l1compat.so In my case, the output is /usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so, yours might be different if you're on 32bit.

If it't not there, just install it:

sudo apt-get install libv4l-0 and try to locate it again.

Try to launch cheese with preloading the library

LD_PRELOAD=/usr/lib/your-path-to-lib/v4l1compat.so fswebcam test.jpeg

ruralkan avatar Dec 09 '15 20:12 ruralkan

Thank you, but a few days later the webcam broke, so I just bought a new one.

JuliaScythe avatar Dec 22 '15 20:12 JuliaScythe