Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GeorgiAngelov opened this issue Jan 5, 2014 · 5 comments

Comments

@GeorgiAngelov
Copy link

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?

@fsphil
Copy link
Owner

fsphil commented Dec 1, 2014

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

@JuliaScythe
Copy link

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
Copy link

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.

@ruralkan
Copy link

ruralkan commented Dec 9, 2015

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

@JuliaScythe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants