Привет! У меня есть вебка Logitech C100. Хочу делать снимки изображений при помощи fswebcam. При выполнении fswebcam image.jpg получаю следующий вывод Код (Text): pi@raspberrypi:~ $ fswebcam image.jpg --- Opening /dev/video0... Trying source module v4l2... /dev/video0 opened. No input was specified, using the first. Adjusting resolution from 384x288 to 352x288. И картинку с черным изображением и временной меткой. Изначально подумал, что проблема с вебкой. Установил luvcview и запустил с параметрами "-s 640x480 -i 30". Изображение успешно получил. Код (Text): [Fri Apr 26 21:53:37 2019] usb 1-1.4: new high-speed USB device number 5 using dwc_otg [Fri Apr 26 21:53:37 2019] usb 1-1.4: New USB device found, idVendor=046d, idProduct=0817 [Fri Apr 26 21:53:37 2019] usb 1-1.4: New USB device strings: Mfr=0, Product=0, SerialNumber=2 [Fri Apr 26 21:53:37 2019] usb 1-1.4: SerialNumber: B2D56B90 [Fri Apr 26 21:53:37 2019] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0817) [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 4 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 8 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 10 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 12 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 11 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Processing 2 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 13 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Camera 1 was not initialized! [Fri Apr 26 21:53:38 2019] uvcvideo 1-1.4:1.0: Entity type for entity Extension 14 was not initialized! [Fri Apr 26 21:53:38 2019] input: UVC Camera (046d:0817) as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.0/input/input1 Код (C++): pi@raspberrypi:~ $ fswebcam --verbose --- 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:0817)" src_v4l2_get_capability,90: cap.bus_info: "usb-3f980000.usb-1.4" src_v4l2_get_capability,91: cap.capabilities=0x84200001 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,520: Device offers the following V4L2 pixel formats: src_v4l2_set_pix_format,533: 0: [0x56595559] 'YUYV' (YUYV 4:2:2) src_v4l2_set_pix_format,533: 1: [0x47504A4D] 'MJPG' (Motion-JPEG) Using palette MJPEG Adjusting resolution from 384x288 to 352x288. src_v4l2_set_mmap,672: mmap information: src_v4l2_set_mmap,673: frames=4 src_v4l2_set_mmap,722: 0 length=102400 src_v4l2_set_mmap,722: 1 length=102400 src_v4l2_set_mmap,722: 2 length=102400 src_v4l2_set_mmap,722: 3 length=102400 --- Capturing frame... verify_jpeg_dht,94: Inserting DHT segment into JPEG frame. Captured frame in 0.00 seconds. --- Processing captured image... There are unsaved changes to the image. Код (Text): pi@raspberrypi:~ $ lsusb Bus 001 Device 015: ID 046d:0817 Logitech, Inc. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. SMC9514 Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub В чем может быть проблема и как её решить?
Я не знаю ответа на ваш вопрос. Но как вы подключили вебку к росберри пай3? Пожалуйста скиньте линк или как-то еще поделитесь пожалуйста этим знанием.
Снимки у меня получилось сделать, а вот видео сделать увы - никак не получается найти информацию, по которой можно было бы настроить веб и пай3. Подскажите пожалуйста, если знаете.