Hi, ich experimentiere gerade etwas mit meiner Webcam rum. Mit Cheese funktioniert sie einwandfrei, aber mit allen anderen Programmen (camorama, gqcam, vlc) komme ich nicht zurecht.
Ich vermute, dass es etwas mit V4L und V4L2 zu tun hat, komme aber nicht dahinter, wie ich das Problem lösen kann.
Der Hintergrund ist der, das ich mit OpenCV Bilder von der Webcam auswerten möchte. Ich habe allerdings das Problem, das alle Beispiele die Webcam nicht finden. Ich vermute, dass das Programm auf V4L zugreift, aber hier funktioniert praktisch kein Programm.
camorama verabschiedet sich lapidar mit "Unable to capture image", vlc macht gar nichts, wenn ich V4L2 einstelle, bei V4L spuckt vlc in der Konsole nur "v4l demux error: failed capturing new frame" aus.
Das Programm "motion" spuckt ein paar mehr Informationen aus.
[0] Processing thread 0 - config file /etc/motion/motion.conf [0] Motion 3.2.11 Started [0] ffmpeg LIBAVCODEC_BUILD 3410688 LIBAVFORMAT_BUILD 3414017 [0] Thread 1 is from /etc/motion/motion.conf [1] Thread 1 started [1] cap.driver: "spca561" [1] cap.card: "Camera" [1] cap.bus_info: "0000:00:1d.1" [1] cap.capabilities=0x05000001 [1] - VIDEO_CAPTURE [1] - READWRITE [1] - STREAMING [1] Supported palettes: [1] 0: S561 (S561) [1] 1: GBRG (GBRG) [1] Unable to find a compatible palette format. [0] motion-httpd/3.2.11 running, accepting connections [0] motion-httpd: waiting for data on port TCP 8080 [1] Using VIDEO_PALETTE_YUV420P palette [1] Using V4L1 [1] Resizing pre_capture buffer to 1 items [1] Started stream webcam server in port 8081 [1] sync error in proc 9017: Invalid argument [1] mcapture error in proc 9017: Invalid argument [1] Video device fatal error - Closing video device [1] Closing video device /dev/video0 [1] Retrying until successful connection with camera [1] cap.driver: "spca561" [1] cap.card: "Camera" [1] cap.bus_info: "0000:00:1d.1" [1] cap.capabilities=0x05000001 [1] - VIDEO_CAPTURE [1] - READWRITE [1] - STREAMING [1] Supported palettes: [1] 0: S561 (S561) [1] 1: GBRG (GBRG) [1] Unable to find a compatible palette format. [1] Using VIDEO_PALETTE_YUV420P palette [1] Using V4L1 [1] sync error in proc 9017: Invalid argument [1] mcapture error in proc 9017: Invalid argument [1] Video device fatal error - Closing video device [1] Closing video device /dev/video0 ^C[0] httpd - Finishing [0] httpd Closing [0] httpd thread exit
Ich habe den Eindruck, das nur V4L2 Programme noch richtig funktionieren. Muss ich irgendwas nachinstallieren oder muss OpenCV bzw CVtypes an V4L2 angepasst werden?
EDIT: der Vollständigkeit halber. lsusb spuckt diese Werte zur Cam aus
Bus 003 Device 004: ID 046d:092f Logitech, Inc. QuickCam Express Plus