Hi, Am trying to get my webcam to work with the motion app. The webcam is working fine with VLC, I can save the webcam's output to a file without any problems, but the motion app fails with the same webcam with "Unable to find a compatible palette format" error (see [1] below).
Some people seem to be able to resolve this error by preloading v4l1compat.so, tried that, the error message seems a bit different but the app still doesn't work for me (see [2] below). Any ideas? Thanks $ cat /proc/version Linux version 3.2.0-4-amd64 (debian-ker...@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP Debian 3.2.63-2+deb7u2 [1] $ /usr/bin/motion -n [0] Processing thread 0 - config file /etc/motion/motion.conf [0] Motion 3.2.12 Started [0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785 [0] Thread 1 is from /etc/motion/motion.conf [0] motion-httpd/3.2.12 running, accepting connections [0] motion-httpd: waiting for data on port TCP 8080 [1] Thread 1 started [1] cap.driver: "uvcvideo" [1] cap.card: "GENERAL - UVC " [1] cap.bus_info: "usb-0000:00:12.2-1" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Config palette index 8 (YU12) doesn't work. [1] Supported palettes: [1] 0: MJPG (MJPEG) [1] Selected palette MJPG [1] VIDIOC_TRY_FMT failed for format MJPG: Input/output error [1] Unable to find a compatible palette format. [1] ioctl (VIDIOCGCAP): Invalid argument [1] Could not fetch initial image from camera [1] Motion continues using width and height from config file(s) [1] Resizing pre_capture buffer to 1 items [1] Started stream webcam server in port 8081 [1] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "GENERAL - UVC " [1] cap.bus_info: "usb-0000:00:12.2-1" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Config palette index 8 (YU12) doesn't work. [1] Supported palettes: [1] 0: MJPG (MJPEG) [1] Selected palette MJPG [1] VIDIOC_TRY_FMT failed for format MJPG: Input/output error [1] Unable to find a compatible palette format. [1] ioctl (VIDIOCGCAP): Invalid argument [1] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "GENERAL - UVC " [1] cap.bus_info: "usb-0000:00:12.2-1" [1] cap.capabilities=0x04000001 [1] - VIDEO_CAPTURE [1] - STREAMING [1] Config palette index 8 (YU12) doesn't work. [1] Supported palettes: [1] 0: MJPG (MJPEG) [1] Selected palette MJPG [1] VIDIOC_TRY_FMT failed for format MJPG: Input/output error [1] Unable to find a compatible palette format. [1] ioctl (VIDIOCGCAP): Invalid argument ^C[1] Thread exiting [0] httpd - Finishing [0] httpd Closing [0] httpd thread exit [0] Motion terminating [2] $ LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libv4l/v4l1compat.so /usr/bin/motion -n [0] Processing thread 0 - config file /etc/motion/motion.conf [0] Motion 3.2.12 Started [0] ffmpeg LIBAVCODEC_BUILD 3482368 LIBAVFORMAT_BUILD 3478785 [0] Thread 1 is from /etc/motion/motion.conf [1] Thread 1 started [0] motion-httpd/3.2.12 running, accepting connections [0] motion-httpd: waiting for data on port TCP 8080 [1] cap.driver: "uvcvideo" [1] cap.card: "GENERAL - UVC " [1] cap.bus_info: "usb-0000:00:12.2-1" [1] cap.capabilities=0x05000001 [1] - VIDEO_CAPTURE [1] - READWRITE [1] - STREAMING [1] Test palette YU12 (320x240) libv4l2: error setting pixformat: Input/output error [1] Error setting pixel format VIDIOC_S_FMT: Input/output error [1] Config palette index 8 (YU12) doesn't work. [1] Supported palettes: [1] 0: MJPG (MJPEG) [1] 1: RGB3 (RGB3) [1] 2: BGR3 (BGR3) [1] 3: YU12 (YU12) [1] 4: YV12 (YV12) [1] Selected palette YU12 [1] Test palette YU12 (320x240) libv4l2: error setting pixformat: Input/output error [1] Error setting pixel format VIDIOC_S_FMT: Input/output error [1] VIDIOC_TRY_FMT failed for format YU12: Input/output error [1] Unable to find a compatible palette format. libv4l2: error setting pixformat: Input/output error libv4l1: error setting pixformat: Input/output error [1] Failed with YUV420P, trying YUV422 palette: Input/output error [1] Failed with YUV422, trying YUYV palette: Invalid argument [1] Failed with YUYV, trying RGB24 palette: Invalid argument libv4l2: error setting pixformat: Input/output error libv4l1: error setting pixformat: Input/output error [1] Failed with RGB24, trying GREYSCALE palette: Input/output error [1] Failed with all supported palettes - giving up: Invalid argument [1] Could not fetch initial image from camera [1] Motion continues using width and height from config file(s) [1] Resizing pre_capture buffer to 1 items [1] Started stream webcam server in port 8081 [1] Retrying until successful connection with camera [1] cap.driver: "uvcvideo" [1] cap.card: "GENERAL - UVC " [1] cap.bus_info: "usb-0000:00:12.2-1" [1] cap.capabilities=0x05000001 [1] - VIDEO_CAPTURE [1] - READWRITE [1] - STREAMING [1] Test palette YU12 (320x240) libv4l2: error setting pixformat: Input/output error [1] Error setting pixel format VIDIOC_S_FMT: Input/output error [1] Config palette index 8 (YU12) doesn't work. [1] Supported palettes: [1] 0: MJPG (MJPEG) [1] 1: RGB3 (RGB3) [1] 2: BGR3 (BGR3) [1] 3: YU12 (YU12) [1] 4: YV12 (YV12) [1] Selected palette YU12 [1] Test palette YU12 (320x240) libv4l2: error setting pixformat: Input/output error [1] Error setting pixel format VIDIOC_S_FMT: Input/output error [1] VIDIOC_TRY_FMT failed for format YU12: Input/output error [1] Unable to find a compatible palette format. libv4l2: error setting pixformat: Input/output error libv4l1: error setting pixformat: Input/output error [1] Failed with YUV420P, trying YUV422 palette: Input/output error [1] Failed with YUV422, trying YUYV palette: Invalid argument [1] Failed with YUYV, trying RGB24 palette: Invalid argument libv4l2: error setting pixformat: Input/output error libv4l1: error setting pixformat: Input/output error [1] Failed with RGB24, trying GREYSCALE palette: Input/output error [1] Failed with all supported palettes - giving up: Invalid argument ^C[0] httpd - Finishing [0] httpd Closing [0] httpd thread exit [1] Thread exiting [0] Motion terminating -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/1421117118.13875.yahoomailba...@web126102.mail.ne1.yahoo.com